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.

Member Profile Templates and how to customize them...

February 26, 2012 4:42pm

Subscribe [3]
  • #1 / Feb 26, 2012 4:42pm

    R.K.Foster

    138 posts

    Okay, so I decided to take the leap and setup some custom Member Profile Templates. I copied themes/profile_themes/default into a new directory and I’m able to select the theme in the Membership Preferences. I’ve been reviewing the templates and find a number of these:

    {include:head_extra}
    {include:stylesheet}

    That seems to be pretty straight forward but I can’t find where these includes are defined. Where is “head_extra” for example? It’s not another file in the profile theme directory. Can anybody point me to where these includes are and how to edit them?

    Thanks,
    Bob.

  • #2 / Feb 27, 2012 2:26am

    Spikechu

    49 posts

    Hey

    {include:head_extra}
    is the page_header or sub_header file in the profile theme

    {include:stylesheet}
    is the stylesheet.html file in the profile theme

  • #3 / Feb 27, 2012 2:54pm

    Shane Eckert

    7174 posts

    Hello R.K.Foster,

    Thank you for posting your question.

    Spikechu is right on the money. Those are just includes and can be found within the themes folder.

    I am sure you have seen this, but just in case, check out this link.

    I hope this helps. Is there anything else I can help you with?

    Cheers,

  • #4 / Feb 27, 2012 5:22pm

    R.K.Foster

    138 posts

    Hey

    {include:head_extra}
    is the page_header or sub_header file in the profile theme

    Spikechu, thanks for the help. It actually looks like “page_header” is “page_header.html” and “sub_header” is “page_sub_header.html” in the member profile templates. Still haven’t found “head_extra” yet. In most of the templates head_extra is embedded in the html head section.

    Shane, thanks for the link. That is where I started. It’s a little difficult to match up the templates with the web page that shows up on the site but I’m slowly learning my way through it.

    One main question I have, is there a way to prevent the display of the Member List? I’d like to put a warning text in the template for people that aren’t members that says “Sorry you can’t look at that”. I tried using:

    {if member_group == '1'}
    show the member list
    {/if}

    but that didn’t seem to work.

    Thanks,
    Bob

  • #5 / Feb 27, 2012 6:55pm

    Spikechu

    49 posts

    Hey,

    Your Welcome R.K Foster.

    regarding “head_extra” i believe that is what is in the page_sub_header.. i remember removing the {head_extra}and the stuff from page_sub_header was gone.. Shane may have a better answer.. but i just trialed and error-ed that theme to find out what was attached to what.. it is a little confusing at first.

    Now regarding the memberlist.
    if you go to Member Group “Guests” Settings > Member Account Privileges > Can view public profiles

    you can change who can see memberlist and who cannot.

    hope that helps.
    -Jon

  • #6 / Feb 27, 2012 9:22pm

    R.K.Foster

    138 posts

    Thanks, Jon

    I’ve been making pretty good progress with this. I have to say that it helps greatly to have the default Member Profile Templates to work with.

    Another question I’ve come up with if anyone knows the answer. We’re using a bunch of custom member fields to manage some preferences but I’d rather these didn’t show up on the Member Profile page. You can prevent them from showing on the registration page but it seems there isn’t a way to keep them off of the Member Profile page. Any tips, suggestions, advice, etc…

    Thanks.
    Bob.

    (addendum: I can keep them off of the public member profile but what I want is to not let the member edit them on their own profile page.)

  • #7 / Feb 27, 2012 10:08pm

    Spikechu

    49 posts

    Glad you are starting to get somewhere.. it took me awhile believe me.. i was looking at my computer scratching my head. Once you get the hang of how its laid out, it starts to come together.

    There should be a field in the member fields when you create them

    Is this field visible in public profiles?

    Is field visible in registration page?

    Is field visible in the control panel’s administrative registration page?


    unless i am messing something, is that what you are looking for?

  • #8 / Feb 28, 2012 12:43pm

    Shane Eckert

    7174 posts

    Hello R.K.Foster,

    Would you like me to move this thread over to the Community Help Forum?

    This would get more eyes on your thread and more ideas and experience contributing to your project.

    Let me know!

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases