Advertisement:

Author Topic: PM to New Registered Users  (Read 211463 times)

Offline guider

  • Jr. Member
  • **
  • Posts: 268
Re: PM to New Registered Users
« Reply #40 on: February 09, 2005, 09:07:10 AM »
Well as I said it does show up in admin now, but it doesn't work. Registering the normal (user-like) way. Nada.

Offline guider

  • Jr. Member
  • **
  • Posts: 268
Re: PM to New Registered Users
« Reply #41 on: February 09, 2005, 03:31:06 PM »
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.

Offline diplomat.

  • SMF Friend
  • Full Member
  • *
  • Posts: 545
  • Gender: Male
  • avidSOUND
    • avidSOUND
Re: PM to New Registered Users
« Reply #42 on: February 09, 2005, 05:06:14 PM »
maybe the part that should be in Register.php is not there.

Search for
Code: [Select]
// Admin gets informed here...
adminNotify('approval', $memberID, $_POST['user']);
}

and make sure that this:
Code: [Select]
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.
avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

Offline J. S.

  • Jr. Member
  • **
  • Posts: 220
  • Gender: Male
Re: PM to New Registered Users
« Reply #43 on: February 12, 2005, 02:43:19 AM »
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.

Offline Kirby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,040
  • Gender: Male
Re: PM to New Registered Users
« Reply #44 on: February 13, 2005, 12:41:00 AM »
/n is for line breaks..<br /> should be used instead...
so youd put something like:
Code: [Select]
Hello '. $user_info['name'] . '<br />Welcome to ' . $context['forum_name'] . '. Before posting please read the rules at the url.<br />Signature.

Offline J. S.

  • Jr. Member
  • **
  • Posts: 220
  • Gender: Male
Re: PM to New Registered Users
« Reply #45 on: February 15, 2005, 10:59:50 AM »
I did that to, now I am getting a parse error in the registration page.

Offline guider

  • Jr. Member
  • **
  • Posts: 268
Re: PM to New Registered Users
« Reply #46 on: February 16, 2005, 09:04:34 PM »
@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

Offline Kirby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,040
  • Gender: Male
Re: PM to New Registered Users
« Reply #47 on: February 18, 2005, 09:39:51 PM »
it should work with mambo :P

@JS, use this code:
Code: [Select]
// 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);
« Last Edit: February 18, 2005, 09:42:28 PM by Kirby »

Offline subnet_rx

  • Semi-Newbie
  • *
  • Posts: 33
    • Hattiesburg MS
Re: PM to New Registered Users
« Reply #48 on: May 28, 2005, 12:52:07 PM »
Could someone make this a mod editable in the admin section?   ???  :)

Offline Kirby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,040
  • Gender: Male
Re: PM to New Registered Users
« Reply #49 on: May 28, 2005, 02:52:00 PM »
the one i had on my package manager was, but its gone for the moment...

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,163
  • Gender: Male
Re: PM to New Registered Users
« Reply #50 on: May 28, 2005, 03:00:07 PM »
I like the new name kirby :)

Offline Kirby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,040
  • Gender: Male
Re: PM to New Registered Users
« Reply #51 on: May 28, 2005, 10:45:32 PM »
hehe :P

Offline stargazer_1017

  • Jr. Member
  • **
  • Posts: 123
  • Gender: Female
Re: PM to New Registered Users
« Reply #52 on: June 20, 2005, 06:34:39 PM »
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

Offline LostProphecy

  • Jr. Member
  • **
  • Posts: 381
  • Gender: Female
    • The Lost Prophecy
Re: PM to New Registered Users
« Reply #53 on: July 04, 2005, 02:37:02 AM »
*would really love this mod to come back as well*
Angelus Ex Quo Nox

Offline epyon

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • The Poké Lab
Re: PM to New Registered Users
« Reply #54 on: July 28, 2005, 04:00:44 PM »
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,..  :(

Offline Kirby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,040
  • Gender: Male
Re: PM to New Registered Users
« Reply #55 on: July 28, 2005, 05:40:52 PM »
what version of SMF? 1.1 or 1.0.5?

Offline trenchteam

  • Sr. Member
  • ****
  • Posts: 901
  • Gender: Male
    • NO WALLS STANDING
Re: PM to New Registered Users
« Reply #56 on: July 29, 2005, 11:52:31 PM »
1.05 please! ;D

Offline spirulez

  • Semi-Newbie
  • *
  • Posts: 61
Re: PM to New Registered Users
« Reply #57 on: August 02, 2005, 10:49:00 AM »
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 ;)
Do you undestrand something about SMF's variables? | Vous comprenez quelque chose aux variables sous SMF ?
Some help please? | Un peu d'aide svp ?
Thanks a lot | Merci beaucoup

Offline epyon

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • The Poké Lab
Re: PM to New Registered Users
« Reply #58 on: August 02, 2005, 11:40:38 PM »

Offline 3guk

  • Jr. Member
  • **
  • Posts: 239
Re: PM to New Registered Users
« Reply #59 on: August 03, 2005, 09:25:45 AM »
Anyone have this residing on their server.

Would like the package but it seems his package server has gone awol.