Text
Logo Change For Each Section

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfreeforum.org Forum Index -> Add-on`s for your forum
View previous topic :: View next topic  
Author Message
Please Register and Login to this forum to stop seeing this advertsing.





Add Karma

Posted:     Post subject:

Back to top
symon
Site Admin
Site Admin

Location: 

Joined: 13 Mar 2006
Posts: 866


Location: Hampshire Add Karma

PostPosted: Mon Aug 13, 2007 2:42 pm    Post subject: Logo Change For Each Section Reply with quote

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


Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfreeforum.org Forum Index -> Add-on`s for your forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Card File  Gallery  Forum Archive
HOWTODOIT was designed and built by Symon Field
Creator Of ☆ FarnboroughInvinciblesAgonyAuntFairiesAsylum Alliance FunnyWorldHOWTODOIT PHPbb3
HOWTODOIT© Symon Field 2006,2007,2008

Powered by phpBB Group © 2001,2005.
 

Create your own free forum | Buy a domain to use with your forum