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:

le="color: #000000"><?php if ($xoopsUser) { $xoopsTpl->assign('mymod_useremail', $xoopsUser->getVar('email')); $xoopsTpl->assign('mymod_realname', $xoopsUser->getVar('name')); }


Then in your module's smarty template:
le="color: #000000"><?php User Email: <{$mymod_useremail}> User Name: <{$mymod_realname}>

Login

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!