View Full Version : Change logo on a few pages
techdeals07
04-24-2009, 08:23 PM
How would I go about accomplishing a logo change on a few vb pages. Specifically, our forum uses the DownloadsII (https://vborg.vbsupport.ru/showthread.php?t=120122&highlight=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...
MrEyes
04-24-2009, 09:30 PM
The easiest way to do that would be via a THIS_SCRIPT conditional check in the header template. Something like this:
<if condition="THIS_SCRIPT = downloads">
<img src="downloadsLogo.jpg" alt="logo" />
<else/>
<img src="normalLogo.jpg" alt="logo" />
</if>
That code isn't checked and was just written from memory, so it might not work - but it will point you in the right direction
techdeals07
04-24-2009, 10:15 PM
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. :)
<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>
Lynne
04-24-2009, 11:20 PM
Are you sure the name of the script for the downloads page is "ecdownloads" (find it at the top of the page)?
techdeals07
04-25-2009, 02:24 AM
Are you sure the name of the script for the downloads page is "ecdownloads" (find it at the top of the page)?
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! :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.