1
darkcode
Auto PM greeting?
  • 2005/3/15 23:49

  • darkcode

  • Just popping in

  • Posts: 29

  • Since: 2005/3/13


is there any hack that wllow to send an auto PM to welcome new user that just register?
thanks

2
wanikoo
Re: Auto PM greeting?
  • 2005/3/17 11:01

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


My old Hack^^
But it still works well!

If you want to send a welcome PM to your new member automatically, please follow this link below^^
(It's written in Japanese..but...I think you can easily understand it ^^)

http://www.xoopscube.jp/modules/newbb/viewtopic.php?topic_id=6253&forum=14

3
lina26
Re: Auto PM greeting?
  • 2005/4/20 14:36

  • lina26

  • Just popping in

  • Posts: 15

  • Since: 2004/8/30


It's written in Japanese.

I don't understand how to do Auto PM greeting.

can you help me please

4
wanikoo
Re: Auto PM greeting?
  • 2005/4/20 20:21

  • wanikoo

  • Not too shy to talk

  • Posts: 129

  • Since: 2003/12/27


Quote:

It's written in Japanese.

^^;;

------------
First, open the file, /html/register.php.
and then find this code!
line 200-209
le="color: #000000"><?php $newid = $newuser->getVar('uid'); if (!$member_handler->addUserToGroup(XOOPS_GROUP_USERS, $newid)) { echo _US_REGISTERNG; include 'footer.php'; exit(); } if ($xoopsConfigUser['activation_type'] == 1) { redirect_header('index.php', 4, _US_ACTLOGIN); exit(); }

Just add hack-code(//Welcome PM Hack start ~~ //Welcome PM hack end) like this^^;;
(please, write your own subject and message...instead of mine)
le="color: #000000"><?php $newid = $newuser->getVar('uid'); if (!$member_handler->addUserToGroup(XOOPS_GROUP_USERS, $newid)) { echo _US_REGISTERNG; include 'footer.php'; exit(); } //Welcome PM Hack start //Yeah,already defined above^^ $pm_handler =& xoops_gethandler('privmessage'); $pm =& $pm_handler->create(); $pm->setVar("subject", "Welcome To Wanisys^^and thanks for your join!!"); $pm->setVar("msg_text", "Hi^^I am wani,administrator of Wanisys!nThanks for your join!!nHave a nice time!!n"); //Newuser's id $pm->setVar("to_userid", $newid); // Admin's id, it's 1 in most case $pm->setVar("from_userid", 1); if (!$pm_handler->insert($pm)) { // echo "Failed to send Welcome Private Message!!"; // No need to echo this failure-message here,I think so!!...Just optional^^ } //Welcome PM Hack end if ($xoopsConfigUser['activation_type'] == 1) { redirect_header('index.php', 4, _US_ACTLOGIN); exit(); }

Who's Online

236 user(s) are online (191 user(s) are browsing Support Forums)


Members: 0


Guests: 236


more...

Donat-O-Meter

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

Latest GitHub Commits