View Full Version : Template for all pages except homepage
wheel
03-15-2007, 02:04 AM
I want to insert a banner graphic near the top of the page for all pages except the homepage of the forum. Any thoughts on what template I need to modify to accomplish this?
Alternatively, since I'm using a plugin to display the banner, would I perhaps accomplish this through the php code (i.e. check if it's the homepage, and if so, don't display, otherwise display)? This seems like a more complex way to do it though.
HMBeaty
03-15-2007, 02:16 AM
Edit the navbar template. Just place your code at the very top of it. :)
wheel
03-15-2007, 03:02 AM
That seems to place the banners at the top of the homepage as well. I just inserted $includedphp in that template file (I believe that calls the plugin) and it shows on all the pages.
dj_melayu
03-15-2007, 03:31 AM
I just put it in header so that it will appear on everypage including on your CMPS software page :)
That's my 2 cent
wheel
03-15-2007, 12:34 PM
So is there not anywhat to do this? Are there any templates that appear everywhere except the hompage? Or a way to have some sort of conditional display that doesn't display if it's the homepage?
This almost worked....as in, it didn't work. But I think I'm on the right track. This still also displays on the homepage in addition to the inner pages - any thoughts on how I can correct this code to turn off display on the homepage?
<if condition="$forumid != 1">
$banners
</if>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.