The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Plugin Help - Javascript
hello not sure if i have this correct
PHP Code:
$template_hook[forumhome_above_forums] is just an example |
#2
|
|||
|
|||
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> // rest of html here EOD; $template_hook[forumhome_above_forums] .= '$newcookie' ; The "EOD;" that ends the string needs to start in the first column. |
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
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).
|
#5
|
||||
|
||||
Shouldn't be this
PHP Code:
PHP Code:
PHP Code:
|
Благодарность от: | ||
kh99 |
#6
|
|||
|
|||
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. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|