The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
Hi,
I am trying to create a contextual menu that will display specific information relating to the page where is user is currently located. The problem is that I need to display that information in the header template. I need this because I created a new column for my forum in the header template. In this particular forum I need to put the contextual information. For example, if the user is browsing the main page the contextual menu should say ?You are browsing the main page?. If the user is browsing the forum with ID 7, the contextual menu should say ?You are browsing forum no. 7?. Normally, in order to achieve that you would need to work with the hooks forumhome_start and forumdisplay_start but this is not working because the ?header? is displayed earlier (before those hooks are called). It looks like that hook ?parse_templates? is call just before displaying the template ?header?. If I put my code in there it will be called. The problem is that in this hook I don't know how to find out what the user is doing. How can I find out in the hook ?parse_template? what the user is doing ? How can I find out if the user is browsing the main page or if he is in a certain forum ? Regards, Razvan --------------- Added [DATE]1195037373[/DATE] at [TIME]1195037373[/TIME] --------------- Nevermind, I found the solution.... in parse_templates I can find out eveything I need because this is called *after* global_start !! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|