The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Displaying breadcrumb in showthreads
I'm trying to add the breadcrumb to the bottom of every thread.
I added {vb:raw navbits.breadcrumb} in the showthreads template, but I'm guessing I have to register the variable?? Code:
vB_Template::preRegister('SHOWTHREAD',array('navbits' => $navbits)); What if it is an array? |
#2
|
||||
|
||||
I wrote a mod to do this. It's in my profile.
|
#3
|
|||
|
|||
Alright.
Just for future reference though, how would I preRegister already defined variables? If I was to simply paste {vb:raw navbits.breadcrumb} into SHOWTHREADS, is that how we are suppose to preRegister it? |
#4
|
||||
|
||||
Take a look at this article - https://vborg.vbsupport.ru/showthread.php?t=228078
|
#5
|
|||
|
|||
Lynne, that article doesn't explain whether we need to register an already registered(or rather..predefined) vbulletin variable.
I'm trying to use a pre-defined vbulletin variable in a non-custom template. |
#6
|
||||
|
||||
You need to register *every* variable you plan to use in a template for use in *any* template you plan to use it in. The only ones that you might not need to register are bbuserinfo, stylevar, option, and session variables. So, if navbits was not previously registered for use in the SHOWTHREAD template, then you would need to register it (or preregister it, as the case may be).
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|