1
maseal_s
Additional user fields
  • 2003/2/24 4:08

  • maseal_s

  • Just popping in

  • Posts: 3

  • Since: 2003/2/11


How can I extend standard XOOPS user data (for example add 'Phone') without editing XOOPS kernel files? These new data should be also shown on "userinfo.php" and "edituser.php" pages.

2
maseal_s
Re: Additional user fields
  • 2003/2/24 11:44

  • maseal_s

  • Just popping in

  • Posts: 3

  • Since: 2003/2/11


Please if somebody knows, tell me is it possible?
Because i don't like idea to change kernel files

3
felix
Re: Additional user fields
  • 2003/2/24 12:03

  • felix

  • Just popping in

  • Posts: 7

  • Since: 2002/5/9 1


Possible. Pls search the old post. u will find the answer

4
asinglenet
Re: Additional user fields
  • 2003/2/24 17:16

  • asinglenet

  • Just popping in

  • Posts: 15

  • Since: 2002/1/24


What should we search for?

5
maseal_s
Re: Additional user fields
  • 2003/2/25 3:56

  • maseal_s

  • Just popping in

  • Posts: 3

  • Since: 2003/2/11


The only answer i've find is to hack core files.
It is not a solution

6
w4z004
Re: Additional user fields
  • 2003/2/25 4:54

  • w4z004

  • XOOPS Advisor

  • Posts: 340

  • Since: 2001/12/13


exact, only touching the core files can obtain this for now..

If you read the roadmap, into our plans we have the dynamic fields creation.

But now we not have this feature.

7
MithikoS
Re: Additional user fields
  • 2003/3/3 5:57

  • MithikoS

  • Just popping in

  • Posts: 3

  • Since: 2002/10/4


I just... hack the core..
evrything looks nice

i create the objects
i have install them into the xoopslists
i have load the objects

no problem... no errors

BUT, i CAN'T UPDATE THe MYsQL

Why?

i want to ask.
it's possible to have this problem... because i don't have the same order in the object with the mysql_query ?

8
trewitt
Re: Additional user fields
  • 2003/3/30 20:10

  • trewitt

  • Just popping in

  • Posts: 5

  • Since: 2002/2/25


I have the same need, to a much greater extent. See http://www.lone-star.org/xoops/html/register.php

I hacked a LOT of core files under XOOPS 1.2, and wish to avoid editing ANY core files when rewriting under V2. Adding a 'users_plus' SQL table is easy enough, but I need to know what the "Officially Sanctioned Core Class Extension" methodology is. IE, how do I write a module file which extends \kernel\user.php, such that my own module code can reference User properties just as if they had been declared in \kernel\user.php?

We really need an example for "class XoopsUserPlus extends XoopsUser"....

I also need to override the default behavior and appearance of the user login core 'module' (I concatenate First and Last names into uname - see site above). Is there an Officially Sanctioned way to do this without hacking the core (/user.php)?


9
mbogosian
Re: Additional user fields
  • 2003/4/16 4:12

  • mbogosian

  • Just popping in

  • Posts: 53

  • Since: 2002/9/30


Quote:
maseal_s wrote:
The only answer i've find is to hack core files.
It is not a solution

An alternative is to create blocks which are only viewable on the user page. Check out this thread or this patch to see what I mean.

10
CoolPops
Re: Additional user fields
  • 2003/4/16 5:32

  • CoolPops

  • Just popping in

  • Posts: 65

  • Since: 2003/4/9 1


Try queryF ... query() only SELECT's unless you are in a POST instead of a GET ... It will then UPDATE, DELETE, INSERT. This is a security feature that I have come to like.

queryF runs the query no matter what but it can open to some security flaws. Take a peek at:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=8161&forum=4&jump=1

--
Jeremy
http://cowgar.com

Login

Who's Online

238 user(s) are online (161 user(s) are browsing Support Forums)


Members: 0


Guests: 238


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