The Joomla! Forum ™



Forum rules


Please use the Forum Post Assistant to give your server setting details which are necessary to determine the problem.



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 15 posts ] 
Author Message
 Post subject: The user profile plugin?
PostPosted: Mon May 24, 2010 9:21 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Fri Jul 21, 2006 8:29 pm
Posts: 87
Location: Scotland
How do we actually use the user profile plugin? It has the option of additional fields being required at registration. But setting these as required does not actually add them to the registration page. So how do we go about adding the additional fields to the user registration?


Top
 Profile  
 
PostPosted: Wed May 26, 2010 9:05 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Sat Oct 28, 2006 11:16 pm
Posts: 1051
Location: Texas
It really kinda sucks....I'm working on extending it now. It's nice that the framework is in place to support it.

_________________
Honk if this signature offends you.


Top
 Profile  
 
PostPosted: Fri Jun 04, 2010 4:44 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Sat Oct 28, 2006 11:16 pm
Posts: 1051
Location: Texas
Has anyone else attempted to modify the fields in plugins/user/profile/profiles/profile.xml ?

I've attempted to add a date format to the dob field, but that causes a fatal error. Bug report opened up, but I've been told that a fatal error isn't a bug (then what is?)

_________________
Honk if this signature offends you.


Top
 Profile  
 
PostPosted: Sat Jun 05, 2010 8:36 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Sep 02, 2007 4:08 pm
Posts: 45
i've had no problem adding/subtracting modifying fields, and even creating new profile type plugins. what seems to be the problem?


Top
 Profile  
 
 Post subject: USER profile fields
PostPosted: Sun Jun 06, 2010 12:47 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Jun 06, 2010 12:19 am
Posts: 14
Location: Portugal
on Joomla 1.6 we can create additional fields on users registrations easily? It's that true?
This will be GREAT because we could always play these 'new fields' connecting to forum bridge like PHPbb, etc ...


Top
 Profile  
 
PostPosted: Sun Jun 06, 2010 4:37 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Sat Oct 28, 2006 11:16 pm
Posts: 1051
Location: Texas
Absolutely true and it's easy to do.

Take a close look at the files in plugins/user/profile/

Everything you need to create additional fields can be found there! Some example fields are provided in plugins/user/profile/profiles/profile.xml

_________________
Honk if this signature offends you.


Top
 Profile  
 
PostPosted: Sun Jun 06, 2010 4:52 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Jun 06, 2010 12:19 am
Posts: 14
Location: Portugal
very nice! stutteringp0et :)

If we need that Users must upload an image (eg a team/club membership card) to confirm and also validate that User .... and assign that registration.... we need to modify the same file ..

It would be easier if we could "edit, delete and create" that 'new fields' in backoffice .. or have a more complete registration process as it exists in phpbb ... but it's ok ..


Top
 Profile  
 
PostPosted: Sun Jun 06, 2010 5:34 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Sat Oct 28, 2006 11:16 pm
Posts: 1051
Location: Texas
boxcarmib wrote:
i've had no problem adding/subtracting modifying fields, and even creating new profile type plugins. what seems to be the problem?


My problem appears when I attempt to add a date format to the dob field. Anything other than %Y-%m-%d causes a fatal error on subsequent profile edit.

This didn't happen in beta 1, it's new for 2.

I'm also having problems with the checkbox and checkboxes field types (they don't reflect the previously selected values)

I've pretty much given up on submitting bug reports. The bug squad seems more interested in asserting their superiority than confirming bugs. The first person that responded to my report said that the core no longer uses strftime date formats, however, the field code (libraries/joomla/form/fields/calendar.php) clearly still uses strftime(). The second person to reply told me that plugins/user/profile/profiles/profile.xml isn't where the profile fields are located (clearly false).

I'll just override the broken pieces as I find them. Maybe I'll describe my Joomlacode Issue Tracker experiences on my website and provide my methods to override the misbehaving code.

_________________
Honk if this signature offends you.


Top
 Profile  
 
PostPosted: Sun Jun 06, 2010 5:46 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Sat Oct 28, 2006 11:16 pm
Posts: 1051
Location: Texas
prolipes wrote:
It would be easier if we could "edit, delete and create" that 'new fields' in backoffice....


That's exactly what I'm working on.

_________________
Honk if this signature offends you.


Top
 Profile  
 
PostPosted: Wed Jun 16, 2010 3:38 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Sat Oct 28, 2006 11:16 pm
Posts: 1051
Location: Texas
I have a new approach now. When a J1.6 feature doesn't operate as intended, I just override it.

I have had to do this for the following field types (so far):

calendar, checkbox, checkboxes, list (in order to utilize multiple=true effectively), and combo

I'm sure that utilizing the JHtml class works great, but utilizing the XML types I find that quite a few of them just don't work as advertised.

_________________
Honk if this signature offends you.


Top
 Profile  
 
PostPosted: Fri Jun 18, 2010 12:38 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar

Joined: Thu Aug 18, 2005 8:43 pm
Posts: 7846
Location: New York
http://docs.joomla.org/Creating_a_profile_plugin

Explains the basics of the plugin.
It's really easy.

stutteringpet I don't get it, there is not one open bug report at this moment. If you have seen a chnage in behavior on calendar between betas please report it ... it may be due to soem work that was done to support non Gregorian calendars. I believe there was some discussion on the mailng list.

_________________
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.


Top
 Profile  
 
PostPosted: Mon Jun 21, 2010 12:28 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Sat Oct 28, 2006 11:16 pm
Posts: 1051
Location: Texas
Report it?....did that - it was closed as "not a bug" - which is what happens to bugs that I report. Once they're closed, I can keep posting evidence and it seems that nobody ever looks at it again.

Here's the report:
http://joomlacode.org/gf/project/joomla ... m_id=20826

It bugs me (pun intended) that the issues I've reported aren't tested before they're closed. In the case of this report, information was given that is provably false (noted in my followup responses) It takes begging to get someone to actually take a serious look at them.

Here are the others that eventually got fixed (but I had to convince someone they were bugs):
http://joomlacode.org/gf/project/joomla ... m_id=20786
http://joomlacode.org/gf/project/joomla ... m_id=20642
http://joomlacode.org/gf/project/joomla ... m_id=20699

I really wouldn't mind submitting more bugs if it wasn't easier to override them (core devs - thanks for the override capabilities).

_________________
Honk if this signature offends you.


Top
 Profile  
 
PostPosted: Tue Jun 22, 2010 5:07 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Sat Oct 28, 2006 11:16 pm
Posts: 1051
Location: Texas
This thread now looks suspiciously like my bug reports - it has no further replies.

_________________
Honk if this signature offends you.


Top
 Profile  
 
PostPosted: Thu Jun 24, 2010 7:04 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar

Joined: Thu Aug 18, 2005 8:43 pm
Posts: 7846
Location: New York
I can assure you that no issues are closed without discussion or testing.
Yes, you do have to actively engage in the process of issue discussion. We all are working and thinking and talking about all of the reports. In case you haven't noticed this is a team project, with an active mailing list and irc channel, and I'd encourage you to jump into the discussion. You had quite a few people engage on that first issue so I don't know why you would think it wasn't taken seriously.

Added;
I reopened the one issue, but on the others all I see is a group of engaged volunteers, myself included, asking you questions and having discussion. That's how it works in a team project. I hope you'll think about starting to make some patches as you've got a good record on confirmed issue reports.

_________________
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.


Top
 Profile  
 
PostPosted: Thu Jun 24, 2010 7:45 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Sat Oct 28, 2006 11:16 pm
Posts: 1051
Location: Texas
Thank you for re-opening the issue.

I have no problem participating unless the door gets slammed. You may notice that on the previous issues, there is a long gap. In this gap I'm sending emails, communicating in forums and generally begging for someone to re-open the issue. Every single one of the issues was closed, and I begged for them to be re-opened. Afterward, they were confirmed and fixed.

I really do want this to be the best Joomla release ever. I've invested a lot of time implementing this CMS over the past several years and I only want to see it get better. I realize there are a lot of people dedicating their time to core development, bug squad, forum moderation and more. Releasing free extensions, reporting bugs and answering forum posts is how I give back.

I've submitted more description to the tracker item. The fatal error does not occur until the field value is populated with a previously submitted value that is not in "Y-m-d h:i:s" format.

_________________
Honk if this signature offends you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 15 posts ] 



Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group