Author Topic: [jQuery] Move to last post  (Read 901 times)

0 Members and 1 Guest are viewing this topic.

Offline Code.Illusionist

  • Royal Highness
  • ****
  • Posts: 687
  • Cookies: 39
  • Compile or die trying
    • View Profile
[jQuery] Move to last post
« 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?
Vae Victis - suffering to the conquered

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: [jQuery] Move to last post
« Reply #1 on: June 01, 2013, 12:47:00 am »
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.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline Code.Illusionist

  • Royal Highness
  • ****
  • Posts: 687
  • Cookies: 39
  • Compile or die trying
    • View Profile
Re: [jQuery] Move to last post
« Reply #2 on: June 01, 2013, 02:00:00 am »
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
« Last Edit: June 01, 2013, 02:00:30 am by Code.Illusionist »
Vae Victis - suffering to the conquered

Offline Carraway

  • NULL
  • Posts: 4
  • Cookies: 0
    • View Profile
Re: [jQuery] Move to last post
« Reply #3 on: June 02, 2013, 01:34:34 am »
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.

Offline wookie

  • Peasant
  • *
  • Posts: 68
  • Cookies: -4
    • View Profile
Re: [jQuery] Move to last post
« Reply #4 on: June 02, 2013, 07:49:23 am »
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/