EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   Site Help & Suggestions (https://www.eq2interface.com/forums/forumdisplay.php?f=12)
-   -   Sorting by Column Header (https://www.eq2interface.com/forums/showthread.php?t=8354)

Seagoat 05-06-2007 04:07 PM

Sorting by Column Header
 
In the Downloads section, I'm clicking on the table column headers to sort by different criteria, but the page isn't being resorted. The URL query string is changing, just not the page contents.

It worked not that long ago -- since the site upgrade -- but it's definitely borked now. :-/ Browsing through the different download categories, it seems to be happening in each one so far.

Dolby 05-06-2007 11:51 PM

Do you have a link where its happening? I am able to sort just fine, that code hasnt changed with the upgrade.

Just double checked the column sorting in a download category with IE7, FF & on my mac's Safri and I'm able to sort the column then click the arrow to change the order ASC/DESC.

Seagoat 05-07-2007 12:22 AM

I'm seeing it in all download categories, but here's an example...
Experience Bars (http://www.eq2interface.com/downloads/cat109.html)

The default sort is "Last Updated." When I click on the arrow to sort oldest to newest (http://www.eq2interface.com/download...sb=lastupdate), the URL changes but the page's sort order remains the same.

I get the same behavior when clicking any of the column headers:
Filename (http://www.eq2interface.com/download...sc&sb=filename)
Uploaded By (http://www.eq2interface.com/download...sc&sb=uploader)
Size (http://www.eq2interface.com/download...sc&sb=filesize)
Downloads (http://www.eq2interface.com/download...asc&sb=dlcount)
Rating (http://www.eq2interface.com/download...=asc&sb=rating)

As expected, this behavior isn't browser-specific (since it relies on database queries and server-side code execution). I'm seeing the same thing in Firefox and Netscape.

gm9 05-07-2007 03:18 AM

Just to confirm that Seagoat isn't the only one again with issues, the sorting doesn't work for me either, looks like the so= and sb= parameters get ignored by the code.

Seagoat 05-07-2007 08:04 AM

Ok, just noticed some odd behavior...

Scenario 1: When I go to an interface category from the category listing page, then try to sort, I get no changes.

Scenario 2: When I'm viewing an interface piece and I click the category name in the breadcrumb links above the file description, the sorting magically works again.

The URLs are not the same!! :eek:

Scenario 1 (Does not work)
Code:

http://www.eq2interface.com/downloads/cat100.html?cid=100&dp=0&sh=full&so=asc&sb=filename
Scenario 2 (Works)
Code:

http://www.eq2interface.com/downloads/index.php?cid=100&dp=0&sh=full&so=asc&sb=filename

gm9 05-07-2007 09:24 AM

Ah there you found it, looking at the source the column header links are wrong, they only contain the argument "?XXX" but not the resource to pass it too "index.php?XXX". Although that would be fine if the links for the categories would not be to .html pages but rather to the index.php?cid=XXX in the first place.

Dolby 05-07-2007 12:53 PM

Thanks for looking further into it. I was able to experience the same problem as you after noticing the link. I forced the sort links to be .php. I was using $PHP_SELF in the script and it was getting confused from the mod_rewrite for the nicer lookin url's.

Thanks for your help guys.

Seagoat 05-07-2007 03:05 PM

Working now...thanks for the quick fix. :)


All times are GMT -5. The time now is 09:21 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI