![]() |
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: https://vborg.vbsupport.ru/ The Edit Profile screen when a user IS away: https://vborg.vbsupport.ru/ The Get Info (User Profile) screen when a user IS away: https://vborg.vbsupport.ru/ The Get Info (User Profile) screen when a user is NOT away: https://vborg.vbsupport.ru/ The postbit icon when a user is away: https://vborg.vbsupport.ru/ 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. Cheers, Bira newest version by sho here: https://vborg.vbsupport.ru/showthrea...606#post287606 |
bira~~
u do a great hack again~~~ thankz~~~ |
Very tight Bira, i luv it. Thanks for such a great hack.
|
pretty kewl hack.....thanks for your shared..........
|
great hack bira, thx a lot :cool:
|
that is a great hack, it is perfect for my board!
never would have thought of this hack! thanks |
Nice, I'll install it later when I get some time. :)
|
Done installing. :)
*cough* I see you've mastered my install script, eh? ;) Oh and there's a little bug. You use the same variables to denote the day, month and year name as the birthday system uses. You'll need to change that or the birthday will become your away date when you edit your profile next. :) |
[QUOTE]Originally posted by FireFly
Done installing. :) *cough* I see you've mastered my install script, eh? ;) |
Nice hack man, thanks! :)
|
[QUOTE]Originally posted by bira
Yeah, I've actually been using it for my last 3 or 4 hacks. It's very good. (Regarding that - I got a small surprise coming. But let me finish it first ;)) |
I receive a parse error in admin/functions.php
Bira, you say in the install: Step 1 of 1 FIND: PHP Code:
PHP Code:
PHP Code:
Hope u can help me out with this. |
Lesane,
Revert back the code to what it was originally. After that, find: PHP Code:
PHP Code:
|
Thank you for this very lovely hack, Bira!
Installed ... and works smooth without any problems ... a nice to have. |
Thanks Bira, it works perfect now.
|
But ...
if you User don't gives a Return Date it says he will come back on 1. Januar 1970. Is there a way to change that to something like "not quite sure" or something like that? (And ... do somebody know where my hackcount has gone? I had five or six of them installed ... at least this one. And now it says none. Quite strange.) |
[QUOTE]Originally posted by Meta
But ... if you User don't gives a Return Date it says he will come back on 1. Januar 1970. Is there a way to change that to something like "not quite sure" or something like that? |
Quote:
Quote:
(Look ... thats because i'm a junior member and a newbie with only 10 Posts at all and ... oh, what a shame.) Anyway ... thanks for your fast reply. I think, this will work. If not ... i'll be back. |
Works like it should. Great! But ...
Now it would be nice, if the Admin could do this also for an user. The admin can enter a birthday for users ... why not the longer absence ...? Would be nice. |
Hey bira, nice hack once again ...
but before I install it, I was wondering if this one had a pop-up or some sort of notification to remind a user who has been "away" if he or she wants to update their away info after they return ... I know that some users, once they set an away message and then come back a little early, will sometimes forget to to update their away status ... hence they will already be posting yet still be considered "away" until the date is reached. Maybe, even automatically disable the away setting once the user posts a message before the date he stated he was gonne be back... I dunno, just a suggestion ... I'll install the hack anyway ;) |
ok, here are a couple of add-ons:
1) Cancel 'Away' status when user posts: Open newthread.php Find: Code:
$DB_site->query("UPDATE user SET Code:
$DB_site->query("UPDATE user SET Code:
$DB_site->query("UPDATE user SET Code:
$DB_site->query("UPDATE user SET This change will automatically cancel a user's 'away' status once he/she posts a new thread or a new reply. 2) Send auto-reply to PMs while a user is a way. This add-on will act like the "vacation" auto-reply most e-mail programs have. When you send a PM to a user who is away, you will immediately receive a PM with "Auto Reply:" in the subject line. The PM message body will say 'I'm away and will read your PM when I return', with the reason (if present) and the return date (if present). If you want to add this, open private.php and find: Code:
eval("standardredirect(\"".gettemplate("redirect_pmthanks")."\",\"private.php?s=$session[sessionhash]\");"); PHP Code:
create NEW template called email_pmautoreply and place in it: Quote:
p.s. Meta, I will add what you're asking for (Admin CP) tomorrow. I'm off to sleep now :) |
Awesome!!!
|
I don't have time to do this hack now, but I've saved it and have it queued... One question: Does the ZIP in the original post include the changes or additions from just above?
|
very very sweet.
|
Question:
Will you be incorporating all of the addon code you posted into the script? If so, I will just wait for the final. Looks very impressive. Thank You. |
How about being able to set your own auto PM message.
:) |
Very nice addons, installed all except one (auto-setting away back to 0 when posting, because people often login to check posts out and sometimes post while they're still away). :)
|
Installed and working ... excellent work! :)
Just did some slight modifications to the getinfo template, but it works great. This is the 3rd or 4th straight hack from bira I am using, and all of them are just grrrrrreat ;) |
[QUOTE]Originally posted by Crinos
Just did some slight modifications to the getinfo template, but it works great. |
Great Hack thanks. I installed this with no probs at all except The Icon in the postbit area (away.gif) does not show when a user is away. I didn't see anything in the install instructions about adding anything to the postbit template.
|
Hmm, attached is a zip file of the modified templates in my User Info Display ... I used custom colors on some parts, so just change them to the colors that go good with your site...
If you don't have the user points hack, just remove the "support points" fields ;) |
[QUOTE]Originally posted by Nemesis77
Great Hack thanks. I installed this with no probs at all except The Icon in the postbit area (away.gif) does not show when a user is away. I didn't see anything in the install instructions about adding anything to the postbit template. |
Quote:
(It's because we have some members who surely will be back ... someday ... someyear ... they always come back sometime. But actually they are absent.) |
Thanks Crinos! :up:
|
[QUOTE]Originally posted by Meta
Great. I'm not in a hurry. Thank you very much! (It's because we have some members who surely will be back ... someday ... someyear ... they always come back sometime. But actually they are absent.) |
I don't know if the Admin's should be able to mess with a user's away status. The "cancel away status" add-on would do for that, the only thing else that you could do then is abusing it, so... :/
|
Members could abuse and put offending messages as the away reason, so it's important to have the ability to change it.
Also bira while you're at it, censor the reason before it's saved. :) |
Quote:
Quote:
If you don't trust the admin ... whom do you will? I think messing around with the away-status is something i will not do. I only want to enter for users, who are in this moment absent ... that they are absent. In fact ... thats one of the reasons why i installed the hack. |
Ah, true, true..
I'm too kindhearted I think to realize abusal from the common abusing side of things, I only think about abusal from the side that has power... Must. change. stance... ;) Okay, so Admin accessibility *is* a good idea. :) |
(I'm so happy to hear that. Thank you.)
|
All times are GMT. The time now is 04:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|