Different images for each category - Posted (930 Views)
Starting Member
Gio
Posts: 6
6
hi, i think a great mod if near the name of the category in a forum i have an image, different by categories..
How can i do this? question
i.e: now i'm in category "MOD Add-On Forum (W/O Code)"...with my idea should be something like this:
eightballMOD Add-On Forum (W/O Code)
clownMOD Add-On Forum (W/Code)
etc...

<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Admin
HuwR
Posts: 20611
20611
what would be even better would be a mod that forced people to do a search before they made a post smile
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=61157&SearchTerms=Different,images,for,each,category<
Posted
Junior Member
rasure
Posts: 289
289
Originally posted by HuwR
what would be even better would be a mod that forced people to do a search before they made a post smile

I could certainly do with something like that on my forumbigsmile<
Posted
Starting Member
Gio
Posts: 6
6
Originally posted by HuwR
what would be even better would be a mod that forced people to do a search before they made a post smile
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=61157&SearchTerms=Different,images,for,each,category

English not my language but the problem i wrote is different by the a.m. topic...as a matter of fact, i've do a search founding that topic but, as i told, the argument is different...<
Posted
Forum Admin
HuwR
Posts: 20611
20611
well, then try to explain in more depth what you want, you 2-3 lines does not give enough information to even guess at what you want. when you are in a forum the category is not displayed so how could you put an image next to it ?
perhaps setting the country in your profile would give us more of a chance of knowing you ar not english smile<
Posted
Starting Member
Gio
Posts: 6
6
ok...profile updated! smile
...and, this is my need: (example using home page of this forum...)
http://www.ludogate.net/images/snitz.jpg


<
Posted
Forum Admin
HuwR
Posts: 20611
20611
ok, now I understand, I'm not sure but it may be possible to do that simply by adding an image tag in the category subject line, I'm not sure because I have never attempted it before smile<
Posted
Forum Admin
HuwR
Posts: 20611
20611
No it isn't possible to do what I suggested smile<
Posted
Starting Member
Gio
Posts: 6
6
yesssssss....already tested! sad another idea?<
Posted
Starting Member
Gio
Posts: 6
6
yuuuuuu-huuuuuuh!!<
Posted
Starting Member
Gio
Posts: 6
6
smile All done:

I add this lines (line 298 more or less. File: default.asp):

if CatID = "11" then
image = "red.gif"
end if

if CatID = "12" then
image = "silver.gif"
end if


if (recForumCount = "" or not bContainsForum) and (mLev = 4) then
Response.Write " -" & vbNewline & _
" <td bgcolor=""" & strCategoryCellColor & """ >"
if Cat_ID = "" then
Response.Write "<img src=""" & image & """><a href=""default.asp?CAT_ID=" & CatID & """ title=""View only the Forums in this Category""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strCategoryFontColor & """><b>" & ChkString(CatName,"display") & "</b></font></a></td>" & vbNewline
else

Response.Write "<img src=""" & image & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strCategoryFontColor & """>" & ChkString(CatName,"display") & "</font></td>" & vbNewline
end if


<
You Must enter a message