say the timeout is set at 15 mins. it'd be nice to be able to style the users active within the last minute as one colour (let's say black), within 5 dark grey, 10 mid grey, and so on.
when ordered correctly, the username would fade away!
i haven't got the skills for this but if anyone can teach me i'll try it out!
yeah, that's that i thought, i'm not sure i have the skills to do it but it would be cool. (sorry, the ajax suggestion was a separate thing and i might have confused the issue a little.)
first, there's a fairly serious sql-injection problem with some of the queries in this extension. the contents of the IpHistoryID cookie are not being escaped before being used in a database query.
Many thanks for the neat changes; just tried it though and got this:
Parse error: parse error, unexpected '-', expecting T_VARIABLE or '$' in /hsphere/local/home/z3std3si/zestdesign.net/_msc/php/extensions/WhosOnline/default.php on line 119
Which bits exactly did I have to copy, and to where? I copied all of the above code to line 120 but didn't have much luck unfortunately ^
Comments
say the timeout is set at 15 mins. it'd be nice to be able to style the users active within the last minute as one colour (let's say black), within 5 dark grey, 10 mid grey, and so on.
when ordered correctly, the username would fade away!
i haven't got the skills for this but if anyone can teach me i'll try it out!
edit: and maybe it'll work via ajax eh? ;P
(sorry, the ajax suggestion was a separate thing and i might have confused the issue a little.)
Any news, please?
first, there's a fairly serious sql-injection problem with some of the queries in this extension. the contents of the IpHistoryID cookie are not being escaped before being used in a database query.
here's a quick-fix diff:
second, if you want to order by date last active (most recently active at the top), add the line: after the AddWhere statement on line 31.
Cheers
If I understood brandonc correctly, you really only have to change these two lines: