EvilZone
Programming and Scripting => Web Oriented Coding => Topic started by: Code.Illusionist on June 01, 2013, 12:00:04 AM
-
I am wondering how people display last post of some thread on forum. I saw forumotion use PHPBB3 and when you click on link of thread you see first post and not the last. Is there any way to change it with jQuery?
-
Not entirely sure what jQuery has to do with this, but a lot of forum software, including SMF has the option to reverse the post order in threads so that the newest posts are on the first page on the top. I would say it has to do with your database query. But I guess, if jQuery is handling the printing of the posts in a thread, you could reverse it there as well.
-
Problem with forumotion is that you can't change anything from database, nor use PHP. Anyway, I don't plan ever using such platform, just was curious about how that function, and is it possible somehow change it with jQuery. :D
-
Well, sure it is possible to manipulate the DOM of the forum posts with jQuery in such a way that the post order is reversed. Just asking because I kinda don't understand your problem.
-
If you're looking for something to change the order of items on a page, tinysort is a brilliant jQuery plugin for that.. http://tinysort.sjeiti.com/ (http://tinysort.sjeiti.com/)