View Full Version : How do I change the top graphic in the header for just certain pages?
Chris Lang
06-17-2005, 02:24 AM
The graphic in the header I have is fine for the forums, gallery, but for the other parts of my site I want a different image up there. Is there a way to change it for certain pages? I know it involved the VB3 template, but is there a way to selectively turn it off or change it for certain pages? (Without hand-editing every single page in a text editor)
LEAD_WEIGHT
06-17-2005, 03:14 AM
I guess u ask this question in vbulletin.com :)
Chris Lang
06-21-2005, 03:28 AM
I guess u ask this question in vbulletin.com :)
Well, I found out the answer. It's quite simple. Just create a child-style from your default style, edit it to your liking and have the individual pages use it.
tomshawk
06-21-2005, 03:43 AM
Even easier would be to use if statements I think
In the header template
This example is for using 2 logo.gif files.
Also, when on one page, the logo is a link to the other
When on the CMPS index, the logo is a link to the forums.
When on the Forums the logo is a link to the CMPS
<if>
<td align="$stylevar[left]"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumhome].php"><img src="http://www.yourwebsite.com/forums/images/misc/logo.gif" border="0" alt="$vboptions[bbtitle]" /></a></td><else />
<a href="$vboptions[homeurl]?$session[sessionurl]"><img src="http://www.yourwebsite.com/forums/images/misc/logo2.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
</if>
See it in action Here (http://www.tech-unity.com/?styleid=1) Click the logo, it changes to the forums.
On mine at the moment, I dont have it change the logo, but you get the idea. ;)
Chris Lang
07-07-2005, 11:25 PM
Even easier would be to use if statements I think
In the header template
This example is for using 2 logo.gif files.
Also, when on one page, the logo is a link to the other
When on the CMPS index, the logo is a link to the forums.
When on the Forums the logo is a link to the CMPS
<if>
<td align="$stylevar[left]"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumhome].php"><img src="http://www.yourwebsite.com/forums/images/misc/logo.gif" border="0" alt="$vboptions[bbtitle]" /></a></td><else />
<a href="$vboptions[homeurl]?$session[sessionurl]"><img src="http://www.yourwebsite.com/forums/images/misc/logo2.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
</if>
See it in action Here (http://www.tech-unity.com/?styleid=1) Click the logo, it changes to the forums.
On mine at the moment, I dont have it change the logo, but you get the idea. ;)
Thank You.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.