1
jansen
User email in custom block?
  • 2004/12/27 15:42

  • jansen

  • Just popping in

  • Posts: 71

  • Since: 2004/3/9 1


I would like to know if it's possible to have a custom made block with a form that shows the users email address (prefilled) when a user is logged in and another default value when not logged in. This block should appear in the home module...

2
Mithrandir
Re: User email in custom block?

sure
$email $GLOBALS['xoopsUser'] ? $GLOBALS['xoopsUser']->getVar('email') : 'default@def.ault';
// use email in HTML

3
jansen
Re: User email in custom block?
  • 2004/12/27 17:16

  • jansen

  • Just popping in

  • Posts: 71

  • Since: 2004/3/9 1


Thanks for this very quick and very helpfull reply, I directly implemented it into my website!

Login

Who's Online

229 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 229


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