News:

Wondering if this will always be free?  See why free is better.

Main Menu

PM to New Registered Users

Started by Midgard, December 17, 2004, 07:00:24 AM

Previous topic - Next topic

L.G.S

I am using it myself so yeah I'm sure ;D
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Vinspire

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']);
}

PrizeLive.com

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?
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

L.G.S

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);
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


PrizeLive.com

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?
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Vinspire

Thanks L.G.S.

I manage to get it working :)

PrizeLive.com

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?
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Vinspire

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.

PrizeLive.com

I've done that and it doesn't work... It sends no PM to new members...
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Vinspire

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

Try downloading this then :)

PrizeLive.com

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

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..
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Vinspire

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

dæmon

Dumb question time.  How do I put a break in?  I tried <br>, <br />, /n, <p></p>... but none of them worked.

SpyDie

Beta. Software undergoes beta testing shortly before it's released. Beta is Latin for 'still doesn't work.'

Maksa

#134
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 Hope u will enjoy here. please keep posting to make our site better.


Waiting for Reply...
:'( :'( True Love Doesn't Have A Happy Ending... True Love Doesn't Have An Ending... :'( :'(
www.maksazone.com >>>> for all lovers....

Best Offer Manual 100 Directory Submission with PR2/PR5 @ 10$ 

Col

Hi,

Anyone using this version with SMF1.1.1?

Thanks.

Vinspire

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 ...

askepott



m1993

can i use this mod in smf 1.1.1

Advertisement: