The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Change logo on a few pages
How would I go about accomplishing a logo change on a few vb pages. Specifically, our forum uses the DownloadsII product, and we want to change our header logo within this script.
I've looked into including a separate style on these pages only, but all we wanna change is the logo and it seems like overkill for such a minor change. Maybe a way to overwrite what is included from the header template by default or something... I'm sure I'm overlooking something easy... |
#2
|
|||
|
|||
The easiest way to do that would be via a THIS_SCRIPT conditional check in the header template. Something like this:
Code:
<if condition="THIS_SCRIPT = downloads"> <img src="downloadsLogo.jpg" alt="logo" /> <else/> <img src="normalLogo.jpg" alt="logo" /> </if> |
#3
|
|||
|
|||
Ok, ya got me pointed in the right direction. After looking at some other threads, this is the code I came up with, but all I seem to get is the default image. Definitely a newb at this, so maybe somebody can pick out what I'm doing wrong.
Code:
<div class="header"> <a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="<if condition="THIS_SCRIPT == ecdownloads"> images/twisteddark/misc/dlheader.gif<else />images/twisteddark/misc/header.gif</if>" border="0" alt="$vboptions[bbtitle]" /></a> </div> |
#4
|
||||
|
||||
Are you sure the name of the script for the downloads page is "ecdownloads" (find it at the top of the page)?
|
#5
|
|||
|
|||
Bingo. It looks like the script name changed from ecdownloads to downloads somewhere along the line. After fixing that it works like a charm. Thanks so much MrEyes and Lynne for the help!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|