What should I know to create a component that adds new user profile fields?

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
Saoshyant
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Oct 18, 2007 5:56 pm

What should I know to create a component that adds new user profile fields?

Post by Saoshyant » Thu Oct 18, 2007 6:10 pm

Howdy,

I'm just starting to learn how to program for Joomla, and my, isn't it huge?

Here's what I want to do: I want to extend the user profile in registration and probably everywhere else.  That means I would like to hard code some new user fields.

I was pointed to CB, but I have to confess that it seems pretty much overkill when I just want to do something this basic.  So I decided to write a component that would extend the user profile, but I have no idea how to connect with what already exists and by that I mean Joomla's own user management components.  Joomla seems so modular that is very complex in my eyes, and I don't know where to start.

I already know how to program basic modules, but this time I have to do a component and one that may conflict with the existing com_user.  This is not my intention.  I wish to extend it, but without editing it directly, or otherwise my changes would be gone upon the next upgrade.

I'm having a difficult time while trying to read Joomla's source code.  It's heavily optimized and object-oriented, and PHP doesn't help with its ackward syntax.

Tips, code, links, or advice very much appreciated.  I'd love to dig deeper into the Joomla API, but in due time.  Right now I'm somewhat in a hurry to get this one stage over with.
Last edited by Saoshyant on Thu Oct 18, 2007 7:25 pm, edited 1 time in total.

User avatar
ianmac
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Sat Sep 24, 2005 11:01 pm
Location: Toronto, Canada

Re: What should I know to create a component that adds new user profile fields?

Post by ianmac » Thu Oct 18, 2007 8:16 pm

Help test my Component XML Generator Tool!
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1997/Itemid,35/
All feedback appreciated!

Saoshyant
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Oct 18, 2007 5:56 pm

Re: What should I know to create a component that adds new user profile fields?

Post by Saoshyant » Fri Oct 19, 2007 8:57 pm

Thanks for the link and all.  It's really great that 1.5 development is planning to make this task much easier.

Right now, however, I'm forced to work on 1.0, so any help to understand how to write a component to extend the user profile in Joomla 1.0 will be much appreciated.

User avatar
ianmac
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Sat Sep 24, 2005 11:01 pm
Location: Toronto, Canada

Re: What should I know to create a component that adds new user profile fields?

Post by ianmac » Fri Oct 19, 2007 9:14 pm

ahhh...  my apologies...  we generally focus on 1.5 here at Joomla! Coding 101 and I no longer really develop for 1.0.  I would recommend checking out com_user_extended.  I'm not sure if it is still on the extensions directory or not.

Ian
Help test my Component XML Generator Tool!
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1997/Itemid,35/
All feedback appreciated!

macadelic

Re: What should I know to create a component that adds new user profile fields?

Post by macadelic » Sat Nov 03, 2007 7:19 pm

There is such a component that can do this without using community builder, but it is commercial, which I have no problem paying for.  it's called JUser - Extended Joomla Registration
Last edited by macadelic on Sat Nov 03, 2007 7:23 pm, edited 1 time in total.


Post Reply