The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
Code:
$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)");
This works with vB 2.0.3. |
|
#4
|
|||
|
|||
|
Great, I'm about to upgrade to 2.03, I'll install that afterwards! Thanks!
|
|
#5
|
||||
|
||||
|
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!
|
|
#6
|
|||
|
|||
|
That sounds like a good idea, but how can I make it so that a PM is sent instead of a welcome email?
--dock |
|
#7
|
|||
|
|||
|
hi dennis
how can i add this code to register.php and where is register.php? pls help me sohrab , |
|
#8
|
|||
|
|||
|
There is a hack that does this for you, found in the database. I use it on my own forum, v2.3.0
Syl... |
|
#9
|
||||
|
||||
|
Will this hack still work in version 3.6.3?
|
|
#10
|
||||
|
||||
|
^Its built in..
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|