1
coulix
get email of a user
  • 2005/2/9 13:15

  • coulix

  • Just popping in

  • Posts: 25

  • Since: 2005/1/18


Hi,
i create a small module,
however when i use <{$xoops_url}> or <{$xoops_uname}>
the code displayed not he value.
i need the email of the user currently loged (my own in that case)

i edit headers.php to get email as a xoop var, but that does not change the problem.

thanks

2
coulix
Re: get email of a user
  • 2005/2/9 21:17

  • coulix

  • Just popping in

  • Posts: 25

  • Since: 2005/1/18


help

3
ackbarr
Re: get email of a user

if you are the creator of the module, you can add whatever information to smarty that you want:

if ($xoopsUser) {
  
$xoopsTpl->assign('mymod_useremail'$xoopsUser->getVar('email'));
  
$xoopsTpl->assign('mymod_realname'$xoopsUser->getVar('name'));
}


Then in your module's smarty template:
User Email: <{$mymod_useremail}>
User Name: <{$mymod_realname}>

Login

Who's Online

269 user(s) are online (181 user(s) are browsing Support Forums)


Members: 0


Guests: 269


more...

Donat-O-Meter

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

Latest GitHub Commits