View Full Version : PHP in the Forum SideBar
seo guy
07-05-2007, 04:05 PM
Hi,
I was wondering if it is possible to include some PHP code in the templates for VB. Basically I have some logic that I would like to do for displaying different things in the sidebar - I would like to add a file_get_contents() function then display the result in the sidebar.
I hope this makes sense - Does this sound possible?
Thank you.
Guest190829
07-05-2007, 04:14 PM
Hi,
I was wondering if it is possible to include some PHP code in the templates for VB. Basically I have some logic that I would like to do for displaying different things in the sidebar - I would like to add a file_get_contents() function then display the result in the sidebar.
I hope this makes sense - Does this sound possible?
Thank you.
Process the PHP logic in a plugin (if it is on a forum sidebar that appears on every page, you'd probably want to go with global_complete) and then store the contents in a variable to display in the template.
pdblizzard
07-06-2007, 02:23 AM
Thanks for this thread...
I want to include a PHP include on my navbar (to display a random quote on each page), so can you tell me a little bit more about how to include my code in the right plug in?
Thank you for your help :)
Dismounted
07-06-2007, 05:07 AM
<a href="http://www.vbulletin.com/docs/html/templates_externalfiles" target="_blank">http://www.vbulletin.com/docs/html/t..._externalfiles</a>
pdblizzard
07-06-2007, 11:49 AM
Thank you SO much. I didn't realize that part of the help file even existed.
THANKS!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.