1
Dragon
XOOPs 2.2: Block for setting an extended field
  • 2007/2/28 9:41

  • Dragon

  • Just popping in

  • Posts: 2

  • Since: 2007/2/28


Hi,

I'm developing a simple module which runs on 2.2 and uses fields defined in extended profiles.

I want to create a block to set and display this fields.

Which funktions do I need to use from the xoopsUser class to get the value displayed?
And more important: what is needed to save the entered data to the database?

txs in advance!

2
Dragon
Re: XOOPs 2.2: Block for setting an extended field
  • 2007/3/2 8:30

  • Dragon

  • Just popping in

  • Posts: 2

  • Since: 2007/2/28


Hi guys!

I was quicker this time

Problem solved:

Quote:

$member_handler =& xoops_gethandler('member');
$edituser =& $member_handler->getUser($xoopsUser->getVar('uid'));
$edituser->setVar('TEST',$_POST['TEST']);
$member_handler->insertUser($edituser);


So far it works.
Some comments on this?

Login

Who's Online

135 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 135


more...

Donat-O-Meter

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

Latest GitHub Commits