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.

Display members' profile link and their avatar --but not their email addresses

June 27, 2007 12:14pm

Subscribe [2]
  • #1 / Jun 27, 2007 12:14pm

    probie

    1 posts

    As of now (initially) Members will only be permitted to post comments to Admins/Leaders’ posts. The most important thing is that when they do comment (or anywhere else their username might appear now or in the future), their username should NOT be a link to their email address, but rather to their profile. Is this a matter of switching on/off setting(s) by me, the site Admin? If not, anyone have a link to a good code solution?

    Also, we’d like to at least allow Members’ avatars to appear next to their comments. Any way to do that with flipping of switches? Again, if not, anyone have a good code solution?

    Thanks!

  • #2 / Jun 27, 2007 12:28pm

    Derek Jones

    7561 posts

    probie are you running Core?  If not, you should contact Sales and get a support credit attached to your account for the license you are working on.  I ask because member profiles are not part of Core and I notice you do not have access to the support forums.

    You could simply use the {author_id} variable to build the path, e.g.:

    <a href="http://{path=">{author}</a>
  • #3 / Jun 28, 2007 12:02pm

    probie

    1 posts

    probie are you running Core?  If not, you should contact Sales and get a support credit attached to your account for the license you are working on.  I ask because member profiles are not part of Core and I notice you do not have access to the support forums.

    You could simply use the {author_id} variable to build the path, e.g.:

    <a href="http://{path=">{author}</a>

    I believe we are running the full (non-core) version, but so far I haven’t been able to pry the account/licence info out of our CTO :shut:, so I created this member account so I could at least interact on this forum.

    Also, thank you for the tip, but I’m a little confused about use -or rather, it’s effect. Will it automatically replace all links to members’ emails from their usernames? Or does that depend on where I use the {author_id} ?

  • #4 / Jun 28, 2007 12:13pm

    Derek Jones

    7561 posts

    It depends on where you use it.  Right now in your templates, I imagine that you have {url_or_email_as_author} or a similar variables.  You’d need to replace those with the above.  Oh, and for avatars, have a look at this wiki article: Member Avatars.

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

ExpressionEngine News!

#eecms, #events, #releases