PDA

View Full Version : Diff. logo for diff. URL


CraiovaOnLine
08-21-2007, 06:32 PM
So here Is my question

1 forum - 2 domains(or more)
www.domain1.com and www.domanin2.com
I would like to set a logo for each domain; when forum is accesed from domain1.com users will see logo1.gif and when from domain2.com -> logo2.gif - and so on

This is my ideea (must work with ... it's not working .. :D yet :D )
we define 2 variables in vb:
$url = $_SERVER['SERVER_NAME'];
$link = substr($url, strpos($url, '.')+1);
after this we'll modify header section with this
<if condition="$link= 'domain1.com'">
<img src="http://www.domain1.com/logo1.gif">
</if>
<else />
<if condition="$url = 'domain2.com'">
<img src="http://www.domain2.com/logo2.gif">
</if>


So can anyone help me?
Where should i define $url and $link ?

nutnut
08-22-2007, 06:13 AM
There is a mod that allows you to set different styles for different domains, search around a bit.

CraiovaOnLine
08-22-2007, 11:21 AM
There is a mod that allows you to set different styles for different domains, search around a bit.

not different styles just different logo's!
well... i tried to search...i'll search again ..
thanks .. I guess!