11
Cuidiu
Re: Adding to adminactivate.tpl - Solved
  • 2006/5/20 5:29

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Biteronboard,

I think I've pretty much got this figured out except in the case of using an array. I don't know how to add the answers for that to the adminactivate.tpl but otherwise, here goes:
register.php - around line 187, I inserted below USEREMAIL the assign and field names:
$xoopsMailer->assign('HMADDRESS'$newuser->getVar('hm_address'));
$xoopsMailer->assign('USERFROM'$newuser->getVar('user_from'));
$xoopsMailer->assign('MBRLEVEL'$newuser->getVar('mbr_level'));
$xoopsMailer->assign('SPEC'$newuser->getVar('specialty'));
$xoopsMailer->assign('COMP'$newuser->getVar('company'));
$xoopsMailer->assign('PREFMAILADD'$newuser->getVar('pref_mail_address'));
$xoopsMailer->assign('HMPHONE'$newuser->getVar('phone_hm'));
$xoopsMailer->assign('BUSNPHONE'$newuser->getVar('phone_busn'));
Then on adminactivate.tpl in the body of the email I added the following:
Home address: {HMADDRESS}
Company: {COMP}
Business address: {USERFROM}
Member Level: {MBRLEVEL}
Specialty: {SPEC}
Business Phone: {BUSNPHONE}
Home Phone: {HMPHONE}
Preferred Mailing Address: {PREFMAILADD}
Success!
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]

12
Will_H
Re: Adding to adminactivate.tpl
  • 2006/5/20 11:03

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


WUNDERBAR!

Login

Who's Online

359 user(s) are online (76 user(s) are browsing Support Forums)


Members: 0


Guests: 359


more...

Donat-O-Meter

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

Latest GitHub Commits