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.

Custom member account template

September 27, 2011 4:22pm

Subscribe [4]
  • #1 / Sep 27, 2011 4:22pm

    Podzol

    80 posts

    Hello,
    EE2.1.3

    I have been asked to build a custom member account page that is styled like our website. I can find the custom member tags that display member information, but I also need to let members edit their information through this customized page.

    Can anyone tell me where the tags are for things like:
    - edit password
    - edit username
    - change avatar

    OR

    tell me where the member account page template is so that I can style and add the fields that I need to that?



    I will also need to add a place for a list of the member’s channel entries. I can’t find a tag for that. Is there any way to preload a link with a search for member channel entries?

    Thanks,
    Blake

    EDIT: I seem to have this figured out. I used the tags that are in the forum module membership templates for these elements. I had to change the {lang:——} tags to words, and the return path {path:update_profile} to a real url, but it seems to be pushing information where it needs to go.  I could still use suggestions for the part in Blue.
    Blake

  • #2 / Sep 28, 2011 7:40am

    Sue Crocker

    26054 posts

    Hi, Podzol.

    You could use the query module to create such a list by grabbing their member_id and searching the exp_channel_titles table.

    Does that help?

  • #3 / Oct 02, 2011 1:43pm

    Podzol

    80 posts

    Thanks Sue, I will try that for that part of the page.

    I have built the rest of the template, but the code doesn’t seem to upload the new user information. I have the security settings not to use the XID feature. Any ideas why this won’t work?  When I “View Source,” the form and input fields in my page all look the same as those of the Forum CP and the Member CP in the regular EE CP. I am stymied.

    The form seems to be accessing my account (it has my correct member_id and also a location I entered in the blue and pink CP), but I cannot add or change the data through the form.

    Here’s the code that I am using:

    <form method="post" action="http://www.neotomadb.org/index.php/midden/">
    <input type="hidden" name="site_id" value="1" />
    <input type="hidden" name="id" value="{member_id}" />
    
    <h3>Edit Your Profile</h3>
    <p><table border='0' cellspacing='0' cellpadding='0'><br />
    <tr><br />
    <td><div class='defaultBold'>Location</div></td><br />
    <td><input type='text' class='input' name='location' value='{location}' maxlength='50'>/td></p>
    
    <p></tr><tr><td> </td></tr><tr></p>
    
    <p><td><div class='defaultBold'>Occupation</div></td><br />
    <td><input type='text' class='input' name='occupation' value='{occupation}' maxlength='80'>/td></p>
    
    <p></tr><tr><td> </td></tr><tr></p>
    
    <p><td><div class='defaultBold'>Interests</div></td><br />
    <td><input type='text' class='input' name='interests' value='{interests}' maxlength='120'>/td></p>
    
    <p></tr><tr><td> </td></tr><tr></p>
    
    <p><td  valign='top'><div class='defaultBold'>Bio</div></td><br />
    <td><textarea name='bio' class='textarea' rows='12' cols='90'>{bio}</textarea></td></p>
    
    <p></tr><br />
    </table></p>
    
    <p><br />
    <input type='submit' class='submit' value='Update' /></p>
    
    <p></form>

    Here’s how it parses

    <form method="post" action="http://www.neotomadb.org/index.php/midden/">
    <input type="hidden" name="site_id" value="1" />
    <input type="hidden" name="id" value="2" />
    
    <h3>Edit Your Profile</h3>
    
    <p><table border='0' cellspacing='0' cellpadding='0'><br />
    <tr><br />
    <td><div class='defaultBold'>Location</div></td><br />
    <td><input type='text' class='input' name='location' value='Pennsylvania' maxlength='50'>/td></p>
    
    <p></tr><tr><td> </td></tr><tr></p>
    
    <p><td><div class='defaultBold'>Occupation</div></td><br />
    <td><input type='text' class='input' name='occupation' value='{occupation}' maxlength='80'>/td></p>
    
    <p></tr><tr><td> </td></tr><tr></p>
    
    <p><td><div class='defaultBold'>Interests</div></td><br />
    <td><input type='text' class='input' name='interests' value='{interests}' maxlength='120'>/td></p>
    
    <p></tr><tr><td> </td></tr><tr></p>
    
    <p><td  valign='top'><div class='defaultBold'>Bio</div></td><br />
    <td><textarea name='bio' class='textarea' rows='12' cols='90'>{bio}</textarea></td></p>
    
    <p></tr><br />
    </table></p>
    
    <p><br />
    <input type='submit' class='submit' value='Update' /></p>
    
    <p></form>

  • #4 / Oct 03, 2011 12:59pm

    Mark Bowen

    12637 posts

    Hi Blake,

    When you say you’ve used the Forum tags to get these parts of the forms, where are you placing those tags?

    Those tags will only work within the forum theme templates and not anywhere else. You’re not trying to do this within a normal template by any chance are you?

    Thanks,

    Mark

  • #5 / Oct 03, 2011 1:51pm

    Podzol

    80 posts

    Hello Mark,
    Thanks for your reply. Yes indeed they are in a regular template. How do I do this within a regular template? I need to match the theme of the user CP with the rest of the site. Another option I suppose is to add a template to the forum templates, but I don’t see that as an option.

    Ideas? Thanks!
    Blake

  • #6 / Oct 04, 2011 10:37pm

    Dan Decker

    7338 posts

    Hi Blake,

    I’m not even sure why what you have been able to do is working at all. This is certainly not a supported scenario. You can modify the existing Member Profile templates to match your design, but the easiest way to accomplish this is by using either Solspace’s User or Zoo’s Visitor. But what you are attempting here is not something we can continue to offer advise on. If you would like, we can keep the discussion going in Community Help.

    Cheers,

  • #7 / Oct 05, 2011 7:43am

    Podzol

    80 posts

    Hi Dan,
    I can be pretty thick at times and am still learning Expression Engine. So I don’t err again, please tell me what is ill advised about what I am trying to do. Thanks. 😊

    Can you tell me where to find the member templates that you mention? I will look into User and Visitor,
    Blake

  • #8 / Oct 05, 2011 8:05am

    Sue Crocker

    26054 posts

    Hi, Blake. See the enclosed screen shot for where to find the templates.

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

ExpressionEngine News!

#eecms, #events, #releases