Staredit Network

Staredit Network -> Website Feedback, Bugs & Discussion -> Simple thing for IP to add
Report, edit, etc...Posted by Doodle77(MM) on 2006-04-17 at 15:52:26
Could you make it so that the shoutbox reports its Last-Modified time as the time of the last shout? I'm trying to do something cool but I dont want to hit SEN hard.
Report, edit, etc...Posted by (SEN)Dante50 on 2006-04-17 at 15:53:59
A half-decent idea, but what are you planning? sleep.gif
Report, edit, etc...Posted by scwizard on 2006-04-17 at 16:28:46
The shoutbox script is pretty buggy -> http://www.staredit.net/index.php?act=Shoutbox&shout=197806

He's planning to h4x0r it (he can do that kind of stuff LAMF).

He wants to make a shoutbox botish thingy but he doesn't want to kill SEN's bandwidth (unconfirmed, I'll specify once I get to him in person in about an hour).
Report, edit, etc...Posted by Doodle77(MM) on 2006-04-17 at 16:51:39
You dont know about Farty's Shoutbox?

ADDITION:
This might also be useful when auto-refresh is implemented in v5 because that way you can HEAD first to check if the shoutbox has been updated.
Report, edit, etc...Posted by Darktossgen(MM) on 2006-04-17 at 20:03:30
Thats my post yawn.gif Why is it making the script buggy?
Report, edit, etc...Posted by Doodle77(MM) on 2006-04-18 at 10:21:23
Its not, It's just in order to keep my AJAX shoutbox for v4 from hitting SEN hard.
Also, to get rid of all the css on every page, use @import "stylename.css"; to put the CSS in another page. I dont think you need to support browsers with no CSS2.
Report, edit, etc...Posted by IsolatedPurity on 2006-04-18 at 10:54:45
I should just make posted variables only allowed from sen itself ;o
Report, edit, etc...Posted by BeeR_KeG on 2006-04-18 at 11:26:43
Having all these shoutbox mods and add-ons just opens the possibilities for a security threat for SeN.
Report, edit, etc...Posted by IsolatedPurity on 2006-04-18 at 11:31:40
It doesn't open them... it just exploits them smile.gif
Report, edit, etc...Posted by Doodle77(MM) on 2006-04-18 at 15:57:51
What? Anyway, this will only make it so that the script can first send a HEAD request so that it can figure out if the shoutbox has been updated.
Report, edit, etc...Posted by IsolatedPurity on 2006-04-18 at 22:55:10
i don't see how you could just mold an ajax script out of something that's not set up for it.
But, even if you could... I rather you not. SEN is a server whore already...
Report, edit, etc...Posted by Doodle77(MM) on 2006-04-19 at 16:26:22
yeah, but you see, this will acutally take LESS than the current shoutbox because sending a HEAD request doesnt get the actual doucument, so pressing refresh would not get the 3.36kb of shoutbox, but the header.
CODE
javascript:xmlhttp = new XMLHttpRequest();xmlhttp.open("HEAD", "http://www.staredit.net/index.php?act=Shoutbox&view=globalshouts",true);xmlhttp.onreadystatechange=function() {if (xmlhttp.readyState==4) {alert(xmlhttp.getAllResponseHeaders());}};xmlhttp.send(null);
Copy this into the browser window to see the current header.

The header I want you to add is Last-Modified. Heres an example
CODE
Last-Modified: Wed, 15 Nov 1995 04:58:08 GMT

Then, the AJAX can send a head request and see if the shoutbox has been updated by comparing it with the previous one it had.
Next Page (1)