1
den1662
Extended User Information
  • 2005/1/15 17:49

  • den1662

  • Just popping in

  • Posts: 12

  • Since: 2003/8/19


For module developer, you might need extra info for the registered users. Take a look at database table xoops_users. What if you want to extend it to the unlimited fields.

1) Download this file user.php
2) Overwrite this file at html/kernel/user.php (backup!!!)
3) Then you can call it from any module as Quote:
echo $xoopsUser->getVar('telefonHP');


Assumption: the field is pre-added.
Take a look on how do I modify the file user.php

2
den1662
Re: Extended User Information
  • 2005/1/15 17:57

  • den1662

  • Just popping in

  • Posts: 12

  • Since: 2003/8/19


Mithrandir/Onokazu,

I've tried to split the extended table and call it by SQL JOINT in function &getObjects.

Quote:

$sql = 'SELECT * FROM '.$this->db->prefix('users').' INNER JOIN '.$this->db->prefix('users_extended').' ON '.$this->db->prefix('users').'.uid = '.$this->db->prefix('epc_extended').'.uid';


The query part is working but somehow it is missing somewhere in assignVars($myrow)

Take a look at the file user.php

Any idea?

3
catalin12345
Re: Extended User Information

http://mods.postnuke.com/Article2511.html
i found something interesting check this link...
needed to get back into the swing of things and learn pnRender, so I wrote the MyInfo module. It allows users to enter whatever information they like and supports categories. The concept is fairly simple, but since the item body supports html, it can be quite powerful.

More information in the full text.

Features include:
Add, Edit and Delete Items
Add categories on the fly (while creating Items)
Edit and delete categories
View other users' items
Item body accepts html

Please visit www.chucksteel.com/postnuke for the download. To view full functionality, you will need to create an account, otherwise, you will just be able to view other user's info (click the My Info - Anonymous User View link in the menu).
-----------------------------------------------------------this is the module used here::
http://www.clubxtrem.net/modules/PN_Profil_List/ ?
if this is the module someone can port it to be used in xoops?!
also in clubxtrem after you login you have in the menu de user this features that are not in xoops:
http://www.clubxtrem.net/anniversaire.php
and:
http://www.clubxtrem.net/editprofil.php
those two if someone can integer will be very useful too xoops..
so if you make an user in club xtrem when you :
http://www.clubxtrem.net/userinfo.php?uid=25510
you have there more :anniversare and carte d`identite
how he do that?can anyone tell him to realease the hacks?!

Login

Who's Online

150 user(s) are online (99 user(s) are browsing Support Forums)


Members: 0


Guests: 150


more...

Donat-O-Meter

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

Latest GitHub Commits