Advertisement:

Author Topic: [Trick] Endless topics  (Read 4915 times)

Offline emanuele

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,895
  • Gender: Male
  • Because Orange is Orange
Re: [Trick] Endless topics
« Reply #40 on: June 16, 2012, 03:51:12 PM »
Great! :D

Thanks for the beta testing! ;D

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 ChalkCat

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,411
  • Gender: Female
  • Forum Tea Maker - go on have a cuppa!
    • ChalkCat
Re: [Trick] Endless topics
« Reply #41 on: June 16, 2012, 03:54:12 PM »
My pleasure ;)

Offline ChalkCat

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,411
  • Gender: Female
  • Forum Tea Maker - go on have a cuppa!
    • ChalkCat
Re: [Trick] Endless topics
« Reply #42 on: June 19, 2012, 12:52:44 PM »
Hey Emanuele  :)  I have implemented this on my live forum now and it's working great.  Do you have any plans to make the page number indicator (page index, whatever its called) update as you scroll, so that it doesn't still show that you're on page 1 after you've scrolled through to the end of page 5?  That would make it perfect ;)

Offline Liam_michael

  • SMF Hero
  • ******
  • Posts: 1,795
    • Free Homework Help
Re: [Trick] Endless topics
« Reply #43 on: June 19, 2012, 11:35:38 PM »
Are there any known crawling (search engines) issues?
Biology Forums - For All Your Science Needs

Featuring
  • Custom Gallery
  • Dictionary
  • Arcade
  • & Blog

Offline emanuele

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,895
  • Gender: Male
  • Because Orange is Orange
Re: [Trick] Endless topics
« Reply #44 on: June 20, 2012, 03:02:37 AM »
Hey Emanuele  :)  I have implemented this on my live forum now and it's working great.  Do you have any plans to make the page number indicator (page index, whatever its called) update as you scroll, so that it doesn't still show that you're on page 1 after you've scrolled through to the end of page 5?  That would make it perfect ;)
Honestly I still have to decide what to do with the page indexes...the one at the bottom is almost useless, so I was thinking to remove it completely. Also the one at the top is not particularly useful: if you have already expanded 4/6/8 pages you'd be so down in the page that you'd probably want to change topic instead...

Are there any known crawling (search engines) issues?
No idea, sorry.

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 ChalkCat

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,411
  • Gender: Female
  • Forum Tea Maker - go on have a cuppa!
    • ChalkCat
Re: [Trick] Endless topics
« Reply #45 on: June 20, 2012, 03:42:49 AM »
Great minds eh? After I posted last night I reached the same conclusion and removed my bottom page index  ;)

Offline emanuele

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,895
  • Gender: Male
  • Because Orange is Orange
Re: [Trick] Endless topics
« Reply #46 on: June 20, 2012, 03:56:52 AM »
lol

Another thing I was considering is to add some kind of "navigation/moderation bar" (pages, previous/next, up/down, breadcrumbs, moderation buttons and other things) in a fixed div somewhere since most of those will not be reachable when the trick is active.

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 Arantor

  • SMF Legend
  • *
  • Posts: 51,027
    • wedgebook on Facebook
Re: [Trick] Endless topics
« Reply #47 on: June 20, 2012, 08:12:49 AM »
Well, the search engines won't see any JavaScript so provided the regular pagination is working, they'll still crawl...

Offline Groovystar

  • SMF Hero
  • ******
  • Posts: 2,224
    • Warrior Cats RPG Forum
Re: [Trick] Endless topics
« Reply #48 on: June 23, 2012, 12:37:37 AM »
This is a GREAT idea! I'd love to give it a try on my site. I imagine though that when someone makes a post to the topic, the page that they return to would be the end page of that topic, rather than the gigantic stream that they might have loaded beforehand? {This to prevent heavy use of resources.}

Also, let's say the topic has 200,000 replies. {Yes, I have one that does exceed this.} Would there be a way for it to avoid overload by eventually loading the next page by itself, say maybe every 500 replies or whatever was tolerable?

Offline emanuele

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,895
  • Gender: Male
  • Because Orange is Orange
Re: [Trick] Endless topics
« Reply #49 on: June 23, 2012, 01:49:28 PM »
This is a GREAT idea! I'd love to give it a try on my site. I imagine though that when someone makes a post to the topic, the page that they return to would be the end page of that topic, rather than the gigantic stream that they might have loaded beforehand? {This to prevent heavy use of resources.}
Yes, that's correct, but more than to avoid server load is because it would be rather complex to redirect to somthing that is generated "on-the-fly".

Also, let's say the topic has 200,000 replies. {Yes, I have one that does exceed this.} Would there be a way for it to avoid overload by eventually loading the next page by itself, say maybe every 500 replies or whatever was tolerable?
At the moment no, there isn't such a feature, but that wouldn't be too hard to implement.
* emanuele is just back from a marriage and he needs a bit of time to be able to code... :P

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 Arantor

  • SMF Legend
  • *
  • Posts: 51,027
    • wedgebook on Facebook
Re: [Trick] Endless topics
« Reply #50 on: June 23, 2012, 03:42:24 PM »
In any case you really shouldn't have topics that long - it means pagination drops off in efficiency (and makes everything slower)

Ideally topics should be capped at about 25k posts.

Offline emanuele

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,895
  • Gender: Male
  • Because Orange is Orange
Re: [Trick] Endless topics
« Reply #51 on: June 23, 2012, 04:10:14 PM »
Just realised that such a topic contains more than three times the messages my entire board has... lol

If you want to consider limit the topics length, I wrote this mod a while ago (not tested so much tough as usual :P).

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 Groovystar

  • SMF Hero
  • ******
  • Posts: 2,224
    • Warrior Cats RPG Forum
Re: [Trick] Endless topics
« Reply #52 on: June 23, 2012, 05:59:30 PM »
Arantor: how would post capping be made possible, as well as a smooth transition for members when the old thread gets locked and a new one begins? Would they be able to chain together?

Emanuele - I'm still unable to extract anything from that mod you gave me that I wanted to try a manual installtion on. :(

Offline emanuele

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,895
  • Gender: Male
  • Because Orange is Orange
Re: [Trick] Endless topics
« Reply #53 on: June 23, 2012, 06:15:17 PM »
Oh, forgot about it, sorry.

Two options:
1) I'll repack it (tomorrow)
2) download 7-zip and decompress any kind of zipped package.

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 Arantor

  • SMF Legend
  • *
  • Posts: 51,027
    • wedgebook on Facebook
Re: [Trick] Endless topics
« Reply #54 on: June 23, 2012, 06:19:24 PM »
Groovystar: I have no ideas. I'm not a community person and as some people here will (enthusiastically) tell you, I'm not much of a people person either.

The method I'd use, personally, is to simply lock the topic and tell people where the new one is. But I'm a bit skeptical of any thread requiring a couple of hundred thousand replies, seems to me that it's likely better not being a real topic and being some kind of chat log instead?

Offline Groovystar

  • SMF Hero
  • ******
  • Posts: 2,224
    • Warrior Cats RPG Forum
Re: [Trick] Endless topics
« Reply #55 on: June 23, 2012, 11:47:45 PM »
It's more like there are hundreds of thousands of threads on my board and keeping up with something like that manually is not possible for us. :P

Offline emanuele

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,895
  • Gender: Male
  • Because Orange is Orange
Re: [Trick] Endless topics
« Reply #56 on: June 24, 2012, 04:02:54 AM »
If you read my post back there there is a link to a mod I wrote exactly to automatically lock topics when they become longer than a certain amount of posts and start a new one with cross-linking (i.e. the old topic points to the new, the new points to the old) and numbering of the series.

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 Groovystar

  • SMF Hero
  • ******
  • Posts: 2,224
    • Warrior Cats RPG Forum
Re: [Trick] Endless topics
« Reply #57 on: June 24, 2012, 05:57:09 PM »
You're a genius!

Offline Groovystar

  • SMF Hero
  • ******
  • Posts: 2,224
    • Warrior Cats RPG Forum
Re: [Trick] Endless topics
« Reply #58 on: July 02, 2012, 09:11:16 PM »
I discussed this with my staff and the issues that came up were these:

How would people's unread replies, subscriptions and bookmarks be able to be made fully compatible {seamless} with the "chaining" threads function?

In other words, would they be auto-subscribed to new ones? How would we avoid piling up on 20 or 100 chain-links of a very long-running topic?

What of all the manually created links to threads that use the "#new" function to bring the clicker to the first new post in that linked thread? Would it carry through on treating the newly created "chained" threads as part of this link, or would it die? This is a must for us because we have events that are linked to and that in their peak will generate over 6,000 posts in a day.

We have an upcoming groups feature being created that will place threads in groups too, and I am wondering if it'd be possible to auto-subscribe these chained threads.

Probably these are not concerns for smaller forums, but when you get to my size, suddenly a lot of things that were never issues before become issues, sometimes big issues. :P We have a lot of issues related to thread lengths and profiles with large numbers of posts on them, in general. It seems that when a forum reaches large size, you get a lot more members with huge numbers of posts and also threads with obscene numbers of posts, commonly you get threads and profiles with 5 and 6 figures.

Offline emanuele

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,895
  • Gender: Male
  • Because Orange is Orange
Re: [Trick] Endless topics
« Reply #59 on: July 03, 2012, 05:48:55 AM »
How would people's unread replies, subscriptions and bookmarks be able to be made fully compatible {seamless} with the "chaining" threads function?
Not sure what what you mean here, but I think I'll answer below.

In other words, would they be auto-subscribed to new ones? How would we avoid piling up on 20 or 100 chain-links of a very long-running topic?

What of all the manually created links to threads that use the "#new" function to bring the clicker to the first new post in that linked thread? Would it carry through on treating the newly created "chained" threads as part of this link, or would it die? This is a must for us because we have events that are linked to and that in their peak will generate over 6,000 posts in a day.
SMF's original behaviour is not changed.
You can surf pages like normal: you want to go to page 6 of a topic? You can, once you are *inside* the topic starting from that page, the trick will load the subsequent pages at the end of the current one.
Let's do an example: you have a 20 pages topic.
You go to page 1, scroll down, it will load page 2, scroll down, it will load page 3 and so one.
Same topic, you click a link that brings you to page 15 you are normally brought to page 15, scroll down, it will load page 16, scroll down it will load page 17 and so on.
Same topic you have read it all in the past, a new post comes up and you click on the "new" button, you will go to the first unread topic directly (like with a normal SMF installation), if this post in the last page than the trick will not load anything else, if the post is no more in the last page, the scrolling down it will load the last page.

We have an upcoming groups feature being created that will place threads in groups too, and I am wondering if it'd be possible to auto-subscribe these chained threads.
Not having any idea of how this works, I don't have any idea if the two will work properly together...

Probably these are not concerns for smaller forums, but when you get to my size, suddenly a lot of things that were never issues before become issues, sometimes big issues. :P We have a lot of issues related to thread lengths and profiles with large numbers of posts on them, in general. It seems that when a forum reaches large size, you get a lot more members with huge numbers of posts and also threads with obscene numbers of posts, commonly you get threads and profiles with 5 and 6 figures.
Of course I have no idea of how this is scalable in the real world, though it should not load the server more than the normal view of a topic from a user (since in fact it doesn't do anything else than load the "following" page by javascript and inject it in the current page. Of course if a user goes through a 2000 pages topic all by this means his browser will most likely crash due to memory usage I'd guess.

ETA: one possible annoyance could be that someone could start from the first page of a topic, push the "end" button on the keyboard and make all the topic load (almost) without interruption. That could increase the server load.

Note to self: add a minimum time before load the subsequent page.
« Last Edit: July 03, 2012, 06:54:40 AM by emanuele »

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