need an welcome message for new registered members, but not email, is PM
how can?
EDIT: This is now a mod for RC2
http://mods.simplemachines.org/index.php?mod=387
all you would need to do is find the code for that and instead of it emailing new users, replace the code with a mysql query to add a pm into the database for that user with the text that would go into the email, or do it manually, lol.
Open Register.php
Look for:
// Admin gets informed here...
adminNotify('approval', $memberID, $_POST['user']);
}
Add after:
// Set up the message arrays
$pmfrom = array(
'id' => 1,
'name' => 'name or variable',
'username' => 'name or variable'
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);
// Give them a warm welcome via PM :)
sendpm($pmto, 'Subject Here', 'Message Here', 0, $pmfrom);
Something along those lines... SMF has a built in PM function to make things easy :D
You will probably have to adjust some of that stuff... who knows if this works out I might even make it a mod o.O
Thanks Kirby, that works
Out of the blue :P is there anyway you can add a sound to the pm?..
so that when you have a new pm it'll play a sound?.. then once read it stops??.
Quote from: nviceversa on December 19, 2004, 02:31:56 PM
Out of the blue :P is there anyway you can add a sound to the pm?..
so that when you have a new pm it'll play a sound?.. then once read it stops??.
I would think so if you use the [dohtml] tag and used html code to play the music. ;)
how would i go about adding something like
Welcome 'user',
please go here (http://www.link.com) .
thanks
?
Quote from: Kirby on December 17, 2004, 07:54:02 PM
Open Register.php
Look for:
// Admin gets informed here...
adminNotify('approval', $memberID, $_POST['user']);
}
Add after:
// Set up the message arrays
$pmfrom = array(
'id' => 1,
'name' => 'name or variable',
'username' => 'name or variable'
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);
// Give them a warm welcome via PM :)
sendpm($pmto, 'Subject Here', 'Message Here', 0, $pmfrom);
Something along those lines... SMF has a built in PM function to make things easy :D
You will probably have to adjust some of that stuff... who knows if this works out I might even make it a mod o.O
That is awesome kirby, thank you much.
yes, but what do i type in the 'Message' field so it will show up like in my post...
Welcome "user name"
blah blah 'link'
Just an FYI, please download the mod version of this. It is available at my package server (http://www.zfgc.com/kirby/smf). It is a more recent version and allows you to do it with the ease of your admin panel. Please do NOT download other mods, I have to double check them to make sure they are 1.0 compatible, and I have to fix the Topic Descriptions one. Thanks for the good comments :)
everytime a member registers to my site, it logs an error:
8: Undefined index: pm_successfully_sent
File: /var/www/html/forums/Sources/Subs-Post.php
Line: 497
?action=register2
is that supposed to happen...cuz it still sends the pm
no they arent compatible, i have to modify my modifications.english.php to read
// Version: 1.0 RC2; Modifications
to match the file install.php
also, there is no field for the body of the message.
you have to have this mod installed also
Modsetting Textarea (http://mods.simplemachines.org/index.php?mod=47)
I have the Modsetting Textarea but before applying the PM mod I get a "Failed" on ./Themes/default/languages/Modifications.english.php. Presenting the FTP logininfo doesn't fix the 'Failed'. What goes wrong here?
you have to CHMOD the files to 777
It already was 777. I'm using Smf in combination with mambo btw. I entered my adminpanel outside of Mambo before installing it as that should get better results... I Applied the mod and that file still said Failed. Nothing happened, no link in Admin it seems, nothing.
Failed means it can't make the change, meaning there's something wrong with the mod or the file.
-[Unknown]
Ya, I still can't get this to work either. I have a standard setup, the only thing different is the theme, and that I have some mods installed. I'm not running through Mambo either. Any more suggestions?
thats odd...
Quote from: guider on February 05, 2005, 02:23:42 PM
It already was 777. I'm using Smf in combination with mambo btw. I entered my adminpanel outside of Mambo before installing it as that should get better results... I Applied the mod and that file still said Failed. Nothing happened, no link in Admin it seems, nothing.
Same here...and it leaves a ghost of itself on the edit settings page.
Jim
This may likely be caused by having other mods installed.
-[Unknown]
Quote from: jiminoregon on February 08, 2005, 03:49:49 AM
Quote from: guider on February 05, 2005, 02:23:42 PM
It already was 777. I'm using Smf in combination with mambo btw. I entered my adminpanel outside of Mambo before installing it as that should get better results... I Applied the mod and that file still said Failed. Nothing happened, no link in Admin it seems, nothing.
Same here...and it leaves a ghost of itself on the edit settings page.
Jim
add this to
Modifications.english.php
$txt['send_welcomeIM'] = 'Send welcome personal message to new members';
$txt['welcomeIM_userid'] = 'User ID of sender<div class="smalltext">Leave blank to send with an unregistered name.</div>';
$txt['welcomeIM_subject'] = 'Subject of welcome message';
$txt['welcomeIM_body'] = 'Body of welcome message';
Where would you add the code???
add it right before the ?>
Nothing happens. Exactly where in admin should I see a link pop up?
This kind of works. I can get everything to work now, and it sends to new members. BUT the labels still don't appear in the Admin area. The text boxes do, but the labels don't. Thanks.
Where in admin are the boxes?
It's under edit features and options... under this stuff:
Method of registration employed for new members
Notify administrators when a new member joins
Require reactivation after email change
Send welcome email to new members
ok?
Ah yes see it. What's that 0 mean?
thats the ID of the user that the PM is sent with
I see. So 1=sent from Admin?
I filled in 1 and registered a new member through adminpanel, but no new message?
make sure you have Send welcome personal message to new members checked
Its checked. Did you create the new user through admin? If so, what could be wrong?
i tried it on my test forum first with registering regularly, i never registered thru the admin panel, but seems like it should still send the pm. :-\
i haven't tested it with admin account creation..i don't think it works though
I doubt it would work through the admin panel. I think it referneces a different file. BTW, I still need help with getting the field descriptions to show up in the Admin Panel
Quote from: diplomat. on February 08, 2005, 09:12:32 AM
Quote from: jiminoregon on February 08, 2005, 03:49:49 AM
Quote from: guider on February 05, 2005, 02:23:42 PM
It already was 777. I'm using Smf in combination with mambo btw. I entered my adminpanel outside of Mambo before installing it as that should get better results... I Applied the mod and that file still said Failed. Nothing happened, no link in Admin it seems, nothing.
Same here...and it leaves a ghost of itself on the edit settings page.
Jim
add this to Modifications.english.php
$txt['send_welcomeIM'] = 'Send welcome personal message to new members';
$txt['welcomeIM_userid'] = 'User ID of sender<div class="smalltext">Leave blank to send with an unregistered name.</div>';
$txt['welcomeIM_subject'] = 'Subject of welcome message';
$txt['welcomeIM_body'] = 'Body of welcome message';
that didn't work? remember Themes/default/Modifications.english.php
it should work o_O
All fixed guys Thank you soo much! I have no idea what file I was edinting before, but it certainly wasn't this one. Also, you have to edit the file of the there you are on, which may not be 'default'
glad ya got it working
Well as I said it does show up in admin now, but it doesn't work. Registering the normal (user-like) way. Nada.
Bump - I verified my id as admin is 1, just like I entered in the box in adminpanel. The box has also bene checked and the message is filled out. Nothing happens.
maybe the part that should be in Register.php is not there.
Search for
// Admin gets informed here...
adminNotify('approval', $memberID, $_POST['user']);
}
and make sure that this:
if (!empty($modSettings['send_welcomeIM']))
{
// Set up the personal message arrays
$pmfrom = array(
'id' => $modSettings['welcomeIM_userid'],
'name' => $txt[248.5],
'username' => $txt[248.5]
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);
// Send the actual PM
sendpm($pmto, $modSettings['welcomeIM_subject'], addslashes($modSettings['welcomeIM_body']), 0, $pmfrom);
}
is right after it.
Hello.
I need to do this:
When a user register he get a PM that says:
Hello username
Welcome to boardname. Befor posting please read the rules at url.
Thank you.
Signature
I can edit the regiser.php, I only need to know the code to add. Should I use /n for adding a space?
Thanks.
/n is for line breaks..<br /> should be used instead...
so youd put something like:
Hello '. $user_info['name'] . '<br />Welcome to ' . $context['forum_name'] . '. Before posting please read the rules at the url.<br />Signature.
I did that to, now I am getting a parse error in the registration page.
@diplomat: thx but the Mod just doesn't seem to be working when using the Mambo bridge. Kirby any chance you'd be able to make this wonderful tweak available to Mambo-users worldwide? :o
it should work with mambo :P
@JS, use this code:
// Set up the personal message arrays
$pmfrom = array(
'id' => 1
'name' => 'WelcomeMessage',
'username' => 'WelcomeMessage'
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);
$subject = 'Hello username<br />
Welcome to boardname. Before posting please read the rules at url.<br />
Thank you.';
// Send the actual PM
sendpm($pmto, 'Welcome', subject, 0, $pmfrom);
Could someone make this a mod editable in the admin section? ??? :)
the one i had on my package manager was, but its gone for the moment...
I like the new name kirby :)
hehe :P
Is the mod going to be put up again? When I tried manually putting in the code, for some reason, it wouldn't let me. I always come up with an error on register.php
-Shayna
*would really love this mod to come back as well*
same here it would deffenatly be something i would add if u brought it back, cus i just cant get it to work when i view the registration page,.. :(
what version of SMF? 1.1 or 1.0.5?
1.05 please! ;D
Quote from: ??? on January 05, 2005, 04:07:30 PM
Just an FYI, please download the mod version of this. It is available at my package server (http://www.zfgc.com/kirby/smf).
404 error :-X
Thx for the new link ;)
Anyone have this residing on their server.
Would like the package but it seems his package server has gone awol.
It should work fine on 1.0.5.
Package attached..
Don't forget to install Anguz' ModSettings text area mod first.
Thk.
And find a way for the 1.1b3 ? ;)
Quote from: ??? on August 03, 2005, 05:58:35 PM
It should work fine on 1.0.5.
Package attached..
Don't forget to install Anguz' ModSettings text area mod first.
Works great. Thanks a bunch. :)
when i go to "Proceed" at the instaling it page all of the actions are successful except for ./Sources/Register.php and ./Themes/default/languages/Modifications.english.php
is this ok for me to continue?
What version, epyon?
i have 1.0.5 (that is what u ment right?)
Yes. It looks like you have other mods applied that are blocking this one.
:( aww damn... if its not too much would you be able to tell me which ones
can you pick who send the pm ? like no it sends from main admin account
i would like it to send from USER : Forum-Bot
Quote from: epyon on August 08, 2005, 08:43:59 PM
when i go to "Proceed" at the instaling it page all of the actions are successful except for ./Sources/Register.php and ./Themes/default/languages/Modifications.english.php
is this ok for me to continue?
I had the same problem as well :( I would
really love this mod, though! Help!
-Shayna
As mentioned here: http://www.simplemachines.org/community/index.php?topic=21708.msg210835#msg210835
Open ./Themes/default/languages/Modifications.english.php
Before ?> just add the following:
$txt['send_welcomeIM'] = 'Send welcome personal message to new members';
$txt['welcomeIM_userid'] = 'User ID of sender<div class="smalltext">Leave blank to send with an unregistered name.</div>';
$txt['welcomeIM_subject'] = 'Subject of welcome message';
$txt['welcomeIM_body'] = 'Body of welcome message';
Problem solved. :)
I manually added the code before installation and it still fails on the Modifications.english.php :( The register.php went through, though. Is that all that was needed to be added to Modifications.english.php?
-Shayna
Is there a way to implement this in 1.1RC1 ?
Bump :(
Bump again :)
Quote from: mytreo on January 05, 2005, 01:56:56 PM
Quote from: Kirby on December 17, 2004, 07:54:02 PM
Open Register.php
Look for:
// Admin gets informed here...
adminNotify('approval', $memberID, $_POST['user']);
}
Add after:
// Set up the message arrays
$pmfrom = array(
'id' => 1,
'name' => 'name or variable',
'username' => 'name or variable'
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);
// Give them a warm welcome via PM :)
sendpm($pmto, 'Subject Here', 'Message Here', 0, $pmfrom);
Something along those lines... SMF has a built in PM function to make things easy :D
You will probably have to adjust some of that stuff... who knows if this works out I might even make it a mod o.O
That is awesome kirby, thank you much.
wow this works great but only thing is it shows pm from none i mean its blank even when i put instead of pmfrom my user id ? am i suppose to do something else there ?
Can someone post this for 1.1 please?
Anybody got this for 1.1 please, I really need it.
Anyone know how to do this with 1.1 ??? ???
how bout update for 1.1/1.2
Trying to get the Pm To new registered users to work in rc2. so far i got it all working. but some reason it doesn't send pm. instead i get this error
QuoteYou have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY mem.lngfile
LIMIT 0' at line 8
File: /Volumes/MacintoshHD2/Users/SleePy/Sites/SMF/Sources/Subs-Post.php
Line: 709
heres the area around line 709. i bolded 709 though
Quote$request = db_query("
SELECT
mem.memberName, mem.realName, mem.ID_MEMBER, mem.emailAddress, mem.lngfile, mg.maxMessages,
mem.pm_email_notify, mem.instantMessages," . (allowedTo('moderate_forum') ? ' 0' : "
(mem.pm_ignore_list = '*' OR FIND_IN_SET($from[id], mem.pm_ignore_list))") . " AS ignored,
FIND_IN_SET($from[id], mem.buddy_list) AS is_buddy, mem.is_activated,
(mem.ID_GROUP = 1 OR FIND_IN_SET(1, mem.additionalGroups)) AS is_admin
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
WHERE mem.ID_MEMBER IN (" . implode(", ", $all_to) . ")
ORDER BY mem.lngfile
LIMIT " count($all_to), __FILE__, __LINE__);
$notifications = array();
while ($row = mysql_fetch_assoc($request))
{
// Has the receiver gone over their message limit, assuming that neither they nor the sender are important?!
if (!empty($row['maxMessages']) && $row['maxMessages'] <= $row['instantMessages'] && !allowedTo('moderate_forum') && !$row['is_admin'])
{
i don't understand why. the mysql code looks correct... and if i get this fixed PM to New Registered Users will work for rc2. i got the rest of the package that Kirby made working for rc2. just this error..
Quote from: M3THOD on January 04, 2006, 06:59:10 PM
how bout update for 1.1/1.2
Yep - I need it for 1.1 RC2
PLEASE !!!!
i need it rc2 :p
Don't leave us hangin!
I would like to see this continue aswell.
Try this...
I believe the part to be fnd has been moved to the Subs-Members.php so search for the same thing in there and do as normal :)
Followed the instructions and it workd in the new file.
Its about line 837...
Cheers,
Ryan Jones
Quote from: RyanJones on February 27, 2006, 08:49:46 AM
Try this...
I believe the part to be fnd has been moved to the Subs-Members.php so search for the same thing in there and do as normal :)
Followed the instructions and it workd in the new file.
Its about line 837...
Cheers,
Ryan Jones
I have no idea what you said:(
Quote from: RyanJones on February 27, 2006, 08:49:46 AM
Try this...
I believe the part to be fnd has been moved to the Subs-Members.php so search for the same thing in there and do as normal :)
Followed the instructions and it workd in the new file.
Its about line 837...
Cheers,
Ryan Jones
Thanks ;)
Did you get it to work?
Have i read this thread worng. Is there actiually already a way for this to be done in rc2? I'm confused which instructions apply to which versions.
Quote from: jonks on April 17, 2006, 02:50:15 PM
Have i read this thread worng. Is there actiually already a way for this to be done in rc2? I'm confused which instructions apply to which versions.
Same here. Read the whole thing and still a bit confused.
I have admin approvals on my board and also make the member activate their account. I'd like an automatic PM to go out to members after they have activated their account. Currently I'm sending them manually, but fear I'm missing a few members here and there.
I'm using SMF ver 1.1 RC2
Where is code RC2 ???
i searching :( there is not RC2
Yes it can be made work with 1.1RC2, what he is saying is, take the original code given by Kirby, and put it into Subs-Members.php
So, for 1.1RC2, in Subs-Members.php, find:
// Admin gets informed here...
adminNotify('approval', $memberID, $regOptions['username']);
}
AFTER that, insert:
// Set up the message arrays
$pmfrom = array(
'id' => 1,
'name' => 'name or variable',
'username' => 'name or variable'
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);
// Give them a warm welcome via PM :)
sendpm($pmto, 'Subject Here', 'Message Here', 0, $pmfrom);
Remember to replace Subject Here with the PM subject, and Message Here with the pm's message.
Thats it, it works perfectly, and that way you wont get that error message that was coming up. I tried it, so it should be fine for most people.
Great idea by the way! Hope that helps.
Thanks MJJOS
Yeah, thanks man. Worked great.
Quote from: MJJOS on May 27, 2006, 09:19:19 AM
Yes it can be made work with 1.1RC2, what he is saying is, take the original code given by Kirby, and put it into Subs-Members.php
So, for 1.1RC2, in Subs-Members.php, find:
// Admin gets informed here...
adminNotify('approval', $memberID, $regOptions['username']);
}
AFTER that, insert:
// Set up the message arrays
$pmfrom = array(
'id' => 1,
'name' => 'name or variable',
'username' => 'name or variable'
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);
// Give them a warm welcome via PM :)
sendpm($pmto, 'Subject Here', 'Message Here', 0, $pmfrom);
Remember to replace Subject Here with the PM subject, and Message Here with the pm's message.
Thats it, it works perfectly, and that way you wont get that error message that was coming up. I tried it, so it should be fine for most people.
Great idea by the way! Hope that helps.
I ADDED codes. BUT THERE ISN'T VARIATION
Quote from: MJJOS on May 27, 2006, 09:19:19 AM
Yes it can be made work with 1.1RC2, what he is saying is, take the original code given by Kirby, and put it into Subs-Members.php
So, for 1.1RC2, in Subs-Members.php, find:
// Admin gets informed here...
adminNotify('approval', $memberID, $regOptions['username']);
}
AFTER that, insert:
// Set up the message arrays
$pmfrom = array(
'id' => 1,
'name' => 'name or variable',
'username' => 'name or variable'
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);
// Give them a warm welcome via PM :)
sendpm($pmto, 'Subject Here', 'Message Here', 0, $pmfrom);
Remember to replace Subject Here with the PM subject, and Message Here with the pm's message.
Thats it, it works perfectly, and that way you wont get that error message that was coming up. I tried it, so it should be fine for most people.
Great idea by the way! Hope that helps.
Thanks for this code. It worked wonderfully!!!!! Thanks a ton.
I'm using 1.0.7 and cannot seem to get the code to work. It just makes my reg page blank. What's the problem that's causing this?
Are there any errors in your forum error log relating to this?
Quote from: Oldiesmann on May 30, 2006, 09:37:13 AM
Are there any errors in your forum error log relating to this?
No, there isn't anything in the logs
Would be interesting to see it for 1.1 RC2 :)
Quote from: ghostfreak on June 07, 2006, 10:08:38 PM
Would be interesting to see it for 1.1 RC2 :)
Eh, I still haven't gotten it to work on 1.0.7...
It works fine with 1.1 RC2
Works great in SMF 1.1RC2 thanks a lot!
Quote from: MJJOS on May 27, 2006, 09:19:19 AM
Yes it can be made work with 1.1RC2, what he is saying is, take the original code given by Kirby, and put it into Subs-Members.php
So, for 1.1RC2, in Subs-Members.php, find:
// Admin gets informed here...
adminNotify('approval', $memberID, $regOptions['username']);
}
AFTER that, insert:
// Set up the message arrays
$pmfrom = array(
'id' => 1,
'name' => 'name or variable',
'username' => 'name or variable'
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);
// Give them a warm welcome via PM :)
sendpm($pmto, 'Subject Here', 'Message Here', 0, $pmfrom);
Remember to replace Subject Here with the PM subject, and Message Here with the pm's message.
Thats it, it works perfectly, and that way you wont get that error message that was coming up. I tried it, so it should be fine for most people.
Great idea by the way! Hope that helps.
Thanks for the codes MJJOS.
I have 1 question here. The msg that is send to the members come from who ? The admin of the site ?
Thanks MJJOS
Only SMF 1.1RC2
Mod ;)
Download links --> - English ( new link 27.06.2006) (http://www.alemshare.net/download.php?id=aTW9L177hU1IJlvOHw9T)
Nice one, thanks
Quote from: husmen73 on June 14, 2006, 08:52:33 AM
Thanks MJJOS
Only SMF 1.1RC2
Mod ;)
Download links --> - English (http://www.alemshare.net/download.php?id=uWRjI8CmPWYUcitk3zT0)
- Turkish (http://www.alemshare.net/download.php?id=CPDcdtrgMZlbnx2LptEV)
thanx, but it doesnt work and i dont think its in english....
but thanx
and i cant figure it out manually, it says theres an error on line 852...
Quote from: husmen73 on June 14, 2006, 08:52:33 AM
Thanks MJJOS
Only SMF 1.1RC2
Mod ;)
Download links --> - English (http://www.alemshare.net/download.php?id=uWRjI8CmPWYUcitk3zT0)
- Turkish (http://www.alemshare.net/download.php?id=CPDcdtrgMZlbnx2LptEV)
er... problem
u have given links of BOTH turkish downloads.. please give the english one :)
new link :D
http://www.alemshare.net/download.php?id=aTW9L177hU1IJlvOHw9T
Edit: 27.06.2006 ;)
What's the code for 1.1 RC2?
The code isn't that helpful actually.
All it does it enter the code from this topic into your files, it doesn't give you options to change the message etc, you have to do it manually.
Good
Quote from: SurfExcelerator.com on June 29, 2006, 09:12:39 AM
What's the code for 1.1 RC2?
This is Mod for 1.1 RC2
Download Here (http://www.alemshare.net/download.php?id=aTW9L177hU1IJlvOHw9T)
Quote from: husmen73 on July 04, 2006, 09:56:02 AM
Quote from: SurfExcelerator.com on June 29, 2006, 09:12:39 AM
What's the code for 1.1 RC2?
This is Mod for 1.1 RC2
Download Here (http://www.alemshare.net/download.php?id=aTW9L177hU1IJlvOHw9T)
I download and installed it but where can I set the propeties and how can Use it
Quote from: tarkhorani on July 04, 2006, 09:56:02 AM
This is Mod for 1.1 RC2
I download and installed it but where can I set the propeties and how can Use it
Sub-members.php look for
// welcomemessage options:)
sendpm($pmto, 'Welcome!!!', 'WE THANK MEMBER YOU FOR ISING...', 0, $pmfrom);
Subject='Welcome'
Messaje='WE THANK MEMBER YOU FOR ISING...' ;)
Edit mod: download here (http://rapidshare.de/files/25017078/pmregisteredmessage_eng2.zip.html)
Is it possible to manually install this mods ?
And i think the mod creator should develop this mod and make it a real mod as in the admin can choose who to send this specific PM & What is the message and subject not modifying the subs-members ourself. Thanks :)
The manual mod can be found at the first post of this page
Quote from: Kirby on December 17, 2004, 07:54:02 PM
Open Register.php
Look for:
// Admin gets informed here...
adminNotify('approval', $memberID, $_POST['user']);
}
Add after:
// Set up the message arrays
$pmfrom = array(
'id' => 1,
'name' => 'name or variable',
'username' => 'name or variable'
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);
// Give them a warm welcome via PM :)
sendpm($pmto, 'Subject Here', 'Message Here', 0, $pmfrom);
Something along those lines... SMF has a built in PM function to make things easy :D
You will probably have to adjust some of that stuff... who knows if this works out I might even make it a mod o.O
This one ? This code had been posted 2 yrs ago .... Are you sure it would work in SMF 1.1 RC 2 ?
I am using it myself so yeah I'm sure ;D
Quote from: L.G.S on July 07, 2006, 01:34:27 PM
I am using it myself so yeah I'm sure ;D
Dude, i cant find this code in register.php
// Admin gets informed here...
adminNotify('approval', $memberID, $_POST['user']);
}
I couldn't find it either.
All I found that was similar was:
adminNotify('activation', $row['ID_MEMBER'], $row['memberName']);
What do we do to make this work for version 1.1 RC2?
I said the top of THIS page (page 8 when I posted it).
Meaning this:
So, for 1.1RC2, in Subs-Members.php, find:
// Admin gets informed here...
adminNotify('approval', $memberID, $regOptions['username']);
}
AFTER that, insert:
// Set up the message arrays
$pmfrom = array(
'id' => 1,
'name' => 'name or variable',
'username' => 'name or variable'
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);
// Give them a warm welcome via PM :)
sendpm($pmto, 'Subject Here', 'Message Here', 0, $pmfrom);
I've installed this and uploaded the new file but no PM gets sent to the new member. Is it because I don't "Require user to activate the account"?
How can I fix the code to make a PM be sent to the new member that registers.
Is there also a way to send an email to the member at the same time? So they get both a welcome PM and welcome email?
Along the same lines, how can I send an email to members who havent been to the forum since a specific date?
Thanks L.G.S.
I manage to get it working :)
Quote from: Vinspire on July 08, 2006, 12:55:18 AM
Thanks L.G.S.
I manage to get it working :)
Could you help to share what you did?
original msg from MJJOS
Yes it can be made work with 1.1RC2, what he is saying is, take the original code given by Kirby, and put it into Subs-Members.php
So, for 1.1RC2, in Subs-Members.php, find:
// Admin gets informed here...
adminNotify('approval', $memberID, $regOptions['username']);
}
AFTER that, insert:
// Set up the message arrays
$pmfrom = array(
'id' => 1,
'name' => 'name or variable',
'username' => 'name or variable'
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);
// Give them a warm welcome via PM :)
sendpm($pmto, 'Subject Here', 'Message Here', 0, $pmfrom);
Remember to replace Subject Here with the PM subject, and Message Here with the pm's message.
Thats it, it works perfectly, and that way you wont get that error message that was coming up. I tried it, so it should be fine for most people.
Great idea by the way! Hope that helps.
I've done that and it doesn't work... It sends no PM to new members...
Quote from: husmen73 on July 05, 2006, 11:28:53 AM
Quote from: tarkhorani on July 04, 2006, 09:56:02 AM
This is Mod for 1.1 RC2
I download and installed it but where can I set the propeties and how can Use it
Sub-members.php look for
// welcomemessage options:)
sendpm($pmto, 'Welcome!!!', 'WE THANK MEMBER YOU FOR ISING...', 0, $pmfrom);
Subject='Welcome'
Messaje='WE THANK MEMBER YOU FOR ISING...' ;)
Edit mod: download here (http://rapidshare.de/files/25017078/pmregisteredmessage_eng2.zip.html)
Try downloading this then :)
Quote from: Vinspire on July 09, 2006, 12:16:10 AM
Quote from: husmen73 on July 05, 2006, 11:28:53 AM
Quote from: tarkhorani on July 04, 2006, 09:56:02 AM
This is Mod for 1.1 RC2
I download and installed it but where can I set the propeties and how can Use it
Sub-members.php look for
// welcomemessage options:)
sendpm($pmto, 'Welcome!!!', 'WE THANK MEMBER YOU FOR ISING...', 0, $pmfrom);
Subject='Welcome'
Messaje='WE THANK MEMBER YOU FOR ISING...' ;)
Edit mod: download here (http://rapidshare.de/files/25017078/pmregisteredmessage_eng2.zip.html)
Try downloading this then :)
does that mean it will only be available for 30 days? it says it'll be deleted unless i download the premium one..
Nope, that is rapidshare. I don't think they would delete your file after 30 days.
Am not sure thou but i don't think it will make any effect :P
Dumb question time. How do I put a break in? I tried <br>, <br />, /n, <p></p>... but none of them worked.
It may be easier to use the mod that was created:
http://mods.simplemachines.org/index.php?mod=387
HTH
Quote// Set up the message arrays
$pmfrom = array(
'id' => 1,
'name' => 'name or variable',
'username' => 'name or variable'
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);
// Give them a warm welcome via PM :)
sendpm($pmto, 'Subject Here', 'Message Here', 0, $pmfrom);
It's working. But It's showing "Guest" Undermy username. Infact i am Administrator.
Maksa
Guest
Wat if new member want to reply? Coz it send mail as Guest not Admin.
my edited code
Quote// Set up the message arrays
$pmfrom = array(
'id' => 1,
'name' => 'Maksa',
'username' => 'Maksa'
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);
// Give them a warm welcome via PM :)
sendpm($pmto, 'Welcome My Friend', 'Welcome to Maksazone.com Hope u will enjoy here. please keep posting to make our site better. <br>Feel free to contact me or e-mail me at [email protected] for any help of sugesstions.<br><br> Thanks,<br>Maksa (Mayur K. Saparia)<br>Maksazone.com', 0, $pmfrom);
also wanted to know one more thing..
Is it possible to make that text with bold, links n diffrent text colors. like below
Welcome to Maksazone.com (http://maksazone.com) Hope u will enjoy here. please keep posting to make our site better.Waiting for Reply...
Hi,
Anyone using this version with SMF1.1.1?
Thanks.
Quote from: Col on January 28, 2007, 06:37:09 PM
Hi,
Anyone using this version with SMF1.1.1?
Thanks.
I am wondering the same answer ...
is there a mod for 1.1.4?
Pm to New Members Mod:
http://custom.simplemachines.org/mods/index.php?mod=1517 (http://custom.simplemachines.org/mods/index.php?mod=1517)
For smf 2.0 only
can i use this mod in smf 1.1.1
thanks for this :)
I just tried to install this mod, the PM to new registered user's, I upload the zip file ok, but when i go to apply the mod, I get a really wierd error that has huge red rectangle blocks on the top and bottom of the screen, this is the message, i should also comment, then when my SMF forum checks to test the files all say test ok/successful, so i dunno what the eroor means. i hope you will here is a copy of what it looks like:
1. Execute Modification ./Sources/ManageRegistration.php Test successful
2. Execute Modification ./Sources/Subs-Members.php Test successful
3. Execute Modification ./Themes/default/Register.template.php Test successful
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
ERROR after applying mod option:
ERROR
The requested URL could not be retrieved
While trying to retrieve the URL: MYWEBSITE/forum/index.php?action=packages;sa=install2;package=PM_On_Registration.tar.gz
The following error was encountered:
Zero Sized Reply
Squid did not receive any data for this request.
Your cache administrator is webmaster.
Generated Mon, 20 Dec 2010 19:27:43 GMT by demil1.byetcluster.com (Lusca/LUSCA_HEAD-r14756).
**Is there anything I need to do to the files before hand, before I apply them, as they are all chmod to 777, and I really haven't a clue to what occured. Any help would be great. Thanks )
PS: I am using the 1.1.12 smf forum, i saw (I think) something about 2.0 RC4 or similar, do i need to upgrade again? or can anyone help me with the same file in 1.1.12 version or if anyone knows a type of mod like this to use on my version? Unless it is caused by some other problem?