Version: , by bira
Developer Last Online: Jun 2013
Version: 2.2.x
Rating:
Released: 12-09-2001
Last Update: Never
Installs: 109
No support by the author.
Hi,
This is something that is common in IRC - /me is away
In BBs, a user is either online or offline (or invisible).
But, on my Bulletin Board, the folks created such a community that every time someone goes on a holiday or goes offline for a while, he/she posts a new thread to annouce they're 'away.
So, I wrote a hack allowing a user to change his/her status to "away", including a return date and an away reason which will show up in their profile.
Likewise, the online/offline icon in postbit and buddy list will change to an away icon (a very faded version of the 'offline' one).
Some demo captures:
The Edit Profile screen, when a user is NOT away:
The Edit Profile screen when a user IS away:
The Get Info (User Profile) screen when a user IS away:
The Get Info (User Profile) screen when a user is NOT away:
The postbit icon when a user is away:
How to install:
Download the attached zip file. Upload away.gif to your images dir (or create your own away.gif).
Upload install_awayuser.php to your admin dir and follow the instructions.
fixed the above and now when i try and use admin cp to view a user, or edit a user, or find away users etc....it gives the same error code.
Parse error: parse error, unexpected '{' in /usr/local/psa/home/vhosts/chemical-conversions.com/httpdocs/admin/user.php on line 1733
i tried uninstalling the hacks on user.php and nothing changed, just now the error is on line 1733 instead of line 1746(cause i removed lines from removing the hack code)
here is the code where it sais the error, line 1733 is the line that sais: if ($orderby=="") {
PHP Code:
// ###################### Start findaway #######################
if ($action=="findaway") {
__if ($orderby=="") {
____$orderby="awaydate";
__}
__if ($limitstart=="") {
____$limitstart=0;
__} else {
____$limitstart--;
__}
__if ($limitnumber=="") {
____$limitnumber=99999999;
__}
__$users=$DB_site->query("SELECT user.userid,username,FROM_UNIXTIME(awaydate) AS awaydate,returndate,awayreason,away FROM user WHERE away = 1 ORDER BY $orderby$direction LIMIT $limitstart,$limitnumber");
__$countusers=$DB_site->query_first("SELECT COUNT(*) AS users FROM user WHERE away=1");
__$limitfinish=$limitstart+$limitnumber;
To save yourself a couple of queries (currently for every instance that someone sets their status as away, a query is added), I'd advise doing the following:
i got user.php erorrs when i installed i would love to use this hack although i had to uninstall.
i couldnt even approve members to the site
Code:
Invalid SQL: SELECT userid
FROM user
WHERE username='wildflower'
AND userid <>
mysql error: You have an error in your SQL syntax near '' at line 4
mysql error number: 1064
i had used the 1.2a the latest version to install this hack and still got this erorr. any one know of a fix. i would love to use this hack.