The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Quick question...
Well, im trying to make a javascript popup, popup if a user is in a certain group... but its not working at all, can I get some advice on what may be wrong here?
Code:
//Popup Code if ($bbuserinfo['usergroupid']==6){ echo '<script language="javascript" type="text/javascript">\r\nalert("POPUP GOES HERE");\r\n</script>'; } |
#2
|
||||
|
||||
vb2 or vb3?
if vb3 then, it might be, because vb3 doesn't accept direct output anymore (or that leads at least to problems...) so if you are in vb3, assign the JS code into a variable and add that variable into the header or even better, put the whole js code into the template as in vb3 if conditions are possible in templates |
#3
|
|||
|
|||
Yes it was vb3, anyways I see what your saying.
Thanks -Bone |
#4
|
||||
|
||||
you're welcome
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|