Advertisement:

Author Topic: Automatic loading of new posts/topics  (Read 6927 times)

Offline Petter B

  • Semi-Newbie
  • *
  • Posts: 85
Automatic loading of new posts/topics
« on: March 07, 2013, 02:07:42 AM »
When watching the topics of a board, recent, unread... in Tapatalk 2, new topics loads automaticly when you have scrolled to the bottom of the page. I have also seen this feature in webshops. Would it be possible to implement it in the forum? It would be nice and maybe also save some traffic when not reloading a new page by pressing next page, just fetching new topics.


Offline Suki

  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,199
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: Automatic loading of new posts/topics
« Reply #1 on: March 07, 2013, 08:17:20 AM »
There is a mod floating around here, do a search for "infinite scroll". Def mod material.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,885
  • Gender: Male
    • Kindred-999 on GitHub
Re: Automatic loading of new posts/topics
« Reply #2 on: March 07, 2013, 10:55:48 AM »
yes... that would potentially KILL the server on any active forum.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: Automatic loading of new posts/topics
« Reply #3 on: March 07, 2013, 11:21:31 AM »
How exactly?


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,885
  • Gender: Male
    • Kindred-999 on GitHub
Re: Automatic loading of new posts/topics
« Reply #4 on: March 07, 2013, 11:24:30 AM »
like any "autoload" option....
if 25 people are doing it... no worries, if 250 people are doing it, that's a load...  if 600 people are doing it, that is a heavy load.


In order to autoload, it would either need to provide ALL possible messages at the time of the initial page load or with would beed to query the database each time the user browsed to the end of the page....
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Suki

  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,199
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: Automatic loading of new posts/topics
« Reply #5 on: March 07, 2013, 11:27:12 AM »
False.

You ain't messing with the queries, all you are doing is changing the presentation, the way SMf fetches the messages remains intact.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,885
  • Gender: Male
    • Kindred-999 on GitHub
Re: Automatic loading of new posts/topics
« Reply #6 on: March 07, 2013, 11:35:09 AM »
hmmm....   really?

I think we are perceiving this request in two different ways.
However, if your way works without extra load, then it's all good. :)

(Still mod material, though, I agree with that) :)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: Automatic loading of new posts/topics
« Reply #7 on: March 07, 2013, 11:38:16 AM »
Well, ultimately what we're talking about is triggering the next page of results being queried when the user gets to the bottom of the page without them having to hit a button. Potentially a marginal extra load but not a significant one in most cases.

Emanuele did a mod for this for topics already ;)
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Suki

  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,199
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: Automatic loading of new posts/topics
« Reply #8 on: March 07, 2013, 11:40:14 AM »
There is no different ways.

SMF already loads the next batch of messages when someone clicks on any of the pagination links, all infinite scroll does is saving the user from clicking that link. All you need to do is strip all other data and only retrieve messages.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,885
  • Gender: Male
    • Kindred-999 on GitHub
Re: Automatic loading of new posts/topics
« Reply #9 on: March 07, 2013, 01:06:28 PM »
suki, huh ???

of coruse there are differnet ways to PERCEIVE requests.

as evidenced by the fatc that I, obviously perceived something very different in the request than you did, hence my statement and your correction. :P
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Suki

  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,199
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: Automatic loading of new posts/topics
« Reply #10 on: March 07, 2013, 01:19:08 PM »
.___.

Whos talking about perceptions?

There is no extra server load, period.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: Automatic loading of new posts/topics
« Reply #11 on: March 07, 2013, 01:20:50 PM »
Actually, that's not strictly true. If you're autoloading, you're loading things earlier than you would otherwise, sometimes of which it may not be desired, meaning you might accidentally make some more requests - but the amount of requests extra is likely to be barely measurable.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Suki

  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,199
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: Automatic loading of new posts/topics
« Reply #12 on: March 07, 2013, 01:24:00 PM »
Actually, that's not strictly true. If you're autoloading, you're loading things earlier than you would otherwise, sometimes of which it may not be desired, meaning you might accidentally make some more requests - but the amount of requests extra is likely to be barely measurable.

Yes, autoloading can speed things up, however, under the context of "autoloading will kill your server" you can safely assume thats not true.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: Automatic loading of new posts/topics
« Reply #13 on: March 07, 2013, 01:25:50 PM »
Yup.

I'd also note that there are other side effects attached, like having to fix the URL displayed to users, amongst other things.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Petter B

  • Semi-Newbie
  • *
  • Posts: 85
Re: Automatic loading of new posts/topics
« Reply #14 on: March 18, 2013, 04:19:49 AM »
There is a mod floating around here, do a search for "infinite scroll". Def mod material.

Thanks, but the only thing I found was a link to http://www.infinite-scroll.com ? Is that what you meant?


Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.