Version: 1.00, by Gamingforce
Developer Last Online: Jan 2007
Version: 3.0.3
Rating:
Released: 07-15-2004
Last Update: Never
Installs: 67
No support by the author.
[ 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 ]
Show away status in postbit. (If you want, you can add this right now by using an xhtml conditional ($bbuserinfo[awaystatus] == 1)).
Just to let you know though, I stopped using this mod. I replaced it in my forums with the e-mail warning one. I think it is better that way, your PM goes to the recipient, even if he is away, and you get back an e-mail saying that the recipient is away and he will get your message when he returns.
I agree with you. I am going to use the email solution. Many thanks for your help.
I customized it and it is perfect. Since I integrated hivemail and vbulletin, users get instant visual of new emails, so it is like a PM in navbar for email. You might want to change your message as user away does get PM.
if ($user['awaystatus'] ==1)
{
$awaysincedate = vbdate($vboptions['dateformat'], $user['awaysince']);
if ($user['awaymessage'] == "")
{
$awaymsg = "(reason not given)";
}
else
{
$awaymsg = $user['awaymessage'];
}
{
mail ($bbuserinfo[email],"$username cannot read your private message.","The PM you sent to $username was
delivered, however this user is currently away since $awaysincedate. Reason: $awaymsg","From: \"$vboptions[bbtitle]
I customized it and it is perfect. Since I integrated hivemail and vbulletin, users get instant visual of new emails, so it is like a PM in navbar for email. You might want to change your message as user away does get PM.
if ($user['awaystatus'] ==1)
{
$awaysincedate = vbdate($vboptions['dateformat'], $user['awaysince']);
if ($user['awaymessage'] == "")
{
$awaymsg = "(reason not given)";
}
else
{
$awaymsg = $user['awaymessage'];
}
{
mail ($bbuserinfo[email],"$username cannot read your private message.","The PM you sent to $username was
delivered, however this user is currently away since $awaysincedate. Reason: $awaymsg","From: \"$vboptions[bbtitle]
Mailer\" <$vboptions[webmasteremail]>");
}
}
Well, I have already changed that, so that it uses a template for the text of the e-mail send to the sender and I corrected it.
One question, what is "hivemail"?? Sounds interesting.
that was created by Chen who used to be a top developper at vbulletin. The integration is really excellent. You get all your emails (a subject link) in your CP, and with a small hack over there you can incorporate in navbar next to pm messages.
Members automatically have an email @yoursite if they want. Could be username or alias (you define).
that was created by Chen who used to be a top developper at vbulletin. The integration is really excellent. You get all your emails (a subject link) in your CP, and with a small hack over there you can incorporate in navbar next to pm messages.
Members automatically have an email @yoursite if they want. Could be username or alias (you define).
Lionel,
Thanks for the tips. I did a Google search yesterday and find it. I wish I could (a) afford it, (b) convince my hosting people to install it on my server. It would be great, but I know I can't afford it at the moment and I am not sure they will agree on setting it up. My sites are hosted for free by some helpful people, so I can't take advantage of their good will.
ALTER TABLE `user` ADD `awaystatus` INT( 1 ) UNSIGNED DEFAULT '0' NOT NULL ,
MySQL said:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
<!-- Code change for user being away -->
<if condition="$post['awaystatus'] == 1">
<div class="smallfont"><FONT COLOR="red">$post[musername] is away.</FONT><BR>
<if condition="$post['awaymessage'] != ''">
Reason: $post[awaymessage]<BR>
<else />
No reason was given.<BR>
</if>
</div>
<else />
</if>
<!-- end of code for user being away -->