Different images for each category

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/63313?pagenum=1
05 November 2025, 08:27

Topic


Gio
Different images for each category
15 November 2006, 11:06


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...

<

 

Replies ...


HuwR
15 November 2006, 11:09


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<
rasure
15 November 2006, 15:31


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<
Gio
16 November 2006, 05:32


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...<
HuwR
16 November 2006, 06:06


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<
Gio
16 November 2006, 07:39


ok...profile updated! smile
...and, this is my need: (example using home page of this forum...)
http://www.ludogate.net/images/snitz.jpg


<
HuwR
16 November 2006, 07:45


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<
HuwR
16 November 2006, 07:47


No it isn't possible to do what I suggested smile<
Gio
16 November 2006, 09:02


yesssssss....already tested! sad another idea?<
Gio
17 November 2006, 03:24


yuuuuuu-huuuuuuh!!<
Gio
17 November 2006, 05:05


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


<
modifichicci
17 November 2006, 13:48


Why not call images image_11.gif and image_12.gif and change only line to
Response.Write "<img src=""image_" & CatId & ".gif""><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

so you have to set only omages with the right name and they will be displayed without changing your default.asp<
© 2000-2021 Snitz™ Communications