![]() |
How to to force the templates to parse a php script and then call it like '$script'
This is what I have in my phpinclude_start file in the template section of the admin cp:
Code:
// Example of how to include a seperate file: $bannerurl and one of my banners would show up, but now I get nothing. Is there a change in vB 3.5 with the syntax that I'm missing or is there a better way to server up random html code in the header that I don't know about? |
vb 3.5 does not use the phpinclude template, you need to move that code to a plugin, using the global_start hook.
btw, the logic of that code is a bit strange, you set numrows=19, and then immediately test if its > 1, which obviously it will be .......... |
Right on Paul. That worked like a charm, thanks.
What I did in Laymen's terms plugin system >> add new plugin added title (bannerurl) and call it in navbar using $bannerurl and used hook location 'global_start' under 'vBulletin; General" My banner ads rotate just fine now. Thanks. |
All times are GMT. The time now is 08:37 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|