The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
"spot prior to the header being evaled" - Which template bit would that be?
|
#12
|
||||
|
||||
You don't put php code in templates. So, you would have to copy the code that creates $notifications_total into a plugin, or into the actual page (if you can't find a good hook location) to a spot that is prior to the header template being evaled. I believe the $notifications_total is defined in global.php, so you can copy the code from there.
|
#13
|
|||
|
|||
Quote:
|
#14
|
||||
|
||||
In looking at global.php, you shouldn't have even had to copy the code. It looks like the header template is evaled right after the code (just a few lines later). If it isn't showing up, then there is something else going on. Either there are no notifications, or some other error is causing problems. Check your error_logs and see if anything is showing up there. Otherwise, I'm not sure what else to suggest.
|
#15
|
|||
|
|||
Quote:
I am using global_start hook for the plugin. Am I doing something wrong? |
#16
|
||||
|
||||
We went through a strange issue a week or so ago where plugins weren't getting parsed on external pages. The solution for that was here. I'm not sure if that would help out here cuz I never did go research exactly what was going on, but at this point it might be worth a shot.
|
#17
|
|||
|
|||
Quote:
Warning: mysql_query(): 7 is not a valid MySQL-Link resource in [path]/includes/class_core.php on line 408 . I'm not trying to run a plugin on an external page I 'm trying to include my php file in the header template of vbulletin which contains $notifications_total in it. It works outside vB but in vB it doesn't work. |
#18
|
||||
|
||||
OK, I'm not understanding something.... when you talk about the header template, you are talking about the regular vb header template, right? Not a special header template you wrote for another page. And in the header template, you have written the word "$notifications_total" that is giving the total in your vb pages but not your external page, right? Are you evaling the header template yourself, or is it getting evaled in the global.php file like normal?
And it sounds like you *are* trying to use a plugin to include your stuff. You said you were using the global_start plugin for your code. Is that not right? So, that is running the global_start plugin on your external page. Perhaps you need to start posting your code, cuz I'm getting confused now with what you are doing. |
#19
|
|||
|
|||
Quote:
Thank you for all you help, much appreciated. |
#20
|
||||
|
||||
Glad you got it working.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|