Quote:
Originally Posted by Lynne
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.
|
Sorry Lynne. I have managed to get it to work by recoding my php file inside the vB header template using vBs if conditions and else etc. What was happening was, my login php file that is on all my pages shows a login box if you are not logged in. If you are logged in, it says hello and tells you if you have any current norifications. Now, this was working fine on all other pages EXCEPT for vBulletin. I used a plugin to include my login php file and the php file uses $notifications_total but for some reason, the included php file ON vBulletin pages was showing $notifications_total as "" (blank). So, I have rewritten the php file inside the header for my vBulletin template and $notifications_total works fine. The only thing is I now have a php file for my website and the same code in my header on vbulletin so if I ever want to change it I have to change my code in two places.
Thank you for all you help, much appreciated.