The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP in the Forum SideBar
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. |
#2
|
|||
|
|||
Quote:
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. |
#3
|
||||
|
||||
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 |
#4
|
||||
|
||||
<a href="http://www.vbulletin.com/docs/html/templates_externalfiles" target="_blank">http://www.vbulletin.com/docs/html/t..._externalfiles</a>
|
#5
|
||||
|
||||
Thank you SO much. I didn't realize that part of the help file even existed.
THANKS! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|