The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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.
|
#2
|
|||
|
|||
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)"); } |
#3
|
|||
|
|||
Hmm, I changed the forumuserid to my id# and change the text to what I wanted sent.
No go, no info put into database. |
#4
|
|||
|
|||
Quote:
|
#5
|
||||
|
||||
Quote:
|
#6
|
|||
|
|||
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... |
#7
|
||||
|
||||
right and its name is Welcome PM
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|