PDA

View Full Version : diff. logo for diff.url


CraiovaOnLine
08-10-2007, 05:14 PM
i have a general forum but i wanna make the cs section of the forum a bit special

need to display a diffrent logo, when the url is http://cs.forum.com/ insted of http://www.forum.com/

htttp://cs.forum.com goes to a section of the forum (is not a 301 redirect, is parked there so the url isnt;t changing if u browse in the forum)

found some scripts modified them but aint working. i modified the original code like this:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><script type="text/javascript">
if(window.location.href.indexOf("cs.forum.com") > -1)
<img src="newlogo.gif" border="0" alt="$vboptions[bbtitle]" />;
</script></a></td>


made the modification using a javascript url based redirect