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.

Comments in Member Profile Templates?

June 21, 2009 4:14am

Subscribe [1]
  • #1 / Jun 21, 2009 4:14am

    mayest

    293 posts

    I’m editing the member profile templates, and there are some items that I would like to comment out. Specifically, in the Breadcrumb template, I want to get rid of the Member List link. Here’s the code:

    <span class="default"><a href="http://{path=member/memberlist}">{lang:memberlist}</a></span>
    
     | 

    I’ve tried to use regular EE comments {!-- --} and also PHP/CSS type comments /* */. They are ignored completely and show up as if they were regular text that I have added. Is it possible to use comments in these templates?

    I can just delete those lines and it works as if I had commented them out. However, I’d rather use comments so that I can easily add that link back in if I decide to do that one of these days.

  • #2 / Jun 21, 2009 5:58pm

    Greg Aker

    6022 posts

    Have you tried standard html comment tags?  Are you editing the templates in the control panel, or in the file itself?

    -greg

  • #3 / Jun 21, 2009 7:18pm

    mayest

    293 posts

    Greg,

    Of course I didn’t try regular HTML comments. Why would I do that with all of the goodness of the EE comment tags?

    Now that I HAVE tried them, I see that they work quite well. 😊

    I hate it when the solution is so obvious.

    Much appreciated!

    Can I squeeze in another question? When I log in as a regular user and go to the front end member profile file and click Edit Profile, I’m not seeing all of my custom profile fields. I get only three of them instead of all 8 of them. I don’t know why these 3 are showing up and the others aren’t.

    When I look at the Member Profile Form template (in the CP), I see that it has table rows defined for the standard fields, and then it has {custom_profile_fields} to show my custom fields. So, why doesn’t it display them all?

  • #4 / Jun 21, 2009 9:48pm

    mayest

    293 posts

    Never mind my second question. I found a mention in an old thread (here) that fixed the problem. It turns out that calls to {custom_profile_fields} only show the publicly available custom fields. Makes sense, so I changed the ones that I need to be publicly available. I never show them to anybody other than myself and the member anyway, so it doesn’t hurt anything.

    Thanks again. You can close this thread.

  • #5 / Jun 22, 2009 1:33am

    John Henry Donovan

    12339 posts

    Glad Greg was able to point out the obvious 😊Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases