The check is only needed when a user is on the last page of a topic, so it's only executed on the last page. That will reduce the server load significantly while your user's will still have all the benefits.
Where is the settings too i have looked everywhere and dont see any ?
viewtopic.phpto make things work as they should:
viewtopic.phpis quite old school in it's code, hasn't changed very much in the last decade (just a few features shoved into it).
Have you considered requesting just that and parsing the full HTML5 DOM to recognize new posts? Which should then be easily movable into the current document?
I have briefly considered and dismissed the idea. It would be very ugly in the first place since a single post is only a very small portion of an entire viewtopic page.
id="p14844151"in the wrapping element. This way around you don't have to take care for permissions, sort order, current page, language and whatnot - it's already rendered the way you need it. Which sounds less problematic than maintaining your own copy of /viewtopic.php.
Using regular expressions for this kind of stuff always reminds me of Mr. Monroe:AmigoJack wrote: ↑Thu Nov 02, 2017 12:38 pmYou can still query your own PHP file to ask for new posts, which in return queries /viewtopic.php to get it fully rendered and already cuts it down to only the new posts (server side processing has only advantages: PCRE over REs in JS, saving traffic, most likely faster...).