The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
error with {vb:raw foruminfo.forumid}
I was looking for a way to get the current forum id to use in the header template now i found somewhere saying that could use this {vb:raw foruminfo.forumid} the problem is that's empty
the code i am trying to make work is this Code:
<script type="text/javascript"> var output; var url = encodeURIComponent(location.pathname) output= "<img src='headers/img.php?url="+url+"&id={vb:raw foruminfo.forumid}'>"; document.write(output) </script> headers/img.php?url=%2Fforumdisplay.php&id=9 i get headers/img.php?url=%2Fforumdisplay.php&id= can anyone help? |
#2
|
||||
|
||||
$foruminfo is not a variable that is registered for use in that template, so you'd have to preregister it first using a plugin.
|
#3
|
|||
|
|||
ok then what php page handles the header template?
|
#4
|
||||
|
||||
You mean where is it rendered? Just do a search in your files for "('header'" and you'll find it in class_bootstrap.php
|
#5
|
|||
|
|||
thanks for your time its working great
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|