PDA

View Full Version : How To Add Little Images For Certain Forums In The Forum Listing


New Joe
01-23-2010, 06:14 AM
Now I do understand this can b done in the Forum Manager >Prefix for Forum Status Images But it will only change and add a picture for one Style, ans as most have more than on this doesn't help.
This is what I want to do.

Many people want to not just add the extra images, but to completely replace the on/off images with the extra images.

If you have a full set of on/off images, one for every forumid on your forum, then make the following changes:

Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Forum Home Templates -> forumhome_forumbit_level2_post

Replace the red code:
<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>

..with the blue code:
<tr align="center">
<td class="alt2"><img src="images/forum_pics/$forum[forumid]_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>




Make the same change to this template:

Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Forum Home Templates -> forumhome_forumbit_level1_post
You need to create a new folder named forum_pics inside of the images folder within your forum directory. Upload the images using this naming convention:

forumid_old.gif
forumid_new.gif

If the forumid of the forum is 3, then you would name its images like this:

3_old.gif
3_new.gif

That's it.

Now the red and blue code are for the 3.0 Versions, we are now on Version vB 4 and a lot of coding has changed.
My question is how to find the red coding and how to change the blue coding to make this work on vB4?

New Joe
01-25-2010, 07:25 AM
Ok, so far I have found this in forumhome_forumbit_level2_post in the vB 4 version:
<li id="forum{vb:raw forum.forumid}" class="forumbit_post L2">
<div class="forumrow table">
<div class="foruminfo td">
<img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
<div class="forumdata">
<div class="datacontainer">
<div class="titleline">
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
<vb:if

So I am guessing the red needs to be changed maybe, although I am not 100% sure if the above red code is the code that needs to be replaced, now the next bit would be to change it to this but this code is for vB3.8 not vB4:
<tr align="center">
<td class="alt2"><img src="images/forum_pics/$forum[forumid]_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
Now the above is from the 3.8 and the blue is what needs to be added/re-coded for vB4
Any help would be great.

BSMedia
01-29-2010, 07:59 PM
All the code you need is already in the red part, you just need to rearrange it some

New Joe
02-02-2010, 04:11 AM
Could you let me know how to rearrange it please?