vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   User Away Messages (https://vborg.vbsupport.ru/showthread.php?t=67250)

Lionel 10-03-2004 03:27 PM

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.

Lionel 10-03-2004 03:58 PM

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]>");
}
}

sv1cec 10-03-2004 04:19 PM

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

Lionel 10-03-2004 04:26 PM

<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).

sv1cec 10-04-2004 03:56 AM

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

Scerina 11-19-2004 03:01 AM

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!

JohnBee 11-24-2004 04:04 PM

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

jugo 12-03-2004 02:45 PM

Quote:

Originally Posted by Gamingforce
Screenshots Attached.

Awesome Hack...Thanks.

BTW...That girls is beautiful.

TwinsForMe 12-07-2004 10:28 PM

[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 -->


Bison 12-30-2004 09:43 PM

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


All times are GMT. The time now is 09:33 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
  • Page Generation 0.01148 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete