vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   PM Autoresponder (https://vborg.vbsupport.ru/showthread.php?t=32089)

Matt 11-03-2001 08:41 PM

I was just thinking we have a lot of members away on holiday at the moment and it would be a nice idea that when someone PM's them they get a PM back saying something like:

"Hi I am on Holiday right now but I will answer your PM when I get back"

or even when they have gone to bed or something so the other knows not to expect a response straight away?

Is this possible?

mcyates 07-07-2003 05:47 PM

would be a great hack, anyone doen it yet?

MetroSports82 07-07-2003 06:22 PM

uh, wasn't this something that was built in, bira's "away" message hack?

https://vborg.vbsupport.ru/showthrea...t=away+message

actually, here is part of the code, in the .txt file...

PHP Code:

=======================================================================================================
############################################# private.php #############################################
=======================================================================================================

Notethis change is optionalWhen a user is awaythis change will send an automatic reply to anyone 
who PMs the away user
letting him know the user is away and that he will read the message only when he 
returns
. If you don't want to use this option, skip this specific change.

Step 1/1.

========
||FIND||
========

eval("standardredirect(\"".gettemplate("redirect_pmthanks")."\",\"private.php?s=$session[sessionhash]\");");

==================
||ABOVE that ADD||
==================

// Leave Away Message in Profile (v1.2a)
  if ($touserinfo[away]=="1") {
      
      $sincedate = vbdate($dateformat, $touserinfo[awaydate]);
    if ($touserinfo[returndate]=="0000-00-00") {
        $returndate = "(date unknown)";
    } else {
          $returnaway = explode("-", $touserinfo[returndate]);
          $returndate = "on ".vbdate($dateformat, mktime(0,0,0,$returnaway[1],$returnaway[2],$returnaway[0]));
      }
      if (!$touserinfo[awayreason]) {
          $awayreason = "No reason specified";
      } else {
          $awayreason = "$touserinfo[awayreason]";
      }
      
      eval("\$autoreply = \"".gettemplate("priv_autoreply",1,0)."\";"); 
      $autotitle = "Auto Reply: ".addslashes(htmlspecialchars($title));

      $DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title,message,dateline,showsignature,iconid,messageread,folderid,receipt) VALUES (NULL,$bbuserinfo[userid],$bbuserinfo[userid],$touserinfo[userid],'".addslashes(htmlspecialchars(
$autotitle))."','".addslashes(htmlspecialchars($autoreply))."','".time()."',0,0,0,0,0)");
    if ($bbuserinfo[emailonpm]) {
      eval("\$emailmsg = \"".gettemplate("email_pmautoreply",1,0)."\";");
      eval("\$emailsubject = \"".gettemplate("emailsubject_pmreceived",1,0)."\";");
      mail($bbuserinfo[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
    }

  }
// Leave Away Message in Profile (v1.2a)

------------------------------------------------------------------------------------------------------- 

if you want to see the entire .txt, you should check out that hack. it should probably do the trick.

Logician 07-08-2003 05:15 AM

yes.. this is a built in feature in bira's hack..

Sir_Yaro 06-14-2005 07:44 AM

any chance for something for vB 3.0.7 ???

I find it:
https://vborg.vbsupport.ru/showthrea...threadid=67250

rrr 02-29-2008 06:31 PM

Is there anything like this for 3.6?

Vossi 08-06-2008 07:57 AM

Maybe this might help:

https://vborg.vbsupport.ru/showthread.php?t=187320


All times are GMT. The time now is 01:44 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.03116 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete