Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User Away Messages Details »»
User Away Messages
Version: 1.00, by Gamingforce Gamingforce is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

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)).
[ Example ]
http://www.gamingforce.com/forums/member.php?u=852


Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 10-03-2004, 03:27 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sv1cec

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.
Reply With Quote
  #53  
Old 10-03-2004, 03:58 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]>");
}
}
Reply With Quote
  #54  
Old 10-03-2004, 04:19 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
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.

John
Reply With Quote
  #55  
Old 10-03-2004, 04:26 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.hivemail.com" target="_blank">http://www.hivemail.com</a>

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).
Reply With Quote
  #56  
Old 10-04-2004, 03:56 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
http://www.hivemail.com

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.

Rgds
Reply With Quote
  #57  
Old 11-19-2004, 03:01 AM
Scerina Scerina is offline
 
Join Date: Mar 2004
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible for someone to install this hack for me please? If you can do so, please contact me via email at: Pandora@Sweet-November.Net

Thanx in advance!
Reply With Quote
  #58  
Old 11-24-2004, 04:04 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this error when I run the query

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

any ideas
Reply With Quote
  #59  
Old 12-03-2004, 02:45 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gamingforce
Screenshots Attached.
Awesome Hack...Thanks.

BTW...That girls is beautiful.
Reply With Quote
  #60  
Old 12-07-2004, 10:28 PM
TwinsForMe TwinsForMe is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[high]* TwinForMe clicks install
[/high]

I added the postbit code by sv1cec except I use postbit legacy. I had to change his code a bit.

Find:
Code:
				$post[musername]
				</if>
			</div>
			
			<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
			<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
Below add this:
Code:
<!-- Code change for user being away -->
<if condition="$post['awaystatus'] == 1">
&nbsp;
<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 />
&nbsp;
</if>
<!-- end of code for user being away -->
Reply With Quote
  #61  
Old 12-30-2004, 09:43 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be nice to see all of this in a text file ...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:40 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06578 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete