Add phone information to user's regsitration

yys2000

Joined: 2005-05-16
Posts: 13
Posted: Thu, 2005-05-26 13:44

hi all:

I want to add phone information to user's registration page.
If I start from fresh installation, I need to modify the gallery user.class and some .tpl files?

thx
:roll:

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-05-26 14:13

yes, you'll have to add the phonenumber as a member to the modules/core/GalleryUser.class. then generate the new interface.
afterwards, you'll want to change some templates and some controlers/views in modules/core/*.inc and in modules/core/templates/*.tpl

alternatively, we could think about creating a G2 module that implements GalleryUser with some more data, take a look at the register module.

or we could create a g2 module that offers the possibility to add a random number of new user data fields.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-05-26 18:01

it would be preferable to extend GalleryUser rather than modify it, then register the new class with the factory.. i wonder if we are setup to handle that?

yys2000, you'll probably need to change GalleryPendingUser in register module too if you want users to self register including phone number.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-06-07 05:07

I believe that we are capable of handling a subclass of GalleryUser. I know I did some work a while back to make this possible, and I hope that I remembered to commit it :P

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Mon, 2005-07-18 09:04

I hope this is not out of sync by posting here, but came across this thread and read with Much interest.

Recently have floated G2 to some non profits like local artist coops and they fell in love with it. Had to slow them down since it is not released, but the question came up a few times from artists about being able to add stuff like contact info, bio material or vitae's, things like an artist statement... stuff like that. If I am reading this correctly, it may be possible to add custom user fields in the future, and that may allow for this kind of thing?

I cannot say enough about G2 so far. It is terrific.

drhiii

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-07-18 10:30

drhiii, depends on the details. Not sure if you want to add contact info per user or per item. Customfields are for items and that is already in G2 and works great. But there is currently not something like custom fields for users.

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Sat, 2005-07-23 03:04

Hm, I had added a response a few days ago but just discovered it didn't "take". If I did create a response but it is in a different location, apologizies. I looked around, didn't find what I wrote. Let me write again....

Valiant, yes the per item custom fields are Great. They work very well as you say.

I did mean Custom Fields for Users. Here's why...

As I have shared this wonderful G2 beta with some photographers and artists (and I have to slow them down until there is an official release), one common request is for the ability for an artist, a photographer, to be able to post simple things like Contact Information (beyond an email address), bios and or Vitaes, Artist Statements, techniques.

I know that a G2 integrated into a CMS would, should take over an advanced part of this. But to me, it would be remarkable to be able to create Custom User Fields to allow some fundamental information that would follow say, the owner of an album. It could be like a user selectable Block, to call up an artist's or photographer's profile, contact information, statements, anything like that, based on the Owner of the Block. And also accessed via the Member's List too. It would add a great deal of power to G2 from the artist/photographer standpoint.

This was one thing that has come up often... Custom User Fields for artists/photographers, that could be a menu selection, or not. Admin controlled. It would go a long way to covering many of the functions an integration into a CMS would do.

I hope this makes sense. It has come up often... oh, this idea/application for museums as well is quite powerful.

G2 rocks.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-07-23 07:23

drhiii, of course this sounds like a nice idea. I'd create a feature request on RFE such that this idea doesn't get lost. But be aware that we don't add features (or only very minor) until the final release now. We're concentrating on fixes and docs.
So if you need this anytime soon, you'll have to find someone that writes the code for you (or do it yourself).

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Sat, 2005-07-23 07:33

Oh yes. I understand completely. Am certain you have a huge crew of appreciative fans, of which I am one, who need to chill. I wish I had the skills to wrote at this level of code. It is a very high level of excellence that is taking place here.

I will submit an RFE yes. Do know there are some rather amazing entities lurking over my shoulder as I quietly show G2 to them. It is remarkably close to solving some huge pain for entities like museums, private photo collections, etc.

Anywaz, I am many appreciate this great effort. To coin an overused term, if ever there was a great and worthy purpose, G2 and the G2 team would be one.