Search By Topic_ID - Posted (1444 Views)
Starting Member
l3reacher
Posts: 12
12
I have been trying to modify the Search.asp so that I can search by Topic_ID, but I keep failing to get it working. I was able to modify the forum.asp to show the TOPIC_ID so that user can use that ID as a ticket number. With that ticket number, they can use that number instead of the keywords. Any help is appreciated.
I am actually editing the search_form_enhancem-34-0004a.zip version, but just renamed it to Search.asp. However I don't think that would really matter.

The link to that file is http://www.snitzbitz.com/mods/download.asp?mid=65&fid=57<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Starting Member
l3reacher
Posts: 12
12
Great! I tested it and it works great. Thanks alot all, espeically ruirib and shaggy for the guidance.<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
You're welcome, glad to be of service smile Have you got a link 'til we have a look at it?
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
Starting Member
l3reacher
Posts: 12
12
not yet, it is still in development, but will post it up when i do have it done.<
Posted
Junior Member
rpainter
Posts: 153
153
This is pretty cool. I've been trying to do something similar, and could not figure out what to do. Thanks.
Originally posted by l3reacher
I was able to modify the forum.asp to show the TOPIC_ID so that user can use that ID as a ticket number.
l3reacher,

can you tell me what you did to show the TOPIC_ID.<
Rusty Painter Learn to Cook REAL BBQ
SCBBQtalk.com Monkey Boy's BBQ Sauce
Posted
Starting Member
l3reacher
Posts: 12
12
In the forum.asp Search for code below , which is around line 595 for mine. Yours may be different.


Response.Write "</a></td>" & vbNewLine & _
" <td bgcolor=""" & strForumCellColor & """ valign=""middle"" align=""left"">" & vbNewLine & _
" <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """>"
if Topic_Sticky and strStickyTopic = "1" then Response.Write("Answered: ")
Response.Write "<span class=""spnMessageText""><a href=""topic.asp?" & ArchiveLink & "TOPIC_ID=" & Topic_ID & """>" & ChkString(Topic_Subject,"title") & "</a></span> </font>" & vbNewLine
if strShowPaging = "1" then
Call TopicPaging()
end if


Add the following code below right on top of the code above

Response.Write "</a></td>" & vbNewLine & _
" <td bgcolor=""" & strForumCellColor & """ valign=""middle"" align=""center"">" & vbNewLine & _
" <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """>"
Response.Write "<span class=""spnMessageText""><a href=""topic.asp?" & ArchiveLink & "TOPIC_ID=" & Topic_ID & """>" & ChkString(Topic_ID,"topicID") & "</a></span> </font>" & vbNewLine

<
Posted
Snitz Forums Admin
ruirib
Posts: 26364
26364
l3reacher, glad that you managed to do it :).<
Posted
Junior Member
rpainter
Posts: 153
153
Thanks l3reacher.<
Rusty Painter Learn to Cook REAL BBQ
SCBBQtalk.com Monkey Boy's BBQ Sauce
Posted
Starting Member
l3reacher
Posts: 12
12
no problem..<
Posted
Starting Member
l3reacher
Posts: 12
12
No problem rpainter.. I'm glad I managed to get through it also ruirib.<
You Must enter a message