The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Foruminfo variables and conditionals in header template?
Is it still possible to use variables such as $foruminfo[title_clean] and $foruminfo[description] in conditional statements from the header template in 4.x? I've tried several different ways to try to get it to work, but so far have not had much luck.
The following doesn't seem to work from the header template: Code:
<vb:if condition="$foruminfo['description']">{vb:raw foruminfo.description}</vb:if> Code:
<if condition="$foruminfo[title_clean]"> Code:
<if condition="$foruminfo[description]"> Any help would be extremely appreciated! Thanks |
#2
|
||||
|
||||
I think this has been covered a few times before. If I recall, you will need to preregister the variable for use in that template or use the global variable for it. Try a search to find the other threads about this same issue.
|
#3
|
||||
|
||||
Hi Lynne,
Thanks for the suggestion. I looked over all of the threads I could find relating to foruminfo, and even threadinfo, but I wasn't able to figure out how to store the proper value in the preregistered variable. |
#4
|
||||
|
||||
Bump...
I've still had no luck figuring out how to make the $foruminfo variable available in the header template no matter what I do. I've tried preregistering the variable in several different hook locations (parse_templates, global_start, etc.) but that doesn't seem to have any affect. The variable always gives a blank value. I am trying to display the forum title and the description of the forum in the header template when viewing forumdisplay and showthread. Is there any other advice to possibly help me make this happen? Thanks again! |
#5
|
||||
|
||||
As I said above, you probably need to use globals - $GLOBALS['forumid']. Try that.
|
#6
|
|||
|
|||
Quote:
work fine Lynne ... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|