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)
 Members.asp TITLE sort (BUG + suggested fix)
 New Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 18 June 2008 :  15:28:57  Show Profile  Reply with Quote
Within members.asp I have noticed that when you click on the TITLE header it does not sort properly, it appears to sort the members names alphabetically.

I have resolved my file by changing the sort cases in members.asp
Find lines 159-162:
Change to:

case "levelasc"
strSql4 = " ORDER BY M_LEVEL ASC, M_POSTS ASC, M_NAME ASC"
case "leveldesc"
strSql4 = " ORDER BY M_LEVEL DESC, M_POSTS DESC, M_NAME ASC"


Taken that the Title data is based on the forum ranking and the number of posts placed I think this is probably the best way to achieve the results.,

Also you may want to consider changing the 'Title' to 'Ranking Level'
lines 325 - 327
" <td align=""center"" bgcolor=""" & strCategoryCellColor & """ background=""" & strImageURL & strCategoryCellBGImage & """ nowrap valign=""top""><a href=""members.asp?" & strNames & "link=sort&mode=search&M_LEVEL=" & SearchName & "&method="
if Request.QueryString("method") = "leveldesc" then Response.Write("levelasc") else Response.Write("leveldesc")
Response.Write """" & dWStatus("Sort by Ranking Level") & "><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """>Ranking Level</font></b></a></td>" & vbNewLine & _


Changes in Red
<

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 18 June 2008 :  15:37:38  Show Profile  Visit HuwR's Homepage
that would be a bug then since you are correct it does not sort by Title correctly<
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 18 June 2008 :  17:05:03  Show Profile
HuwR, must be all this West Country air spotting the bugs!<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 18 June 2008 :  18:10:27  Show Profile  Visit HuwR's Homepage
To be honest I don't think I have ever bothered sorting by Title before <
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 18 June 2008 :  18:32:23  Show Profile
The only times I ever tried it was when writing a page that used it LOL.<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 19 June 2008 :  02:56:12  Show Profile  Visit HuwR's Homepage
I'm going to move this to the BUG forum as a suggested fix until someone says otherwise<
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 19 June 2008 :  04:13:52  Show Profile
The problem with that fix, though, is that it does not take into account those members with a custom title. Also, alphabetically, "Administrator" should come before "Moderator" but, sorting by "M_LEVEL ASC", moderators will appear before administrators.

<

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.”
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 19 June 2008 :  05:45:50  Show Profile  Visit HuwR's Homepage
personally I would remove the ability to sort by Title since in the DB most Toitles are actually blank and a created on the fly so can not be sorted on :)<
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 30 June 2008 :  14:52:52  Show Profile
Huwr that why I renamed the Title to Ranking Level<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 30 June 2008 :  16:34:28  Show Profile  Visit HuwR's Homepage
quote:
Originally posted by Andy Humm

Huwr that why I renamed the Title to Ranking Level


but that is also pointless since that would be the same as sorting by number of posts<
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 01 July 2008 :  04:43:03  Show Profile
A bit harsh in tone "that is also pointless" we've all got to learn sometime and forum is for discussion/comment/resolution and we are all not perfick! Personally, I would ... - sounds better as used previously<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07