tagboard refresh

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

tagboard refresh

Post by Illusionist »

i made a tagboard, but at the moment i hae it refresh every 15 seconds... Does anyone know a way that i can only refresh when someone adds a comment? Like on tag-board.com?
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

maybe a cron to check if there have been any updates to the tagboard
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

whata you mean by cron?
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

A cron job is a task that your computer runs at times you set. You can set a cron job to run every 15 seconds for example. Or every 10 minutes.

What you could do is have a small frame (maybe even a 0px height frame) that refreshes every 15 seconds and checks to see if a new entry is added. If one has, then refresh the main tag board page.

Since the frame is 0px in height, the user might not even notice the refreshing every 15 seconds.
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

well, tahts sorta what i'm doing now... my tagboard is inside a frame that is refreshing every 15 seconds and it is noticeable....
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

thats not what he meant

you need 2 iframes, one called "check" and one called "main"

then have check refresh every 15 seconds or so and run a query to see if there are anymore comments, if there are, it refreshes the "main" frame too
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

i knwo that, but what i'm saying is the refresh is noticable... do you knwo of a way to refresh it so it wont be noticeable? right now im using meta refreshes...
Post Reply