The one drawback is the WYSIWYG editor, not that it is bad, but the concepts of code generation get messy when people try to edit the UI themselves. I think this is a great way to break in to new web development. They do do a complete application generation, with a nice UI and some advanced search features that are very nice. But I have used version 4 through 5.3, and all have been very good. as of today (Aug 2 2011) they are releasing version 6. I normally don't write reviews, but I found this product very good. There are also 1 or 2 other places in the code where the variable name needs to be broken out of the string. OK, I see now that in my install I'm not using wp as the table prefix. If I hardcode the function to return the real siteurl, it goes to a login, but will not accept the correct username and password. The option that it is looking for during the error is the siteurl. The table does exist, and phprunner can access it if I don't put anything into the appinit even. The connection string must not be set up right. However, there must be something else wrong with the code, because I get this error:įatal error: Table 'wordpress1.wp_options' doesn't exist in C:\aweb\Wordpress1\runner\include\dbconnection.php on line 36 $rs=db_query("select option_value from wp_options where option_name='".$option."'",$wpconn) The trouble came with integrating the security using the appinit event. The first part - putting it into an iframe and interfacing with the Wordpress tables worked fine. Paste it to the end of 'After application initialized' event Select and copy everything between $_SESSION = ACCESS_LEVEL_USER and if($myurl) Open login.php file in any text editor and find the following section: If your PHPRunner applications uses advanced security options or AfterSuccessfulLogin event you need to copy some code from login.php to 'After application initialized' event. If you want to keep databases separate - connect to Wordpress database manually in the very beginning of 'After application initialized' event. This code snippet assumes PHPRunner application shares database with Wordpress. $rs=db_query("select option_value from wp_options where option_name='$option'",$wpconn) įunction hash_hmac($algo, $data, $key, $raw_output = false) ] )"/', $meta, $matches) Add code to 'After application initialized' event in PHPRunner:Ĭopy line with AUTH_KEY definition from wp-config.php file (Wordpress config file).ĭefine('AUTH_KEY', 'put your unique phrase here') Make it point to your PHPRunner application menu page.Ĥ. Insert an iframe with PHPRunner application into any blog post: " frameborder="0" style="height:px width:px ">Please upgrade your browserģ. I had to modify wp-content/plugins/embed-iframe/view/embediframe/iframe.php file the following way: This plugin didn't work right out of the box with PHP 5.3. This plugin allows to insert an iframe into any post. That's what rootCookie plugin does for us.Ģ. If we want to access Wordpress cookies from PHPRunner application we need to make them accessible domain-wide. If you are looking for PHPRunner 8.x and Wordpress 4.x integration tutorial proceed here.ġ.
0 Comments
Leave a Reply. |