The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$pagenav in postbit_legacy
Hi
I want to use $pagenav in the postbit_legacy template (long story!! ), but I assume it hasn't been built by the time postbit_legacy is parsed. I don't mind duplicating the work to construct $pagenav if I have to, as it will only be on a very small number of pageviews. Any pointers on what code constructs is, and which hook I should drop it into would be great. Cheers Simon |
#2
|
|||
|
|||
I actually did something similar today (parsing other templates inside postbits).
First I would check to see if $pagenav is created ahead of the postbits, which I believe is the case. In order to get any non-$post variable or string into a $postbit you need to add it to the $post array. For example, right before PHP Code:
PHP Code:
Hope this helps at all. |
#3
|
||||
|
||||
$GLOBALS[pagenav] should work, too.
|
#4
|
|||
|
|||
$GLOBAL[pageheader] will most definently work:up: |
#5
|
|||
|
|||
great..
thank you guys |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|