PDA

View Full Version : how to insert php code in vbulletin template


webtest
12-18-2009, 06:25 AM
hello everyone,

I m trying to create rotating banners in my header,for that i want to fetch images from databse.
I have created one plugin and activate it as per the instructions given in vbulletin manual.
But it displays blank no data from php file was fetched..
Please help if anyone know how to do this?
thanks in advance

NikkEh
12-18-2009, 07:01 AM
did you enable the plugin?

consolegaming
12-18-2009, 07:30 AM
And secondly did you register the variables? This is something that now has to be done to get variables from plugins to templates. You have to register which template you wish to use it in too. If need-be I'll grab some example code afterwards.

webtest
12-18-2009, 07:43 AM
thanks for quick reply.
I have activated plugin.
Can u please tell me how to register variables or templates.
Please explain with example coz i m totaly new to vbulletin.
thanks in advance.

Tancey
12-18-2009, 08:03 AM
this page might be os use to you mate
https://vborg.vbsupport.ru/showthread.php?t=228078

NikkEh
12-21-2009, 12:09 AM
Check the blog.

http://www.vbulletin.com/forum/blog.php?featured=2400,2399,2398,2397,2396,2393,23 86,2379&do=list&page=2

And this on how to include your php on the v3.8 manual using the following sections
http://www.vbulletin.com/docs/html/
Styles & Templates / vBulletin 3 Style Reference / Templates / Including External Files

LorinPotter
12-21-2009, 10:51 AM
Webtest, this is something that I've been trying to do for awhile, with no luck. I've got the photoshop rotating pictures script working in the header template, but I've been trying to get pictures (about the same as banners, to show for a day, then rotate to next picture stored in the VB forum.

Various hacks and what some have posted here doesn't seem to work for me. I would appreciate very much if you'd post any headway you make on this, on this same thread.

TIA