I'm using X-User for registration and I do not want to use FormExpress!
I'm getting the regular user's registration data plus an additional field called _YPHONE. In XUser these values are in an array called $args.
The rest I'm inserting in the user and xuser tables as usual but I want to insert $args['_YPHONE'] into the users DUD field called _YPHONE.
I've searched for a clue and found out I need to use pnUserSetVar but I don't know how.
x
- shyra posted »MenuTree Mystery« 19:50h
- dks answered »include a file« 18:22h
- dks answered ».764 -> 1.1.1, Can't add new blocks« 17:33h
- craigh posted »PostCalendar 5.5.0RC1 needs testers and translators« 17:24h
- bartl answered »Upgrading 1.0.2 --> 1.1.1« 15:02h
- Charlie-otb answered »SafeHTML output filter and youtube« 10:02h
- dl7und answered »Adding an "About Us" page« 03:34h
Login
Want to add DUD values from X-User (not with FormExpress!)
-
-
- Rank: Helper
- Registered: 24.03.04
- last visit: 27.06.09
- Posts: 109
Anybody? :? I still can't figure out how to use pnUserSetVar to insert dynamic user data.
Code
bool pnUserSetVar( mixed $name, mixed $value, value $)
No $uid there. It comes from pnSessionGetVar. But if your registering a new user who presumably doesn't have a $uid until they submit how can you do this?
X -
- Rank: Helper
- Registered: 24.03.04
- last visit: 27.06.09
- Posts: 109
Could I change one of the core user data fields like one of those instant messenger fields nobody uses? What would happen if I changed them to suit my purpose? I'd rather keep things the way they are but wouldn't that work? What else would be affected?
X -
- Rank: Helper
- Registered: 24.03.04
- last visit: 27.06.09
- Posts: 109
Dear X,
This will be great. A lot of people have asked about adding Dynamic User Data to the registration process and don't want to install two modules to do it. If you can do it without hacking the core, everything would be compatible with 0.8 which will have an improved Dynamic User Data system.
I don't know any more than you but shouldn't _PHONE be dynadata[_PHONE] and doesn't X-User get $uid after it adds the new user and prior to adding the user to the xuser table?
Signed your good and everlasting friend,
X -
- Rank: Steering Committee
- Registered: 29.08.02
- last visit: 27.06.09
- Posts: 1201
http://noc.postnuke.com/tracker/index.php?func=detail&aid=1347&group_id=5&atid=101
--
Chestnut !
Support via Private message won't be answered...
http://dev.pnconcept.com
http://www.postnuke-france.org -
- Rank: Helper
- Registered: 24.03.04
- last visit: 27.06.09
- Posts: 109
-
- Rank: Steering Committee
- Registered: 29.08.02
- last visit: 27.06.09
- Posts: 1201
The function added in the file on the NOC is about the same than the original pnUserSetVar except that the uid created in the registration process is valid. The file also saves the optional items a little while later (after a DB error check for the other core fields). So if an error occurs in the normal saving, the dynamics are not saved uselessly.
--
Chestnut !
Support via Private message won't be answered...
http://dev.pnconcept.com
http://www.postnuke-france.org
- Moderated by :
- Support
