Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Topic list order
Avatar
Simon Trice
Wales
Member
Free Members
sp_UserOfflineSmall Offline
Feb 15, 2016 - 8:03 pm

Not Really.  In the topics database table there is no column entry for post_date which is why the option offered was giving an invalid query, the post_date column is in the posts database table. 

The topic_date column gives the date the topic was posted (supplied either by the actual posting date or the amended date if using that option) so using that to sort desc will give the same output as sorting by topic_id desc if the topic post date wasn't altered by a moderator;  In which case the topic would then appear out of position in the topic list when viewed (the exact issue I was having).

Using the topic_date instead sorts the forum topics correctly, repositioning the altered date topics accordingly.

It may be a good idea to use this as the default way of sorting forum topics if you are going to allow moderators and admins permission to change the post dates.

TBH I am surprised that it hasn't been picked up on before, but maybe no-one has had to do quite what I am having to do with it frown

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 16, 2016 - 12:18 am

no, not a good idea really - from a performance perspective anyways...  sorting in mysql on a date column is much, much slower than on an integer id, which will match date order anyways... of course, moving posts between topics can perturb that... or if data changed manually...

guess I would have to better understand the use case for lots of modifications of post dates...

and our api with filter on the database query gives easy access for you to change it as you desire...

Avatar
Simon Trice
Wales
Member
Free Members
sp_UserOfflineSmall Offline
Feb 16, 2016 - 12:57 pm

Hi Papa

I am manually having to transfer over 2000 forum topics from a hosted forum which allows no access to the back end.

The issue happens when I am adding these topics and replies (in reverse order) and an existing member decides to post a new topic on the new forum.  Everything then goes out of the window as far as sorting is concerned hence my need of the filter and having to make so (oh so many) topic date edits.

I sometimes wish I had turned the guy down but a customer is a customer.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 16, 2016 - 1:09 pm

I kind of think any amount of money would not cover this task for me 🙂 i admit it!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 16, 2016 - 9:43 pm

yikes!

Avatar
Simon Trice
Wales
Member
Free Members
sp_UserOfflineSmall Offline
Feb 17, 2016 - 9:58 am

I know, right... eek

 

...wanna help? twisted

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625