May 17 2012 11:50:28
Navigation
Last Seen Users
J_K_NIELSEN00:27:03
volt12300:55:17
darans00:55:34
Acert01:29:26
michi01:52:56
LukeWarm01:56:58
Dave9202:35:02
KasteR02:38:52
colber02:56:30
rubberdark04:03:31

Members: 25,040
Newest: Dave92
Downloads v7
Currently popular Downloads

FusionBoard 4 6351
Video Gallery 4524
Video Infusion 4019
Photoalbum Mass U... 3499
Professional Down... 3403
Avatar Studio 3338
XHTML mod for mod... 3186
Button panel 2703
60 Animated smileys 2610
VArcade 2.1 2532

Latest Downloads


Code Snippets v1.10 8
Video Infusion Pro 84
Who Is Where 16
Facebook Login/Register 62
Yolks Smiley Pack 56
SWTOR Recruiting Panel 25
NeoBlog Theme 28
Code Snippets 9
FAQ Panel 15
Download Plus Panel 32

Latest 100
Downloads v6
Currently popular Downloads

Banner System v2.0.4 2269
Video Gallery 1560
Extreme Theme Editor 1257
Fuzed Shoutbox 1066
Seoname.php 1016
Icon Package 2.0 879
Extended Profile ... 782
News.php 699
Tabbed welcome panel 646
EXTboard 583

Latest Downloads


Banner System v2.0.4 2269
Last comments 102
Language switcher panel 319
Admin Submission Panel 130
Admin private messag... 253
Google Sitemap Fast 144
ExtBoard 1.2 430
EXTboard 583
v6.01.18 - v6.01.19 74
v6.01.19 FULL 240

Latest 100
Latest Articles
Patch Re-captcha PHP...
A tour through the n...
Protect your Fusion ...
Change your database...
Admin Control Panel ...
How to Secure Your I...
Show Content by Defa...
v7 | Add social book...
v7 | Custom MySQL er...
How To: A PM after r...
v7 | SEO friendly UR...
v7 | SEO friendly UR...
Comments Advanced Vi...
Auto-redirect to the...
A tour through PHP-F...

View all articles
How To: A PM after registration

NO LONGER UP TO DATE. PLEASE USE THIS MOD.

This will explain how to modify /register.php so new users get a welcome PM automatically.

Step one:
Download the following file: Click!

Step two:
Unpack the file.

Step three:
Upload the includes folder into the root of your web server.

Step four:
Replace this:

$result = dbquery("DELETE FROM ".DB_NEW_USERS." WHERE

user_code='".$_GET['activate']."'");

With this:

$result = dbquery("DELETE FROM ".DB_NEW_USERS." WHERE
user_code='".$_GET['activate']."'");
include INCLUDES."mwp_pm-on-register.php";

Step five:
Replace this:

$result = dbquery("INSERT INTO ".DB_USERS." (user_name,
user_password, user_admin_password, user_email,
user_hide_email, user_avatar, user_posts, user_threads,
user_joined, user_lastvisit, user_ip, user_rights, user_groups,
user_level, user_status".$db_fields.") VALUES('$username',
'".md5(md5($password1))."', '', '".$email."', '$user_hide_email', ''
, '0', '0', '".time()."', '0', '".USER_IP."', '', '', '101',
'$user_status'".$db_values.")");

With this:

$result = dbquery("INSERT INTO ".DB_USERS." (user_name,
user_password, user_admin_password, user_email, user_hide_email,
user_avatar, user_posts, user_threads, user_joined,
user_lastvisit, user_ip, user_rights, user_groups, user_level,
user_status".$db_fields.")
VALUES('$username', '".md5(md5($password1))."', '',
'".$email."', '$user_hide_email', '', '0', '0', '".time()."',
'0', '".USER_IP."', '', '', '101', '
$user_status'".$db_values.")");
include INCLUDES."mwp_pm-on-register.php";




How-To Writer: Marwelln Productions
Support: Marwelln Prodctutions
Comments
#1Diemux on November 19 2008 19:31:52
Diemux
This mod should show the super admins name in the "from" box in the PM.

To change the sender name, open mwp_pm-on-register.php file and go to line 17:

Code

      ('".$usr['user_id']."', '1', '$newpm_subject', '".sprintf($newpm_message, $usr['user_name'])."', '1', '".time()."')");





Change the first '1' to the user ID you want to PM send from. This should change it.
Like:

Code

      ('".$usr['user_id']."', '5', '$newpm_subject', '".sprintf($newpm_message, $usr['user_name'])."', '1', '".time()."')");



#2Uzknisator on December 30 2008 10:16:35
Uzknisator
This mod works on php-fusion v6.xx?
#3Diemux on January 01 2009 08:51:26
Diemux
No, this is written for v7.
#4jparris on March 25 2009 00:44:28
jparris
Can this be modified so that the PM is sent to new members that are created by an Admin manually?????
#5Anime1992V on August 26 2009 02:48:38
Anime1992V
DOWNLOAD not Work!
#6quiki on May 15 2010 03:46:51
quiki
Download dead yes
#7Diemux on May 23 2010 08:03:16
Diemux
Please use this mod:

http://www.phpfus...and]id=742
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

Awesome! Awesome! 0% [No Votes]
Very Good Very Good 0% [No Votes]
Good Good 0% [No Votes]
Average Average 0% [No Votes]
Poor Poor 100% [2 Votes]
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Our Coders
Netrix
Smokeman
Elyn @ MrRusty
Diemux
Donate
Shoutbox
You must login to post a message.

17/05/2012 00:59
spam cleaned up

16/05/2012 05:55
I deleted forum posts but I don't have user banning or shoutbox editing permission or I would take care of those too...

15/05/2012 02:33
andredrake , Silvie Spam!! Confused perde

03/05/2012 22:00
El-nino.ugu.pl <---- Fanpage Fernando Torres PL / ENG

03/05/2012 21:34
Hi, everybody, it's been a while, since I was here...

01/05/2012 06:13
Bye!hi

28/04/2012 08:35
tomeck there is one in the downloads here check it out

23/04/2012 07:03
This is the theme of the site joga the theme of perde perde

22/04/2012 16:12
Hello, i need facebook login for fusion 7.01.5 can you help me ? Thumb Up!

21/04/2012 11:05
How i can disable the right click option in all pages over the site?

Member Poll
Which version of PHP-Fusion are you using?









You must login to vote.
Advertiser
One-click Translation
Translate This Site

Online Stats
Guests online: 8
Members online:
no members online


registered members: 25040
newest member: Dave92

user today: 3691
user online: 8
Max. onlinerecord: 86
Max. per day: 32490
user yesterday: 4992
user month: 137520
Entire users: 3839403

last 24h:
























In memoriam

Nick Jones
1973-2011
Render time: 2.75 seconds - 89 Queries 17,998,763 unique visits