PDA

View Full Version : "global_start" equiv. for CMS ?


XManuX
30 Nov 2009, 10:06
I've set a hook in global_start to tell which tab is selected. For now i don't use any conditional structures, just a plain :

$vbulletin->options['selectednavtab'] = 'TESTINGMOD';


for testing purposes.

In my navbar template, i have the following :

<vb:if condition="$vboptions['selectednavtab'] == 'TESTINGMOD'">
<li class="selected"><a class="navtab" href="http://boardurl/content.php/114">section1</a></li>
<vb:else />
<li><a class="navtab" href="http://boardurl/content.php/114">section1</a></li>
</vb:if>


But it is only working in the forums, which leads me to think that "global_start" is only working inside the forums area...

Question : what is the equivalent of "global_start" for CMS ?

Lionel
30 Nov 2009, 11:50
try process_templates_complete hook

Paul M
30 Nov 2009, 12:11
But it is only working in the forums, which leads me to think that "global_start" is only working inside the forums area...
This is a known issue, logged in the bug tracker.

Lionel
30 Nov 2009, 12:23
Adrian solution (http://www.vbulletin.org/forum/showpost.php?p=1916326&postcount=5) worked for me

XManuX
30 Nov 2009, 13:25
Yeah just saw Paul M message in vB4 bugtracker.

process_templates_complete hook works fine for CMS (but isn't for blogs it seems.)

Lionel
30 Nov 2009, 13:31
works for me in blogs and everywhere else