Jamie
Forum Replies Created
-
Forum: Plugins
In reply to: [PHP Code for posts] 2 parameters not workingHi eoh1,
Due to html entity encoding val2’s key is actually amp;var2.
This was entirely accidental, and I am about to release a fix for this.
Thank you for pointing this out.
TMCForum: Plugins
In reply to: [PHP Code for posts] MultisiteOkay,
I have found the problem, the table doesn’t get created for the plugin in some instances, I will patch it just now and release the update which will create the table if its not found, hopefully this will solve the problem π
Thanks,
TMCForum: Plugins
In reply to: [PHP Code for posts] MultisiteHi Guys,
What exactly happens when you save on multi-site subfolder installation? are any errors flagged?
Thanks,
TMCHi Paul,
Thanks for pointing this out. I am in the process of committing a fix for it.
TMC
Forum: Plugins
In reply to: [PHP Code for posts] Variable text between PHP codeHi Estr,
as of version 1.1.1 you can now specify parameters to the plugin’s shortcode using the parameter “param”.
you can specify the value of param in a name=value pair separated by &s.
For example
[php snippet=2 param="myvar=myval&othervar=otherval"].There parameters can be accessed within your snippet using
$_parametersvariable.for example:
echo $_parameters["myvar"];would output “myval”I hope this solves your issue.
Thanks,
TMCForum: Plugins
In reply to: [PHP Code for posts] Error with $wpdb->get_resultsyou will need to reference the global $wpdb before running your code.
global $wpdb; $result = $wpdb->get_results($query)if you have not included the global reference, the $wpdb var will not be set to an instance of the db class.
Forum: Plugins
In reply to: [PHP Code for posts] MultisiteHi Dondela,
What multi-site configuration are you using, subdomain or subfolder?
Thanks, TMC
Hi andyngae,
you should probably specify an absolute path for saving your file so you know exactly where it saves. try looking in the plugin’s folder to see if it has saved there though.
Thanks, TMC
Forum: Plugins
In reply to: [PHP Code for posts] MultisiteHi Dondela,
I have tested on a multisite subdomain installation and the plugin works as expected, what is the issue you are having?
Thanks, TMC
Forum: Plugins
In reply to: [PHP Code for posts] Page Not FoundHi Sildona,
Form submission urls work based on your permalink structure, try setting an absolute (inc http://) url for the form action
Thanks π
TMCForum: Plugins
In reply to: [PHP Code for posts] [Plugin: PHP Code for posts] PHP code for postsHi Jstalker,
It’s hard to pinpoint the error without knowing the code you are using.
thanks
TMC