Why can’t I use {name} or {membername} in Member Profile Outer Enclosure?
Posted: 06 December 2005 02:16 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  11-10-2005

Just like the title says…

I’m attempting to modify the member templates.  In Member Profile Outer Enclosure, I have a navigation element that shows the logged in user’s name however it’s not being parsed in the member template.  I’ve tried using {name} and {username} both of which fail to parse and just display as-is.

Any idea why this would happen?  If I use {name} in the Breadcrumb template, it works… what’s preventing it from being parsed at a higher level?

Thanks.

Profile
 
 
Posted: 06 December 2005 02:19 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33271
Joined  05-14-2004

The member templates parse only a subset of variables specific to each template, as they are not run through the main template engine.  If you need to be able to use more variables, have a look at eewiki: Member Templates.

 Signature 
Profile
MSG
 
 
Posted: 06 December 2005 02:28 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  11-10-2005

I have to hack back to an early way of handling member templates if I want to be able to display a member’s username in their own profile?

Forgive me if that sounds a little backwards.

Profile
 
 
Posted: 06 December 2005 02:29 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33271
Joined  05-14-2004

You’re trying to display it in the outer enclosure, not in their profile.  If you want it in the public member profile, then you should edit that specific template. =)

I believe that the method for member templates was changed, in part at least, because most people do not need the power of the entire template parser for those particular templates. However, in the case that you do need that power, then you’ll need to use the alternate method.  It is not a hack, either. It is simply a different way of doing things - you aren’t modifying any core files, which is what a hack would entail.

 Signature 
Profile
MSG
 
 
Posted: 06 December 2005 03:27 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  11-10-2005

What type of performance hit (if any) are we looking at if I move the templating for the member areas (both display, and edit) to the non-Admin template area?  We’re talking about a larger site, 3000 - 5000 active members.

Thanks for the help Lisa.

Profile
 
 
Posted: 06 December 2005 03:30 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33271
Joined  05-14-2004

See Paul’s response in this thread.

 Signature 
Profile
MSG
 
 
Posted: 06 December 2005 04:00 PM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  11-10-2005

Whoah, I totally forgot I posted that.

I gotta stop playing Beirut.  Thanks L.

Profile
 
 
Posted: 06 December 2005 05:07 PM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  11-10-2005

OK, so I’m doing it the way suggested in the Wiki and man… this is a pain.  Is there a way to make a template for each section?  In other words, can I add a “Edit Photo” template and use that instead of having to go through the template bits in Admin > Member Templates?  I’m absolutely confused by the 60 different templates and even with the Wiki article explaining them, this is just murder to have to go through.  Creating them from scratch knowing which {tags} I could use would be about 5000 easier.

Profile
 
 
Posted: 06 December 2005 05:14 PM   [ Ignore ]   [ # 8 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  11-10-2005

NM, I think I got it.  You just have to create a template like normal and it should work.

Profile
 
 
Posted: 07 December 2005 12:44 PM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  11-10-2005

Is it possible to use tags like {form:birthday_day} if I transfer the member templates to the normal template area?

Profile
 
 
Posted: 07 December 2005 12:45 PM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33271
Joined  05-14-2004

You’re not transferring all of the templates.  The templates’ll still pull from the member templates (see the {content} in your member/index?).  Does that make sense?

 Signature 
Profile
MSG
 
 
Posted: 07 December 2005 12:53 PM   [ Ignore ]   [ # 11 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  11-10-2005

It makes sense, it’s just really frustrating to have to do it that way.  Where the normal template area is really easy, trying to incorporate the member templates (edit / display) is driving me insane.  Some tags work, some tags don’t.

Anyway, I noticed here that {breadcrumb} is used in the template and that pulls in the breadcrumb template from the Admin Member Template area.  Can I do the same with the “Member Profile Form” ?  I have a template built for the member area and I’m trying to include in the forms and such…

Profile
 
 
Posted: 07 December 2005 12:55 PM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33271
Joined  05-14-2004

Using the member/index method.

When you visit index.php/member/profile - it loads the member/index template but then pulls in the appropriate templates from the membership admin templates.  This is actually a bunch of different, interconnected templates, including but probably not limitd to (as in I’ll probably miss listing): member profile form, member profile menu, member profile home page, etc.  There isn’t really any way that I’m aware of to build your own forms to accomplish these goals.  You need to use the ones delivered from the admin area.

The member/index pulls in those templates based off what is in the URL.  So if you go to member/profile/ it builds the page as a combination of member/index and the appropriate templates in the admin area.  The same goes for all member related links, such as the memberlist, public profiles, etc.

I hope that is making things clearer =)

 Signature 
Profile
MSG
 
 
Posted: 07 December 2005 01:02 PM   [ Ignore ]   [ # 13 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  11-10-2005

It does.  Thank you.

I gotta say though, this area of EE is pretty confusing.  It’d be really nice if the template group stayed in the template area and you had some way of telling it to only process certain templates through the preferences area or something.  Splitting up the templates makes things totally confusing.

Thanks for the help Lisa!

Profile
 
 
Posted: 07 December 2005 01:05 PM   [ Ignore ]   [ # 14 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33271
Joined  05-14-2004

If you have a look at the announcements forum, there is a multi page thread about the control panel demo.  Somewhere in there is an explanation of why the forum and member templates are handled in this manner.  It’s good reading, if you are interested =)

 Signature 
Profile
MSG
 
 
Posted: 07 December 2005 01:09 PM   [ Ignore ]   [ # 15 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  11-10-2005

I’ll take a look.  Thanks Lisa.

This makes things easy now.  I’ve stripped down the Full Profile Page to just {include:content} and now I can handle the actual skeleton template with the normal template area and just manage the forms and such through the Admin Member Template area.

Groovy.  It’s lookin’ sweet!

Profile
 
 
Posted: 09 December 2005 02:35 AM   [ Ignore ]   [ # 16 ]  
Summer Student
Total Posts:  6
Joined  11-12-2005

Thanks for pointing this thread out Lisa.
I’ve done what was described in the Wiki article, I changed the trigger word to memberme, but the “Register” link on the homepage (along with all other member-related links I suppose) still points to index.php/member/register/ wich just gives the index.php page, however, when I change the URL by hand to index.php/memberme/register/, there’s my page. Is there a way to remedy this other then changing all member EE tags by hand?

Profile
 
 
Posted: 09 December 2005 10:06 AM   [ Ignore ]   [ # 17 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  11-10-2005

PT,

Have you created the member template in the regular template section yet?

Profile
 
 
Posted: 31 August 2006 03:45 PM   [ Ignore ]   [ # 18 ]  
Lab Assistant
RankRank
Total Posts:  167
Joined  04-19-2003

Discussion in this thread was based on information that was available here but is no longer available. Is there an alternative method for the new version of EE? We need to be able to customize our member panel area and embed templates that we use as header and footer through out the site.

Thanks for any updates.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66394 Total Logged-in Users: 23
Total Topics: 84721 Total Anonymous Users: 16
Total Replies: 454716 Total Guests: 171
Total Posts: 539437    
Members ( View Memberlist )