View Full Version : custom icon for one forum only
imported_MaDCaT75
01-28-2004, 08:18 AM
is there a hack or something that allows me to have a custom icon for just one specific forum? I dont want it for all forums..... just one.
What do you mean, the status icon for posts on index.php and in subforums on forumdisply.php?
Zachery
01-28-2004, 04:49 PM
yes its more than possible for one
<if condition="$foumd[forumid] == X>forum graphic id thingie here<else /> regular code here</if>
imported_MaDCaT75
01-28-2004, 10:21 PM
sorry I dont follow too well..... what template do I put this in? And whats "regular code here" ?
Zachery
01-28-2004, 10:41 PM
forumhome_forumbit_level1_post find
<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
replace with this
<if condition="$forum[forumid] == X><td><img src="$stylevar[imgdir_statusicon]/$forum[forumid]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
<else /> <td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
</if>
you need to make a new folder and call it whatever id so if it was forum id 67 it would be a folder in the statusicon/67/
and you need to put the correct images in this folder :)
forum_on
forum_off
and so forth :)
imported_MaDCaT75
01-30-2004, 02:18 AM
I dont know whats wrong but I'm doing everything exactly as you tell me... however I get this error:
Parse error: parse error in /home/silver/public_html/includes/adminfunctions_template.php(2998) : eval()'d code on line 7
when making the changes to the template that you tell me to.
Zachery
01-30-2004, 05:54 AM
did you make sure to change X to a real number?
<if condition="$forum[forumid] == X"><td><img src="$stylevar[imgdir_statusicon]/$forum[forumid]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
<else /> <td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
</if>
my bad :) just a mistake when i was typing
imported_MaDCaT75
02-01-2004, 10:01 PM
howcome it doesnt work on forumhome :confused:
I wanted a custom forum icon just for one forum on forumhome :(
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.