Quote:
Originally Posted by Omegatron
In all my days of PHP you need to escape quotes when you use html in a php file. 
|
Then you were wrong all those days.
Try
PHP Code:
echo 'This is <span style=\"font-weight: bold\">bold</span>';
This will output in the html source code:
HTML Code:
This is <span style=\"font-weight: bold\">bold</span>
And, needless to say, the text will not be bold in the browser.
On the other hand:
PHP Code:
echo 'This is <span style="font-weight: bold">bold</span>';
will work just fine. No escapes there...
--------------- Added [DATE]1258452044[/DATE] at [TIME]1258452044[/TIME] ---------------
Quote:
Originally Posted by Omegatron
If I do what you say its a parse error.
|
You must be using a different PHP than me. I just tested Lynne's code in a plugin and it works just fine. No parse error whatsoever.
--------------- Added [DATE]1258452277[/DATE] at [TIME]1258452277[/TIME] ---------------
Quote:
Originally Posted by Omegatron
yeah it does not like this line
Code:
$thistemplater .= $templater->render();
--------------- Added 16 Nov 2009 at 22:16 ---------------
This is what I have blank white page. I am following the guides here
Code:
$thistemplater .= $templater->render();
vB_Template::preRegister('FORUMHOME', array('thistemplater ' => $thistemplater ));
$search_text = '<div id="pagetitle">';
$vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,$thistemplater.$search_text,$vbulletin->templatecache['FORUMHOME']);
|
I just threw this code into a mod of mine instead of the template hook it normally uses. This works perfectly fine for me.
Please post the complete code you are using.