Archive for howtodoit.myfastforum.org 
 



       howtodoit.myfastforum.org Forum Index -> Add-on`s for your forum
Symon

Logo Change For Each Section

This little hack will create a different logo or image when you enter each section, by section i mean category for example on the support forum they would be the areas marked general support, or off topic


Ok here is HOWTODOIT

Please remember to use the Editor account before making any template changes, If you have not made an editor account yet please read HERE

Second you must have all ready a template you can edit.

If you have not done this please read HOWTODOIT


1. Goto admin panel --- 3. Styles --- Edit Templates/Logos -- the template you wish to edit (EG myff_howtodoit1)--- Submit

Now look at the top in the area marked Choose Forum template/javascript/css File to Edit use the drop down bar and find

overall_header.tpl

Now place this code where you wish the logo or image to appear.


Code:
 <!-- IF FORUM_ID==1 -->
<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo1.gif" border="0" alt="HOWTODOIT"></a></center>
<!-- ELSEIF FORUM_ID == 2 -->

<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo2.gif" border="0" alt="HOWTODOIT"></a></center>
<!-- ELSE -->
<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo3.gif" border="0" alt="HOWTODOIT"></a></center>
<!-- ENDIF -->


Remember to change the
Code:
src=
path to be your path of your image

Hints

1. To find the number of the forum just enter the forum and look in the address bar you will see something like this


Code:
http://howtodoit.myfastforum.org/forum1.php


Each section has its own number just enter each section and look for the number.

2. To add more than the two i have here, then you need to find this bit of the code

Code:

<!-- IF FORUM_ID==1 -->
<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo1.gif" border="0" alt="HOWTODOIT"></a></center>
<!-- ELSEIF FORUM_ID == 2 -->

<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo2.gif" border="0" alt="HOWTODOIT"></a></center>


And add

Code:
<!-- ELSEIF FORUM_ID == 3 -->

<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo4.gif" border="0" alt="HOWTODOIT"></a></center>


Each new one you add must be added before

Code:
<!-- ELSE -->
<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo3.gif" border="0" alt="HOWTODOIT"></a></center>
<!-- ENDIF -->


So a final code may look like this

Code:
 <!-- IF FORUM_ID==1 -->
<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo1.gif" border="0" alt="HOWTODOIT"></a></center>
<!-- ELSEIF FORUM_ID == 2 -->

<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo2.gif" border="0" alt="HOWTODOIT"></a></center>
<!-- ELSEIF FORUM_ID == 3 -->

<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo244.gif" border="0" alt="HOWTODOIT"></a></center>
<!-- ELSEIF FORUM_ID == 4 -->

<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo23.gif" border="0" alt="HOWTODOIT"></a></center>
<!-- ELSEIF FORUM_ID == 5 -->

<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo22.gif" border="0" alt="HOWTODOIT"></a></center>
<!-- ELSEIF FORUM_ID == 6 -->

<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo21.gif" border="0" alt="HOWTODOIT"></a></center>
<!-- ELSE -->
<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo3.gif" border="0" alt="HOWTODOIT"></a></center>
<!-- ENDIF -->


This part of the code is for the default logo they see when they enter a section that you have not assigned a logo or image to.

Code:
<!-- ELSE -->
<center><a href="{U_INDEX}"><img src="templates/myfs_testhtml4/images/logo3.gif" border="0" alt="HOWTODOIT"></a></center>
<!-- ENDIF -->


And Thats HOWTODOIT

       howtodoit.myfastforum.org Forum Index -> Add-on`s for your forum
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum