vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=228170

$header and CMS
by Lionel
17 Nov 2009 07:18

I have at global_start (also tried all different global)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That displays the cart contents in every single page of the site, except the CMS pages.

What am doing wrong?

PitchouneN64ngc 18 Nov 2009 00:38

You can't call anymore $header like that.

Replace the last line by this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And add this at the end of the header template:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Don't tested it, but it should work.

Lionel 18 Nov 2009 00:48

Thanks but that no longer displays anywhere with that method. Also I was trying to avoid a template edit

Lionel 18 Nov 2009 00:59

1 Attachment(s)
Here is the full code that works. When I switch the commenting for last line it no longer displays anywhere.

When I keep it as it is, it displays in all pages except the CMS pages


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I am basically done converting this mod except for that and some peculiar tab situation

ForumsMods 18 Nov 2009 02:28

Lionel you code is ok. The problem is simple, global_start is not called in CMS.
Use process_templates_complete hook with your code.

Lionel 18 Nov 2009 02:47

Makes sense. But then, what is being called? I tried global_state_check which I know works everywhere, but that gives me other errors.

--------------- Added 17 Nov 2009 at 21:49 ---------------

hehehe did not fully read you.... (actually I only read your first reply from email, before adding the suggestion) that hook you suggested is perfect ... thanks!!!

Now I have to tackle that tab in profile


All times are GMT. The time now is 16:44.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.