ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Extending Member Profile.

January 30, 2010 9:26pm

Subscribe [2]
  • #1 / Jan 30, 2010 9:26pm

    catalytic

    5 posts

    Hi,

    My client has asked to have functionality added to the member profile information.

    I have enabled a check box for each member profile that enables it to be flagged as having these extra attributes.

    The problem I am having now is determining what is the best way to then allow the user to edit these extra attributes.

    I have created a module to handle the rendering (via tags) of all these new attributes, but cannot access any of these tags in the themes/profile_theme/default/profile_theme.php

    I have seen posts where people have mentioned that the forums can be run through the template engine to give access to these tags. I was wondering if there is a way to do this for the member profile as well.

    I am running ExpressionEngine v 1.6.8. I have also read that EE v2.0 supports the rendering of tags in control panel/members “your account” profile. Is version 2 still beta? Is it stable enough to use?

    Just wondering if someone can point me in the correct direction on how to customise the “your account” section of a member profile.

    Regards,

    Adam.

  • #2 / Jan 31, 2010 1:44am

    catalytic

    5 posts

    Am I going about this the wrong way here?

    Is it that hard to customise the “your account” pages?

  • #3 / Jan 31, 2010 8:13pm

    Boyink!

    5011 posts

    Short answer is “yes”.

    Most folks look to the User Module from Solspace if they need custom member profiles.  User gives you a member tagset to use in normal EE templates.

  • #4 / Feb 01, 2010 6:39am

    Rob Allen

    3105 posts

    Ditto to what Boink said!

    If I need to do any member related things over an above the default I’ve always recahed for the User module.

  • #5 / Feb 01, 2010 8:52am

    catalytic

    5 posts

    Thanks for the replies.

    I had a look at the Solspace user, but it still seems to only add a few extra tags. I want to create my own, that will work directly with my module.

    Otherwise I am forced to hack the existing member code and insert my methods etc, directly into the default member code, which I dont think lends itself to proper MVC which I thought Code ignitor did so well. It also destroys any chance of packaging what I create, up into a nice self installing module/add-on.

    Solspace did it, so there must be a way 😉 I could buy the module, but I would only be ripping it apart to do my own tags…. or maybe thats what your getting at?

  • #6 / Feb 01, 2010 9:14am

    Rob Allen

    3105 posts

    It depends what you want to add. If it’s a Custom Member Select field then the User module will handle that sort of fuctionality no problem - the module can handle any member related info, whether default fields or your custom ones.

    What exactly are you trying to achieve?

  • #7 / Feb 03, 2010 7:37am

    catalytic

    5 posts

    I would like to create another type of profile, lets call it myProfile.

    A member profile has a 0 - many relationship with myProfile’s.

    By enabling the checkbox, enables the member profile control panel to show a CRUD table listing the myProfiles associated with it.

    My module will hold all the methods/views required to render the components of these myProfile objects.

    I would like to use the TAG’s from my module in the member control panel.

    I thought posting in the “How To” section would possibly lead me in the right direction, but it seems I have just been told “What to Buy” 😊

    If solspace’s user module will do this, or give me access to code that will show me how to implement my own tag’s then I will advise my client that it is the best option.

  • #8 / Feb 03, 2010 7:57am

    Rob Allen

    3105 posts

    I think the problem we’re having is understanding *exactly* what you’re trying to do.

    From what you say you want to be able to create and display profiles, and “related” profiles? Then display data according to the profile type/status?

    How would your tagging work, on the profile, or on your CRUD?

  • #9 / Feb 03, 2010 8:19am

    catalytic

    5 posts

    an example of the way I intended on using the tags would be

    {exp:myProfile:listProfiles}

    which would return a table of all myProfiles with a foreignKey to the memberId of the currently logged in user pulled from the session variable?

    I wanted to use this inside members “your profile” so that they can see all the member profiles that are associated with their current login.

    I would like the user to be able to create, update, delete these profile, ideally from the “your profile” control panel.

    I used the template tutorial to create the fortune example, and can see how an admin would have a total over view via the /system control panel and can add, delete, update ALL the myProfiles.

    I want a way to enable the current logged in user to edit only the myProfiles associated with their login.

    For the purpose of consistency I thought the best place to add this functionality would be in the “Your Account” section.

    It seems to be quite difficult to extend the “Your Account” section.

    The custom fields would be ideal if i wanted to store all this extra information in the current member profile, but the specification requires the user to be able to create 1 or more of these extra profiles.

    It seems that the only way to do this is by directing the user out of their “your profile” area, and into a new template that can render all of the controls (CRUD table) to maintain these extra profiles.

    I appreciate your time, and hope you can point me in the right direction.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases