The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
New Templates and registering variables
Hi all,
I could really do with some guidance, I'm struggling to understand the whole process of registering variables in templates. I have managed to get my head round creating new templates and presenting them via plugin within one of the default templates, for example. Plugin. Hook Location - Parse Templates. Title - CVR4_Menu Code - PHP Code:
This works, i created a menu and this is showing - everything is cool here. Now, what i want to achieve (for starters) is present the notifications to this template, i.e. the notifications will be added to the CVR4_Menu Template. I followed several guides - threads i read include.
Plugin. Hook Location - Parse Templates. Title - CVR4_Menu Code - PHP Code:
Plugin. Hook Location - Parse Templates. Title - CVR4_Menu_preregister_notifications Code - PHP Code:
It seems to be that the CVR4_Menu template needs to be registered just like the navbar template before it will accept the notifications variables, but i really don't know where to start. I read in one of the above threads that you can define some variables, like.. PHP Code:
Could someone please help me figure this out, i'm sure it will click for me soon but just now i'm just not getting it. Maybe a working (simple) example of how to get notifications working in a custom template would aid me in my quest to understand. Thanks for reading (all my waffle) |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|