The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm new to the plug-in modification thing, so I'm not sure where to put any code. Is this even the right place to post a question?
Anyway, I'm trying to create a "list closer" for my breadcrumbs. Using count($navbits) doesn't seem to work under the navbits, global_start, and global_complete hooks. Is there some variable or array somewhere that contains the number of pieces in the $navbits array? Thank you. |
#2
|
||||
|
||||
![]()
The $navbits array is defined (usually) near the end of each script, then right after it is converted to HTML using the construct_navbits() function.
There is a "navbits" hook you can use, where $lastelement should contain the number of elements you are looking for. |
#3
|
|||
|
|||
![]()
Thanks, I must've jumped over that sizeof()...
But now I've got another problem: I can't use the variable I defined in any template other than navbar_link. After reading up a little on plug-ins, I'm not even sure if I can use one to do what I want. Thanks again for your help. |
#4
|
||||
|
||||
![]() Quote:
PHP Code:
|
#5
|
|||
|
|||
![]()
Hmm... I also tried doing global once before. All it did was turn my pages blank.
Edit: I global'd the variable on my live server rather than local, and it appears my local machine has some problem. I don't know what it is yet, but it works on the live server. Thank you for putting up with a newbie. ![]() Edit: Upgraded to latest PHP5 on localhost and it works now. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|