View Full Version : Auto PM new members?
mojotim
06-18-2001, 09:26 AM
Hi, does anyone have a hack to send a new user a PM welcome message automatically? I had one in my iKonboard and the response was positive from new users. I would get emails from new users after they got their PM saying, "Thanks for the warm welcome!".
Anyone?
Dockaych
08-05-2001, 06:39 PM
I would love to have this hack also! To introduce people to the site, and also to the PM featuer, it's a great idea! A much better way than to mail them than plaster a huge email to them.
-dock
Dennis Wrenn
08-05-2001, 07:07 PM
$DB_site->query("INSERT INTO user (userid,username,passw{etc}...");
$userid=$DB_site->insert_id();
$adminstuff = $DB_site->query_first("SELECT userid, signature FROM user WHERE username='Dennis Wrenn'");
$adminid = $adminstuff["userid"];
$adminsig = $adminstuff["signature"];
$message = "Welcome to our forums $username \n The rest of the message goes here.\n-Admin";
if($adminsig != "") {
$adminsig = 1;
} else {
$adminsig = 0;
}
$DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,showsignature,iconid,messageread ,folderid,receipt) VALUES (NULL,$userid,$userid,$adminid,'".addslashes(htmlspecialchars("Welcome $username!"))."','".addslashes($message)."',".time().",'$adminsig','',0,0,0)");
Add this to register.php starting at line 407.
This works with vB 2.0.3.
Dockaych
08-05-2001, 07:22 PM
Great, I'm about to upgrade to 2.03, I'll install that afterwards! Thanks!
mjames
08-05-2001, 11:09 PM
What I do doesn't require a hack. Simply change your settings so all new users go into the Users Waiting E-mail Confirmation user group. Then change the permissions for that group so they can do anything regular members can. Then all you have to do is edit the appropriate e-mail template with your welcome message and there you go!
Dockaych
08-06-2001, 05:08 AM
That sounds like a good idea, but how can I make it so that a PM is sent instead of a welcome email?
--dock
bedehi
10-08-2003, 12:27 PM
hi dennis
how can i add this code to register.php
and where is register.php?
pls help me
sohrab ,
Sylvus
10-08-2003, 06:29 PM
There is a hack that does this for you, found in the database. I use it on my own forum, v2.3.0
Syl...
delmarva
11-17-2006, 12:30 AM
Will this hack still work in version 3.6.3?
Shazz
11-17-2006, 12:34 AM
^Its built in..
delmarva
11-17-2006, 01:31 AM
Thanks, got it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.