Webbo
Average Member
United Kingdom
982 Posts |
Posted - 06 September 2003 : 17:24:15
|
Hi everyone,
I have found over a period of time that new members tend to post similar question to ones that have previously been posted without using the search function first. This appears to be because the search link is overlooked being in the top-right corner, so I have made the following changes so that a search link and icon will show at the top of each forum alongside the 'New Topic' link.......
Load icon_search.gif into forum folder: , (260 bytes)
In file inc_iconfiles.asp add the following after line 114:
quote: Const strIconSearch = "icon_search.gif|20|20"
In forum.asp find this at line 698-703:
quote: if Forum_Status <> 0 then Response.Write " <a href=""post.asp?method=Topic&FORUM_ID=" & Forum_ID & """>" & getCurrentIcon(strIconFolderNewTopic,"New Topic","align=""absmiddle""") & "</a> <a href=""post.asp?method=Topic&FORUM_ID=" & Forum_ID& """>New Topic</a><br />" & vbNewLine else Response.Write " " & getCurrentIcon(strIconFolderLocked,"Forum Locked","align=""absmiddle""") & " Forum Locked<br />" & vbNewLine end if end if
and replace with:
quote: if Forum_Status <> 0 then Response.Write " <a href=""post.asp?method=Topic&FORUM_ID=" & Forum_ID & """>" & getCurrentIcon(strIconFolderNewTopic,"New Topic","align=""absmiddle""") & "</a> <a href=""post.asp?method=Topic&FORUM_ID=" & Forum_ID& """>New Topic</a>" & vbNewLine else Response.Write " " & getCurrentIcon(strIconFolderLocked,"Forum Locked","align=""absmiddle""") & " Forum Locked" & vbNewLine end if Response.Write " <a href=""search.asp"">" & getCurrentIcon(strIconSearch,"Search Forum","align=""absmiddle""") & "</a> <a href=""search.asp"">Search</a><br />" & vbNewLine end if
That's it
Dave |
|