PDA

View Full Version : private message to new members


fonzerelli_79
12-25-2001, 10:18 PM
im sure that this has been requested before but i did a search and couldnt find anything

simply :

a prviate message to all new members welcoming them to the forum

cheers

Psychdrone
12-26-2001, 03:00 AM
YES YES YES THIS WOULD BE GOOD!

amykhar
12-26-2001, 11:08 AM
It's easy. :)

I will only show you the way to do it if you require email validation.

In register.php find: (might not be exact. I have hacks. Look for the general idea of it. :D)



// put user in moderated group
$DB_site->query("UPDATE user SET usergroupid=4 WHERE userid='$u'");

eval("standarderror(\"".gettemplate("error_moderateuser")."\");");
} else {
// activate account


Add after:


$subject="Insert Subject Here";
$msg ="$userinfo[username],\n\t I just wanted to take a moment to welcome you to our board. (Replace with your message)";
$DB_site->query("update user set pmpopup='1' where userid='$u'"); // Makes ALL PMs popup for the user
$DB_site->query("INSERT INTO privatemessage (userid,touserid,fromuserid,title,message,dateline ,showsignature,iconid,messageread,folderid) VALUES ($u,$u,(Insert UserID of sender here. Not Name! Number),'".addslashes(htmlspecialchars($subject))."','".addslashes($msg)."',".time().",'1','0',0,0)");



NOTE: There are three places that you need to modify for your own board. Subject, message, and user id of the sender. Do NOT use the user name. Use the member number!

Amy

Lionel
12-26-2001, 11:22 AM
But you forgot to say which php to modify?

amykhar
12-26-2001, 12:26 PM
OOPS. register.php

Amy

Lionel
12-26-2001, 12:29 PM
I had figure it out. Now I am just going to test it. Thanks

Lionel
12-30-2001, 06:33 AM
thanks again.

fonzerelli_79
12-30-2001, 01:11 PM
i actually installed this last week and it workd great

sorry amykhar , forgot to say thanks so THANKS!!

machiavelli33
03-07-2002, 12:11 AM
NOTE: There are three places that you need to modify for your own board. Subject, message, and user id of the sender. Do NOT use the user name. Use the member number!



Sorry just starting out. What do you mean by modifying the following?

Roody
06-24-2002, 11:28 PM
I installed this hack, but cant find where i can make my default PM message in the Admin CP. Can someone point me in the right direction?

Thanks

Roody
06-24-2002, 11:38 PM
actually i found my answer. thanks tho :)

esfron
04-03-2003, 06:48 PM
Not working on 2.3.0 final.

filburt1
04-03-2003, 06:57 PM
Well no wonder, this was posted two years ago.

Smoothie
04-03-2003, 08:30 PM
there is a send default pm to new user hack here which works great.
https://vborg.vbsupport.ru/showthread.php?s=&threadid=34498&highlight=send+default