Congratulations to vtecmec for winning May/June's Lude Of The Month, with his DIY Turbo BB1 build.

>>> Click Here For Profile <<<

Image

Live post feed?

User avatar
Gayno
Lord Gayness
Posts: 5478
Joined: Sun Sep 19, 2010 4:41 pm
My Generation: 4G
Location: Stourport, Worcs
Has thanked: 4 times
Been thanked: 17 times
Contact:

Live post feed?

Post by Gayno » Sun Jan 20, 2013 11:31 am

Another forum I was on a few years back had a "live feed" option.

So for loners like me who sit at the PC all night, I didn't have to click "New posts" every 5 minutes to see if someone had posted :oops:

@indigolemon @kawa

User avatar
NafemanNathan
LotM Winner
Posts: 20144
Joined: Sun Aug 08, 2010 9:37 pm
My Generation: 0G
Location: Yeovil, Somerset
Has thanked: 8 times
Been thanked: 122 times

Post by NafemanNathan » Sun Jan 20, 2013 12:59 pm

Good idea, but if this is possible, make sure it's something you can easily toggle on and off ;-)

User avatar
A1ex
Posts: 3189
Joined: Fri Jan 27, 2012 7:43 pm
My Generation: 5G

Post by A1ex » Sun Jan 20, 2013 1:09 pm

I've setup something similar on one of the systems I'd setup in work. You just need a refresh script in the new post page header, set it to refresh every 60-90 seconds and jobs a good un. Good idea.

p.s.

This is the script that I used in the head element of the page;

<META http-equiv="Refresh" content="60;url=http://www.ludegeneration.co.uk/search. ... d=newposts">

and heypresto if you wanted to do it that was of course ;)
PAW rebuilt 98 prelude 228bhp & 171lb/ft R.I.P.
PAW rebuilt 01 ATR 238bhp & 164lb/ft sold
Monte Carlo Blue 02 S2K :D

User avatar
Gayno
Lord Gayness
Posts: 5478
Joined: Sun Sep 19, 2010 4:41 pm
My Generation: 4G
Location: Stourport, Worcs
Has thanked: 4 times
Been thanked: 17 times
Contact:

Post by Gayno » Sun Jan 20, 2013 1:23 pm

I can see how that would work, but surely refreshing the page would increase the traffic on the server.

The forum I've seen it on, the page updated automatically as soon as someone posted. Much like the live feed in the top right corner of Facebook.

User avatar
A1ex
Posts: 3189
Joined: Fri Jan 27, 2012 7:43 pm
My Generation: 5G

Post by A1ex » Sun Jan 20, 2013 1:40 pm

The live feed with new post with increase load on the server too.

It will have to keep the connection open with the server rather than reloading and will still have to keep checking for changes to all of the tables in the database. Think you'd need to use AJAX or similar for this function to work.

Either way it will increase server traffic, the first method is a bit more striaght forward which is why I use it :lol:
PAW rebuilt 98 prelude 228bhp & 171lb/ft R.I.P.
PAW rebuilt 01 ATR 238bhp & 164lb/ft sold
Monte Carlo Blue 02 S2K :D

User avatar
Ammo
Admin | Spammer Assassin
Posts: 2945
Joined: Sun Jun 20, 2010 10:35 pm
My Generation: 4G
Location: Boston
Been thanked: 6 times
Contact:

Post by Ammo » Sun Jan 20, 2013 1:46 pm

Just click "New posts" you lazy sod lol :lol:

User avatar
indigolemon
The Chaos Engine
Posts: 6676
Joined: Wed Jun 30, 2010 1:45 pm
My Generation: 4G
PSN GamerTag: M149YSL
Location: Kelty, Fife
Has thanked: 20 times
Been thanked: 70 times
Contact:

Post by indigolemon » Mon Jan 21, 2013 9:56 am

Err ... nah! Not going to invest any time in that one, sorry @Gayno. To be honest, it's a feature that may eventually end up finding it's way into phpBB anyway - until then though not planning on doing that.

@A1ex - dude! That's a nasty hack right there man :lol: Been a while since I played with the old meta refresh tags. I vaguely remember trying to time an animated gif so that the page would click on after it finished loading way back in the late 90's. Remember thinking I'd cracked it, then the first person still on a 14k modem tried the site :-(
'On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.' - Charles Babbage

User avatar
A1ex
Posts: 3189
Joined: Fri Jan 27, 2012 7:43 pm
My Generation: 5G

Post by A1ex » Mon Jan 21, 2013 10:11 am

:lol: I know, it works tho. On all browsers and reliably too so it's good for me :D
PAW rebuilt 98 prelude 228bhp & 171lb/ft R.I.P.
PAW rebuilt 01 ATR 238bhp & 164lb/ft sold
Monte Carlo Blue 02 S2K :D

User avatar
Donald
Supporter 2015
Posts: 9894
Joined: Sun Jun 12, 2011 10:17 pm
My Generation: 0G
Location: Earth 3.0
Been thanked: 6 times

Post by Donald » Mon Jan 21, 2013 10:39 am

What the hell is a 14k modem? I didn't think anything was worse than 56k. :lol:

User avatar
A1ex
Posts: 3189
Joined: Fri Jan 27, 2012 7:43 pm
My Generation: 5G

Post by A1ex » Mon Jan 21, 2013 10:47 am

I had a 28.8k for a while :D

I remember taking 45 minutes to download a 3 minute song on napster. IF the connection dropped out on 95% you had to start again :facepalm:
PAW rebuilt 98 prelude 228bhp & 171lb/ft R.I.P.
PAW rebuilt 01 ATR 238bhp & 164lb/ft sold
Monte Carlo Blue 02 S2K :D

Post Reply

Return to “Archive”