View Full Version : Displaying breadcrumb in showthreads
Brother Malachi
01-01-2010, 06:14 PM
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??
vB_Template::preRegister('SHOWTHREAD',array('navbi ts' => $navbits));
???
What if it is an array?
Lynne
01-01-2010, 07:48 PM
I wrote a mod to do this. It's in my profile.
Brother Malachi
01-01-2010, 08:16 PM
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?
Lynne
01-01-2010, 08:37 PM
Take a look at this article - https://vborg.vbsupport.ru/showthread.php?t=228078
Brother Malachi
01-01-2010, 09:56 PM
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.
Lynne
01-01-2010, 10:43 PM
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).
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.