![]() |
Custom PHP in headinclude/navbar, how?
Hi everyone!
The guys from the vbulletin.com forum sent me over here :) I'd like to include custom PHP in two of my templates ('headinclude' and 'navbar'; for a PHP style sheet switcher, to be exact) and am seriously stuck as to how to get vBulletin to parse my code. Here's what I have so far: 1. two external PHP files: Code:
rootdir/_custom_includes/switcher.php (goes inside the <head> tag, replaces 'traditional' links to style sheets) Code:
<?php (the controls for the style sheet switcher) Code:
<form action="_custom_includes/switcher.php" method="post"> Thanks much! effgee (* - e.g., do I put the code for these controls in a separate file?) |
Since this will be in the header, you likely need to make a global start hook plugin. Try putting the above code in a global start hook.
hook code global start PHP Code:
HTML Code:
<form action="_custom_includes/switcher.php" method="post"> don't forget to cache the template. ;) |
All times are GMT. The time now is 05:59 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|