1
Dexmaus
Auto PM??
  • 2004/4/25 18:03

  • Dexmaus

  • Just popping in

  • Posts: 13

  • Since: 2004/4/20


Is there a way to set a automatic Private Message sent to everyone that register for their 1st time? thankss

2
Mithrandir
Re: Auto PM??

You can put in some code on account registration:

kernel/member.php lines 408 and onwards (activateUser() method):
function activateUser(&$user)
    {
        if (
$user->getVar('level') != 0) {
            return 
true;
        }
        
$user->setVar('level'1);
        return 
$this->_uHandler->insert($usertrue);
    }


in between $user->setVar('level', 1);
and return $this->[...]

you can then put in this code:
$xoopsMailer =& getMailer();
$xoopsMailer->usePM();
$xoopsMailer->setToUsers($user);
$xoopsMailer->setSubject('Welcome to the site'); //or whatever you want the subject to be
$xoopsMailer->setBody('This is the welcome message'); //this is the text body - use n for new lines
$xoopsMailer->send();

and you should be set - of course edit the messages to your liking

3
Dexmaus
Re: Auto PM??
  • 2004/4/25 18:17

  • Dexmaus

  • Just popping in

  • Posts: 13

  • Since: 2004/4/20


ur awesome, im gonna try that. thank you!

4
Mithrandir
Re: Auto PM??

You're welcome. Wait a sec and I'll post my PayPal account for you to show your gratitude ()

5
Dexmaus
Re: Auto PM??
  • 2004/4/25 19:02

  • Dexmaus

  • Just popping in

  • Posts: 13

  • Since: 2004/4/20


i tried, and uploaded member.php
but now it gives me a blank page

6
Mithrandir
Re: Auto PM??

Most likely a file not included properly

Can you turn on php debug and see what it says?

Login

Who's Online

106 user(s) are online (64 user(s) are browsing Support Forums)


Members: 0


Guests: 106


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits