Thread: Welcome PM
View Single Post
  #1  
Old 1st May 2009, 15:33
sammygo sammygo is offline
Senior Member
 
Join Date: May 2008
P2P
Posts: 141
Default Welcome PM
When you register to a tracker you will get a Welcome PM

FOR WHO USE WITH EMAIL CONFIRM:
In confirm.php

BEFORE
Code:
header("Refresh: 0; url=../../ok.php?type=confirm");
ADD
Code:
$added = sqlesc(get_date_time());
$welcome = sqlesc("Welcome to $SITENAME, Feel to download torrents, and talk in the forums, please do your best to seed everything to at least 0.6! We are very glad to have you here in our community, and we hope you have a good stay. Please feel free to contact any staff member about anything. Thanks for joining.
~Staff");

mysql_query("INSERT INTO messages (sender, receiver, msg, added) VALUES(0, $id, $welcome, $added)") or sqlerr(__FILE__, __LINE__);
FOR THOSE WHO DON'T USE EMAIL CONFIRMATION :
in takesignup.php

BEFORE
Code:
header("Refresh: 0; url=ok.php?type=". (!$arr[0]?"sysop":("signup&email=" . urlencode($email))));
ADD
Code:
$added = sqlesc(get_date_time());
$welcome = sqlesc("Welcome to $SITENAME, Feel to download torrents, and talk in the forums, please do your best to seed everything to at least 1.1! We are very glad to have you here in our community, and we hope you have a good stay. Please feel free to contact any staff member about anything. Thanks for joining.
~Staff");

mysql_query("INSERT INTO messages (sender, receiver, msg, added) VALUES(0, $id, $welcome, $added)") or sqlerr(__FILE__, __LINE__);


Thanks to WARADE @ tbdev.net for this mod :X


PICTURE
Click image for larger version

Name:	untitledis9.png
Views:	382
Size:	46.2 KB
ID:	1319

Last edited by sammygo; 1st May 2009 at 16:02.
Reply With Quote
The Following 3 Users Say Thank You to sammygo For This Useful Post:
blkmaster (2nd September 2009), HUnter83 (20th August 2010), JoKeR_3D (2nd January 2010)