The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hi all,
I edit file "newthread.php" and add this code Quote:
Quote:
Quote:
Quote:
How to fix it? I want value of $number show in template. Thanks you. |
|
#2
|
|||
|
|||
|
I believe the problem is that when userid != 1, you show the standard error page, and in function standard_error() (in includes/functions.php) evaluates the navbar template, but at that point $number is not available because it is global.
Maybe it will work if you use an existing global array instead of $number, like $template_hook['number'] or $vbulletin->userinfo['number']. |
|
#3
|
|||
|
|||
|
I will try your solution today and reply
![]() Thank you very much! |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|