I’m at a loss for working on member templates - because I’ve just spent way too long on a member template for a site and it was/is driving me mad. Does it work? Yeah, but what I’ve done just seems so non-EE and…dirty. This is a call for help or advice on what others have done when developing member templates - either the stock ones or totally custom versions. I think I’m about to write a small book, but any responses as to how you have attacked similar problems, no matter how brief, would be appreciated.
Here’s my situation on this site:
1. I have members. There are 3 extra custom profile fields I’ve added to the members page:
- First Name
- Last Name (separating these really helps sorting member lists by last name…how else would one do that?)
- a dropdown for three different types of member that has no effect on member groups or permissions
Basically the only thing a member entry does on this site is tell you what permissions you have (Super-Admin, Member, etc)
2. I have a members weblog that I call “Extended Member Info”. Entries here relate to a single member. I have a number of fields in here:
- Bio (with Textile formatting)
- hobbies, sponsors, join date, etc etc. Lots of extra info.
There is one field called “Member ID” for which I developed a custom extension called “Related Member” (based largely in part on Robin Sowell’s related gallery extension). What that does is make a dropdown and pull from members any member who does not already have an entry in this extended weblog. If they do already have an entry, this will not show as a drop down, but as text showing the name and ID of the member this entry belongs to. That way you can never duplicate a member in this weblog. (see attached pics). Is there a better or more efficient way to do that?
3. I have a weblog for Executive Positions. These would include President, Vice President, Executive Director, etc. There is basically one field in each entry in this weblog - and that’s a relationship to an entry in the Extended Info weblog.
So, I can have a member called John Smith, who has all his extended info stored in an entry called “John Smith” in the extended info weblog, and he also happens to be the President of the organization.
I really don’t think I can do what I need to do on a page with the default member templates, so I’ve constructed a template manually with the query module. I’m using the method discussed on this thread: “[Solved] Custom member templates using {include:content …hack?” and the directions for which are found in more detail at over this this thread and outlined by smallbeer to at least hide or “disable” the EE-driven member template. To sum that up, I’ve changed the profile triggering word to something that no one will guess, to essentially disable EE’s built-in member template.
Why did I do all this?
1. I don’t find the custom profile fields robust enough. I needed to add a date field for each member, and I want to be able to control formatting on each field just as I do on regular weblog entries. Therefore, I thought it best to put any extra fields possible into a related weblog - that has a single entry for each member. So, a member on my site has a member entry, but also has an entry in a weblog called “Extended Member Info”, which contains many more fields, including date fields, etc.
2. I’m not sure the default member profile template can embed or include content from anywhere else. Can I embed a template in the default EE member template that has info pulled from a related weblog entry about the member I’m viewing?
3. I want my URLs to have the member’s name. I am just NOT a fan of numbers in the url that don’t describe what’s on the page, especially if I am able to do so. I personally would much rather see:
http://www.site.com/members/john_smith/
than
http://www.site.com/members/13/
4. An article written in the articles weblog can relate to a member or members. I know I can relate a weblog entry to another weblog entry, or even multiple other entries using Mark Huot’s multi-relation extension, but can I relate an article to a member or multiple members? With my method I know for sure I can relate a single article to 2-3 entries in the Extended Info weblog.
Why is all this not cool?
1. Major query module usage. Not a big deal, because that’s what the query module is there for, but a major shot to the productivity on this site as I work out these crazy queries in Navicat, and then have them sitting there all ugly on my template.
2. There may be an easier way. If there is, and I don’t jump off the roof first after hearing about it, I’ll be grateful for whoever pointed me in the right direction. Lisa. Derek. Sue. Ingmar. Others too numerous to name. *ahem* Anyone…
If there’s one thing I’ve learned using EE, it’s that the more I learn, the less I know, which I think is a good thing. I just think I need a little advice from more seasoned pros on how to handle member templates, relating members to entries, and storing lots of custom member info. Thanks.
