View Full Version : Adding PHP to Templates
ferrarislave
11-09-2006, 08:17 AM
I am trying to add a few line of php to a few templates, how can I do so?
sebbe
11-09-2006, 08:30 AM
You can't run PHP code inside templates. You'll have to create a plugin and place your code in there.
Look here for more info
https://vborg.vbsupport.ru/showthread.php?t=82625
ferrarislave
11-09-2006, 10:20 PM
I am trying to add some php to my footer. Which hook would that be? I am sort of lost...
anyone?
sebbe
11-10-2006, 12:37 PM
Put your PHP script in a global hook like 'global_start'. Then call you variables inside the footer template.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.