Forum Images next to the Description for every Forum

What this hack does:
This hack adds an image next to every forum description for every forum you want.

Installation:

in Template forumhome_forumbit_level2_post

find:

PHP:
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>

and replace it with:

PHP:
<if condition="$show['forumdescription']">
         <div class="smallfont">
       <img src="$stylevar[imgdir_statusicon]/$forumid.png" alt="" class="ForumImages" /> 
          $forum[description]
         </div>
        </if>

Go to your style options and add the following into additional css:


HTML:
/* Forum Images next to the Description for every Forum */
.ForumImages {
float: right; 
margin-right: 8px; 
margin-top: 2px; 
}

If you want the image on the left site of the description use:

HTML:
/* Forum Images next to the Description for every Forum */
.ForumImages {
float: left; 
margin-right: 8px; 
margin-top: 2px; 
}

Save your style options and you are done.

Now you simply need to create images called:

ForumID.png

for each forum you want to have an image and put it into /images/statusicon/
Example: 22.png
 
This mod give`s us the image near by the forum name link...

How to place forum image horizontaly centered like on the attachment?

Please help me,need this fast.

Thanks
 
Back
Top