#18 User Jabber information in user profile.

XOOPS_2.2
closed
Jan Pedersen
5
2012-09-25
2004-02-29
Lucas García
No

This hacks allows the user to show his user jabber information in
his profile.

1) Add a new column to the table xoops_users. You can use
PHPMYADMIN or MySQL:

ALTER TABLE database_name.xoops_users ADD
user_jabber VARCHAR(255);

2) Edit file /userinfo.php and before
"$xoopsTpl->assign('user_msnm',..." (line 100 approx) add:

$xoopsTpl->assign('lang_jabber','JABBER ID');
$xoopsTpl->assign('user_jabber',
$thisUser->getVar('user_jabber'));

3) Edit file /edituser.php and before
"$edituser->setVar('user_msnm',... " (line 101 approx) add:

$edituser->setVar('user_jabber', $user_jabber);

3.1) Before "$msnm_text = new XoopsFormText..." (line 161
approx) add:

$jabber_text = new XoopsFormText('Jabber ID', 'user_jabber',
30, 255,
$xoopsUser->getVar('user_jabber', 'E'));

3.2) Before "$form->addElement($msnm_text);" (line 204
approx) add:

$form->addElement($jabber_text);

And it is all :)

Thx, Tanke (www.kdehispano.org)

Discussion

  • Jan Pedersen
    Jan Pedersen
    2005-05-06

    Logged In: YES
    user_id=841117

    Possible with the new Dynamic User Profiles in XOOPS 2.1