vb.org Archive

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

mojotim 07-17-2001 09:19 AM

Anyone have any ideas on how to do this? I know there is an auto-email new users, but I think an auto PM would be better.

Znaper 07-17-2001 02:53 PM

Search for this code in the register.php:

Code:

if ($verifyemail) {
    $getjoindate=$DB_site->query_first("SELECT joindate FROM user WHERE userid='$userid'");
    $activateid=$getjoindate[joindate];

    eval("\$message = \"".gettemplate("email_activateaccount",1,0)."\";");
    eval("\$subject = \"".gettemplate("emailsubject_activateaccount",1,0)."\";");

    mail ($email,$subject,$message,"From: \"$bbtitle Mailer\" <$webmasteremail>");

  }


After it at this code:

Code:

if (!$verifyemail && $welcomeuser) {
    $fromuserid = "1";
    $message = "Insert here your Welcome Message!";
    $title = "Insert here your Subject of the PM!";
    $DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title,message,dateline,showsignature,iconid,messageread,folderid) VALUES (NULL,$userid,$userid,$fromuserid,'".addslashes(htmlspecialchars($title))."','".addslashes($message)."',".time().",'0','1',0,0)");
  }


mojotim 07-17-2001 07:10 PM

Hmm, I changed the forumuserid to my id# and change the text to what I wanted sent.
No go, no info put into database.

maxboost107 10-19-2003 04:56 PM

Quote:

Originally Posted by mojotim
Hmm, I changed the forumuserid to my id# and change the text to what I wanted sent.
No go, no info put into database.

i'm looking for the same thing ... is there any of the same above but with admincp options ?

assassingod 10-19-2003 05:18 PM

Quote:

Originally Posted by maxboost107
i'm looking for the same thing ... is there any of the same above but with admincp options ?

The thread is over 2 years old, vBs code has changed since then - better to start a new thread:)

Sylvus 10-19-2003 06:41 PM

There already is a hack in the database that does this. It will send a private message to all new members. Just search for it if you're looking for it, you'll find it.

Syl...

Logician 10-20-2003 09:38 AM

right and its name is Welcome PM


All times are GMT. The time now is 01:44 AM.

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.01073 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_quote_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