Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Open)
 BUG: v 3.3 Forum order (or lack of) in Search.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Aaron S.
Average Member

USA
985 Posts

Posted - 28 March 2002 :  18:43:58  Show Profile  Visit Aaron S.'s Homepage
In the dropdown for Search Forum: on search.asp... the forums are listed in no particular order (and therefore look unordered).

I'm not sure what the right order should be... probably F_SUBJECT but it shouldn't be left to the whim of SQL SERVER (who will always choose something funky).



Nathan
Help Moderator

USA
7664 Posts

Posted - 28 March 2002 :  19:27:24  Show Profile  Visit Nathan's Homepage
That select is in the order that the forums are on default.asp (At liest it is for me)

However the results are organized by forum in no particular order.

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 28 March 2002 :  19:28:25  Show Profile
They are in the same order as specified by the admin. First by order of category, then by order of forum.

Nikkol
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 28 March 2002 :  19:35:08  Show Profile
actually it's ordered by FORUM_TOPICS.FORUM_ID and then by FORUM_TOPICS.T_LAST_POST.

the search is already pretty database intensive, if we also pull data from the FORUM_CATEGORY and FORUM_FORUM tables just to get the order set by the Admin, is it really worth the extra overhead? Right now the only tables used by search.asp are FORUM_TOPICS, FORUM_REPLY & FORUM_MEMBERS (FORUM_A_TOPICS & FORUM_A_REPLY when searching the archive).
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 28 March 2002 :  19:38:13  Show Profile  Visit HuwR's Homepage
he means the list of forums in the dropdown, not the search results.

The dropdown query has no order by clause

Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 28 March 2002 :  19:42:02  Show Profile  Visit Nathan's Homepage
Oosp, I guess it doesn't in 3.3.03, I was looking at the search.asp here on this site.

Which brings up another question. How difficult would it be to make a 'search by cat' select box?

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 28 March 2002 :  19:42:54  Show Profile
quote:

he means the list of forums in the dropdown, not the search results.

The dropdown query has no order by clause


ahh.. ok. That's easy enough to fix. I think it was on my to do list at one time.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 28 March 2002 :  19:43:51  Show Profile
quote:
Which brings up another question. How difficult would it be to make a 'search by cat' select box?


the search page that Gor had coded did just that. It searched by Category instead of by individual forums.
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 28 March 2002 :  19:47:57  Show Profile  Visit Nathan's Homepage
I could be benificial to allow either option.

For example when I am trying to find out if I'm posting a bug that has already been posted I end up searching the bugs (open) forum, then go back and search the bugs (closed) forum.

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's
Go to Top of Page

Aaron S.
Average Member

USA
985 Posts

Posted - 28 March 2002 :  23:33:11  Show Profile  Visit Aaron S.'s Homepage
I think Category would be of value also...

BTW: for those that want it, here is the sql call to sort Forums in the same order as they are on the main page.


strSql = "SELECT " & strTablePrefix & "FORUM.FORUM_ID, " & strTablePrefix & "FORUM.F_SUBJECT"
strSql = strSql & " FROM " & strTablePrefix & "FORUM, " & strTablePrefix & "CATEGORY"
strSql = strSql & " WHERE " & strTablePrefix & "CATEGORY.CAT_ID = " & strTablePrefix & "FORUM.CAT_ID"
strSql = strSql & " ORDER BY " & strTablePrefix & "CATEGORY.CAT_ORDER, " & strTablePrefix & "FORUM.F_ORDER"


It should go somewhere around line 392.



Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07