The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help With Code please :D
I'm Having A Problem With This Code
Code:
<strong><phrase 1="$bbuserinfo[username]"><script type="text/javascript"> var d = new Date() var time = d.getHours() if (time < $vboptions[time_1]) { document.write("<b><img src="$vboptions[imgurl_1] /> $vboptions[text_1] $vbphrase[CWMOFH_username]</b>") } else if (time > $vboptions[time_1] && time < $vboptions[time_2]) { document.write("<b><img src="$vboptions[imgurl_2] /> $vboptions[text_2] $vbphrase[CWMOFH_username]</b>") } else { document.write("<b><img src="$vboptions[imgurl_3] /> $vboptions[text_3] $vbphrase[CWMOFH_username]</b>") } </script></strong></phrase> |
#2
|
||||
|
||||
If you are using double quotes inside double quoted text, add \ before it:
Code:
<strong><phrase 1="$bbuserinfo[username]"><script type="text/javascript"> var d = new Date() var time = d.getHours() if (time < $vboptions[time_1]) { document.write("<b><img src=\"$vboptions[imgurl_1]\" /> $vboptions[text_1] $vbphrase[CWMOFH_username]</b>"); } else if (time > $vboptions[time_1] && time < $vboptions[time_2]) { document.write("<b><img src=\"$vboptions[imgurl_2]\" /> $vboptions[text_2] $vbphrase[CWMOFH_username]</b>"); } else { document.write("<b><img src=\"$vboptions[imgurl_3]\" /> $vboptions[text_3] $vbphrase[CWMOFH_username]</b>") } </script></strong></phrase> |
#3
|
|||
|
|||
is there any way i can do this?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|