Argonath RPG - A World of its own

Argonath RPG Community => Forum and site ideas and information => Topic started by: Xavier12 on May 10, 2013, 10:01:46 pm

Title: Realtime updating...
Post by: Xavier12 on May 10, 2013, 10:01:46 pm
I had an idea that why not the "Recent posts" section should be updated whenever Tue New topic was updated?I mean realtime so we don't have to again reload the page to see new posts in New post section.
Title: Re: Realtime updating...
Post by: SugarD on May 11, 2013, 12:49:32 am
This has been suggested before. Unfortunately, it is not possible in this version of SMF because of the way it is designed. This is more of something that would need to be requested on the SMF Forums themselves.
Title: Re: Realtime updating...
Post by: Hevar. on May 11, 2013, 02:46:26 am
You mean like Facebook? xD
Title: Re: Realtime updating...
Post by: Patton on May 11, 2013, 07:07:57 am
Could be done with a simple JavaScript / Ajax script that reads the RSS feed (or a similar data endpoint) every x seconds and then updates the list whenever there are new items. The problem then would be performance, though, as there would be more HTTP requests hitting the server and the database.
Title: Re: Realtime updating...
Post by: SugarD on May 11, 2013, 07:11:41 am
Could be done with a simple JavaScript / Ajax script that reads the RSS feed (or a similar data endpoint) every x seconds and then updates the list whenever there are new items. The problem then would be performance, though, as there would be more HTTP requests hitting the server and the database.
That would still require a custom, heavily modified theme to display it properly. Otherwise, you'd have to modify SMF's core code itself, which would make it very difficult to update and install other mods into. As you said too, it wouldn't be good for performance.

I can't confirm for sure, but I did notice that SMF 2.1 is leaning more towards dynamic things similar to this. I don't believe this specific idea was planned/implemented in the current development version, but someone could easily suggest it, and it might have a chance of making it into the next release.
Title: Re: Realtime updating...
Post by: Patton on May 11, 2013, 07:37:49 am
That would still require a custom, heavily modified theme to display it properly. Otherwise, you'd have to modify SMF's core code itself, which would make it very difficult to update and install other mods into. As you said too, it wouldn't be good for performance.
No, it would require a JavaScript file containing the script to be included into the page, and the script itself would manipulate the DOM elements on the page and fill them with data.
Title: Re: Realtime updating...
Post by: SugarD on May 11, 2013, 10:19:25 am
No, it would require a JavaScript file containing the script to be included into the page, and the script itself would manipulate the DOM elements on the page and fill them with data.
The theme also has to display that information in multiple spots. It would take quite a bit of editing.
Title: Re: Realtime updating...
Post by: Teddy on May 11, 2013, 10:42:09 am
The theme also has to display that information in multiple spots. It would take quite a bit of editing.

I could do it while sleeping.... it isn't that hard lol
SimplePortal 2.3.7 © 2008-2025, SimplePortal