Quote:
Originally Posted by merk_aus
I was wondering if anyone could help me set the favicons seperate for each board.
I have five boards all together (all with licenses so don't threat) - however need all of them to have a different fav icon.
I found this:
Code:
<vb:if condition="$_SERVER['HTTP_HOST'] == 'www.domain1.com'">
Test code
</vb:if>
Posted by: BirdofPrey5
However don't know if that can help, or how to do else/if conditionals.
Any help would be greatfully appreciated.
|
This should work for favicons but I haven't tested...
Code:
<vb:if condition="$_SERVER['HTTP_HOST'] == 'www.domain1.com'">
<link rel="icon" type="image/png" href="/somewhere/myicon1.png" />
</vb:if>
<vb:if condition="$_SERVER['HTTP_HOST'] == 'www.domain2.com'">
<link rel="icon" type="image/png" href="/somewhere/myicon2.png" />
</vb:if>
<vb:if condition="$_SERVER['HTTP_HOST'] == 'www.domain3.com'">
<link rel="icon" type="image/png" href="/somewhere/myicon3.png" />
</vb:if>
...
and so on... You can do if-else statements but there is no reason to in the setup you described.