How do I add some PHP code to the header section? I want to run a banner that rotates and I have some PHP code that accomplishes that. Do I just paste it in?
Announcement
Collapse
No announcement yet.
PHP code in the header section.
Collapse
X
-
You don't add some php code to the header section. You can try using conditionals to do what you want. The easiest way would be to have a php file on your server that outputs the ad code, and then use something to include it inline in the ad areas.Last edited by Wayne Luke; Tue 13 Jan '15, 7:59am.
-
vBulletin.org would be the better place to do this. But a stupidly simple way to do it would be just use an iframe.
Just to be clear, you cannot put a php widget in the header. The ad areas only allow html/javascript
If you're going to be getting into selling ads, you might want to look into a proper advertisement platformLast edited by Zachery; Tue 13 Jan '15, 7:59am.
Comment
-
There is a way to call PHP via template hook. Methods in frontend controller can be called from templates via {vb:action} call.
VBV-10333 (http://tracker.vbulletin.com/browse/VBV-10333) This is an improvment request, however requires IMMEDIATE attention. It is one of the basic reasons, that programmers and developers avoid making any
Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment