Author |
Topic |
|
Gio
Starting Member
Italy
6 Posts |
Posted - 15 November 2006 : 11:06:22
|
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?
i.e: now i'm in category "MOD Add-On Forum (W/O Code)"...with my idea should be something like this: MOD Add-On Forum (W/O Code) MOD Add-On Forum (W/Code) etc...
< |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
|
rasure
Junior Member
289 Posts |
Posted - 15 November 2006 : 15:31:51
|
quote: 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
I could certainly do with something like that on my forum< |
Psychic & Spiritual Development Resources |
|
|
Gio
Starting Member
Italy
6 Posts |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 16 November 2006 : 06:06:32
|
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 < |
|
|
Gio
Starting Member
Italy
6 Posts |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 16 November 2006 : 07:45:16
|
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 < |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 16 November 2006 : 07:47:27
|
No it isn't possible to do what I suggested < |
|
|
Gio
Starting Member
Italy
6 Posts |
Posted - 16 November 2006 : 09:02:02
|
yesssssss....already tested! another idea?< |
|
|
Gio
Starting Member
Italy
6 Posts |
Posted - 17 November 2006 : 03:24:58
|
yuuuuuu-huuuuuuh!!< |
|
|
Gio
Starting Member
Italy
6 Posts |
Posted - 17 November 2006 : 05:05:52
|
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
< |
Edited by - Gio on 17 November 2006 08:25:58 |
|
|
modifichicci
Average Member
Italy
787 Posts |
Posted - 17 November 2006 : 13:48:09
|
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< |
Ernia e Laparocele Forum di Ernia e Laparocele Acces - MySql Migration Tutorial Adamantine forum |
|
|
|
Topic |
|