The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
User Away Messages Details »» | |||||||||||||||||||||||||
[ 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! Show Your Support
|
Comments |
#32
|
|||
|
|||
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 |
#33
|
||||
|
||||
This code is only in profile once
"homepage = '" . addslashes(htmlspecialchars_uni($homepage)) . "'," You have it listed twice in the instructions |
#34
|
|||
|
|||
This I will try for sure
Great work |
#35
|
|||
|
|||
Quote:
|
#36
|
|||
|
|||
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 |
#37
|
||||
|
||||
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 |
#38
|
|||
|
|||
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 |
#39
|
|||
|
|||
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.
|
#40
|
|||
|
|||
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 |
#41
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|