![]() |
User Away Messages
[ Feature Description ]
This hack allows users to easily set themselves as away via the Edit Profile page. An optional away message can be added along with the away status. Away messages are viewable at the top of the user profile (by the avatar/user picture). If a post is made when a user is in away mode, the user is automatically set off away mode. [ Hack Concept ] Credits to bira for making the original away message hack for vBulletin 2. This is a complete remake however. [ Future Plans ]
http://www.gamingforce.com/forums/member.php?u=852 Enjoy! :) |
Screenshots Attached.
|
i have a question..
in your instrictions you say: [FIND]--> fetch_profilefields(0); [REPLACE WITH]--> fetch_profilefields(0); // Get Since Away Info if ($bbuserinfo[awaystatus] == 1) { $awaysincedate = vbdate($vboptions['dateformat'], $bbuserinfo['awaysince']); $awaysincetime = vbdate($vboptions['timeformat'], $bbuserinfo['awaysince']); $awaysincedisplay = " <b>(Since $awaysincedate - $awaysincetime)</b>"; } else { $awaysincedisplay = ''; } ================================================== ======== [FIND]--> fetch_profilefields(0); [REPLACE WITH]--> homepage = '" . addslashes(htmlspecialchars_uni($homepage)) . "', awaystatus = $xawaystatus, awaymessage = '" . addslashes(htmlspecialchars_uni($xawaymessage)) . "', awaysince = $xawaydate, I dont have a second one of the one in yellow. the only other fetch_profilefields i can find is: fetch_profilefields(1); but when replacing that i get an error on my "edit profile" pages ??? |
Sorry about that. Please re-download the file for updated instructions.
|
this hack is cool... btw, would be cool to have a popup to fill, or a dropin in the navbar so we fill it the same way we use the search block...
(did i say cool!) |
awesome! worked like a charm!!
thanks so much! [high]* turbidblue clicks install ;)[/high] |
Excellent hack, my users were requesting this one a couple days ago ^^
|
i have a question.
how do i get it to show in postbit? i am still sorta a newbie when it comes to all this :) thanks :) |
wow!!! Getting to work my second vBulletin today and that is one of the hacks i'll definatly gonna install :)
|
[high]* ChuanSE just wanted to state that the nice girl in the screenshot profile is really really really good looking :o Hi to you if you are Gamingforce on this board :D[/high]
|
Will this also add away unilt a certain date so we might know how long they will be gone? And maybe have it automatically set them back on that day and time if they choose that option? Or can it be done? ;)
|
Quote:
|
Cool hack... will add when I find time. :)
|
Quote:
Heya Boofo Amigo ;) You have a point there allright, but for now... [high]* ChuanSE clicks install[/high] |
this mod, added to LastSeenOnline is mostly complete... just need to add a WillBeBack at x date... but franckly, i don't see the use... just add the date in your away message, that's all...
but, a cool feature would be to have s select button for the away user...: deactivate PMs when away ... so if you go outside for a long period, users PMing you will have your away message in the face instead of the PM system ... kinda: don't PM me, i'm not here and don't want to be bothered... |
I had users asking for something similiar for the PM system. Something like an email away message where if you sent them a PM it would reply back saying they were out untill XXXXX. Probably alot of work but it would seem logical to integrate that with something like this.
|
Quote:
|
While I appreciate your work,
mind taking a look at the section for profile.php. Steps 3 / 5 is identical. So, I'm sure that we're missing something, *laughs* HoC |
i know i can add a
conditional ($bbuserinfo[awaystatus] == 1) to the postbit to show that a user is away . but i cant seem to get the away since date and the away message to appear in the postbit ..... any ideas? |
I'll be issuing an update to this modification soon with many more features. :)
Stay tuned! |
Great will the update be compatible with 3.0.3. Just curious because so many major additions (vbgarage, vbarcade) aren't. :(
|
Quote:
|
Suggestion:
dropdown menu, with different away messages on forumhome for easy access. |
Quote:
|
I think he was wondering if it was compatible or not.
Yes, it's fully compatible with 3.03 since it doesn't rely on special vB 3 functions (well, maybe vbdate but that doesn't count :p) |
Quote:
Thanks |
I love U for this hack. :)
I requested it long long ago - now it?s done. *install* |
One thing I believe would be useful, is to show "User is away", next to the member's name in his posts, when that member is away. Those who view his posts, will know not to comment on his writings, until he is ... no longer away.
After a lot of "trials and errors", here is what I came up with: In postbit template, find this : HTML Code:
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> HTML Code:
<td width="100%"> </td> HTML Code:
<if condition="$post['awaystatus'] == 1"> HTML Code:
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> If only I knew how to put the awaysincedate parameter there!!! Rgds John |
Awesome - thanks for that mod as well John :)
|
Quote:
I am not sure though, how the members will appreciate it. Rgds |
One thing I would like to see in this hack, is the "Be back Date". I agree with the developer that we do not need to have it cleared automatically, the idea of clearing this up with the first post is brilliant, however, I would like to see the return date there.
I tried to do it, but I am not good with php and I do not know how to handle a date field in the scripts etc., so I can't help much. The idea of automatically stopping PM receives when one is away, is also very cool, I wish we could extend it to e-mail notifications as well, but I do not think this can be done. Rgds |
This code is only in profile once
"homepage = '" . addslashes(htmlspecialchars_uni($homepage)) . "'," You have it listed twice in the instructions |
This I will try for sure
Great work |
Quote:
|
Quote:
http://forum.m1911.org/showthread.php?t=623 If you like what you see, I can provide you with my files, but the changes I've made to the original hack, are significant, and I haven't kept exact records in the form of "find this, replace it with", so you will need to do some work yourself. However, in order to have the original "User is away" message, here is some code which goes in the postbit template (and postbitlegacy). PHP Code:
PHP Code:
Rgds |
thank you! i was mostly just looking for the way to get the reason in the postbit, and your code worked flawlessly ;)
i dont really care about having the return date on my forums :) xoxo |
Quote:
The return date is a bit more involved, it includes altering tables etc. I finally managed it, but I would be hard pressed to describe every necessary step. Rgds |
That would be nice to add a query to check user status when someone is sending PM. If away, bounce an away message back to sender.
|
Quote:
1. Sending a PM to a user, necessitates only an insertion of a new row in a table in the database. 2. Any part of vB can therefore send a PM to a user, by just doing such an insert. 3. The only way to catch the "user away" condition, for each program which tries to insert a PM in the PMs table, is to have a trigger within the table. This I cannot do, I am not that good in MySQL, I do not even know if it supports triggers. So, what I did, is the next best thing. I modified the code of the private.php program, which is the one you use, when you send a PM to a user. To do this, follow the steps below: 1. Edit private.php and find : PHP Code:
PHP Code:
PHP Code:
Please keep in mind that I've added some custom fields in this hack, so if you get error messages about awayuntildate etc., you should remove those bits from the code and the phrase. Let me know if you have problems and I'll try to help. With this, when you try to PM a user who is away, you will receive the above message and your PM is not send. I am not sure if this is the best way to handle this though, maybe, one should issue a warning to the sender, that the recipient is away, and let the PM go through. I would appreciate if you could let me know what you think about this question. Finally, with this mod, if your PM is send to many recipients, the user(s) who is/are away, will not receive the PM, while the rest of them will. Let me know if you have problems. Rgds ------------ John |
Quote:
|
All times are GMT. The time now is 05:59 AM. |
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:
|