xoops forums

maseal_s

Just popping in
Posted on: 2003/2/24 4:08
maseal_s
maseal_s (Show more)
Just popping in
Posts: 3
Since: 2003/2/11
#1

Additional user fields

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.

maseal_s

Just popping in
Posted on: 2003/2/24 11:44
maseal_s
maseal_s (Show more)
Just popping in
Posts: 3
Since: 2003/2/11
#2

Re: Additional user fields

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

felix

Just popping in
Posted on: 2003/2/24 12:03
felix
felix (Show more)
Just popping in
Posts: 7
Since: 2002/5/9 1
#3

Re: Additional user fields

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

asinglenet

Just popping in
Posted on: 2003/2/24 17:16
asinglenet
asinglenet (Show more)
Just popping in
Posts: 15
Since: 2002/1/24
#4

Re: Additional user fields

What should we search for?

maseal_s

Just popping in
Posted on: 2003/2/25 3:56
maseal_s
maseal_s (Show more)
Just popping in
Posts: 3
Since: 2003/2/11
#5

Re: Additional user fields

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

w4z004

XOOPS Advisor
Posted on: 2003/2/25 4:54
w4z004
w4z004 (Show more)
XOOPS Advisor
Posts: 340
Since: 2001/12/13
#6

Re: Additional user fields

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.

MithikoS

Just popping in
Posted on: 2003/3/3 5:57
MithikoS
MithikoS (Show more)
Just popping in
Posts: 3
Since: 2002/10/4
#7

Re: Additional user fields

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 ?

trewitt

Just popping in
Posted on: 2003/3/30 20:10
trewitt
trewitt (Show more)
Just popping in
Posts: 5
Since: 2002/2/25
#8

Re: Additional user fields

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)?

mbogosian

Just popping in
Posted on: 2003/4/16 4:12
mbogosian
mbogosian (Show more)
Just popping in
Posts: 53
Since: 2002/9/30
#9

Re: Additional user fields

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.

CoolPops

Just popping in
Posted on: 2003/4/16 5:32
CoolPops
CoolPops (Show more)
Just popping in
Posts: 65
Since: 2003/4/9 1
#10

Re: Additional user fields

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/viewto ... ic_id=8161&forum=4&jump=1

--
Jeremy
http://cowgar.com