Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter christonphero

    (@christonphero)

    do it. lol

    Thread Starter christonphero

    (@christonphero)

    Also, I did notice that I couldn’t use single quotes in the message because they get escaped.

    For me personally, I just added to line 322 so that it changed the single quotes back and escaped them:

    $message=esc_attr($message); /*added->*/ $message = str_replace('&#039 ;',"\\'",$message);

    But esc_attr gets rid of double quotes and other things that people besides me would possibly still want.

    Anyways, besides that it works fine! Those were the two problems that prevented me from being able to simply install the plugin and use it. Peace.

    Hey! This seems to be the only post on the internet on this subject. I’m not a professional coder by any means, I learn what I have to for the jobs I need to get done.

    I’m currently running two plugins. One is Inline PHP, and the other is a little plugin that switches specified text.

    In a perfect world: I write “CODE”. Then, the plugin turns “CODE” into “[exec] php_code_goes(here) [/exec]”. And, then Inline PHP sees that code, and runs the command specified.

    My client doesn’t want to have to worry about (or see) a bunch of code in the posts. However, it is necessary to have the code exist somewhere.f

    But, although this is all fine-and-dandy in theory, this doesn’t work because Inline PHP runs before the text is converted to code. So nothing happens at all.
    I’ve tried the above solution, but I can’t get it to work at all. Any advice?
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)