Where or even how can I add a php block? I want to add the facebook like button, I tried with the html block but the code is just removed, can someone help me please?
Thank you.
Where or even how can I add a php block? I want to add the facebook like button, I tried with the html block but the code is just removed, can someone help me please?
Thank you. |
here is a module that can make your work lot easier http://www.boonex.com/m/Deanos_Tools_V1_6_Dolphin_7_0_Version so much to do.... |
I have already added that and adding the php from there doesn't work either. |
You have to go to the page builder and select your new php block from the relevant page and drag it to the specific place in page so much to do.... |
Like I said it doesnt work, doesn't allow for php code always comes up with:
/inc/classes/BxDolPageView.php(607) : eval()'d code on line 1 |
Even placing the most basic php test using:
<?php Produces an error. THis form is not designed for php, so the author hasn't designed this properly. |
you are adding something wrong in the block. try this echo "Hello"; if you see "Hello" than the block is okay check your code for syntax error. so much to do.... |
stop putting <?php ?> so much to do.... |
Thank you. |
You're welcome Thank you.
so much to do.... |
To go further on it incase your interested. The code mustn't be wrapped in opening and closing PHP tags, i.e. 'echo "Hi!";' must be passed instead of '<? echo "Hi!"; >'. It is still possible to leave and reenter PHP mode though using the appropriate PHP tags, e.g. 'echo "In PHP mode!"; ?>In HTML mode!<? echo "Back in PHP mode!";'. Apart from that the passed code must be valid PHP. This includes that all statements must be properly terminated using a semicolon. 'echo "Hi!"' for example will cause a parse error, whereas 'echo "Hi!";' will work. https://www.deanbassett.com |