Log in to check your private messages 
Username: Password:   
  howtodoit.myfastforum.org
  Walkthough guides for myfreeforum phpbb 2 forums
Index  FAQ  Search  Memberlist  Usergroups  Profile

Text
Text
Friends
MYFF Support Forum
HOWTODOIT (PHPbb3)
portalogy
CGArts
ANNOUNCEMENTS
Complete List of templates Available
Please Read First Before Editing your template
Permissions
Admin Index
Sticky Articles
Latest Posts
Friends

Start | Stop
Logo Change For Each Section
Jump to:  
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfastforum.org Forum Index » Add-on`s for your forum
Author Message
Symon
Guide Legend
Guide Legend



Joined: 11 Jun 2006
Posts: 911


Location: Berkshire,England
FLAGS
Add Comment
Show Comments
PostPosted: Tue Aug 14, 2007 12:21 am  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

View user's profile Send private message Visit poster's website FACEBOOKSTEAM
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.myfastforum.org Forum Index » Add-on`s for your forum


 
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

HOWTODOIT was designed and built by Symon Field
Creator Of ☆ ☆ FunnyWorld
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