![]() |
Plugin Help - Javascript
hello not sure if i have this correct
PHP Code:
$template_hook[forumhome_above_forums] is just an example |
You would need quotes around your string, and since the string contains quotes you'd need to escape them (and to make matters more complicated, the string already contains escaped single quotes). But you could try using "heredoc" syntax: http://php.net/manual/en/language.types.string.php
Like this: Code:
$newcookie = <<<EOD<script src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script> The "EOD;" that ends the string needs to start in the first column. |
Quote:
|
Well, just in case I wasn't clear, you might be able to use the heredoc syntax without escaping the quotes (but I'm not sure if those single quotes that are already escaped will work or not, you'd have to try it).
|
Shouldn't be this
PHP Code:
PHP Code:
PHP Code:
|
Oh yeah, good point. It should just be:
Code:
$template_hook[forumhome_above_forums] .= $newcookie; I fixed my post above to avoid problems if someone tries to use it in the future. |
All times are GMT. The time now is 04:09 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|