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.

Can I include "articles author has created" on a members profile page?

October 29, 2007 12:54pm

Subscribe [1]
  • #1 / Oct 29, 2007 12:54pm

    Joobs

    362 posts

    I’m creating a community site, where some users will be uploading media such as artwork or music to various weblogs.  I think I can filter down to only showing an authors content by passing their username via the URL.  But it would also be nice if in the forums someone clicked on their profile to list all the articles/weblogs that person has posted.  Is that possible?

  • #2 / Oct 29, 2007 1:10pm

    Robin Sowell

    13255 posts

    It should have a link to click and view all of their entries- basically uses the search module to do it.  Is that enough, or do you need to try and get an actual list in there?  If it’s an actual list- are you using the forum or the regular member profile templates?  Forum it would be easy enough with some php.  Regular templates, I can’t think of a way, and would probably avoid it by creating a ‘pseudo profile page’ in a regular template and handling it there.

  • #3 / Oct 29, 2007 2:18pm

    Joobs

    362 posts

    Well, it could use either the forums or the regular profile templates. I think i would prefer the regular simply because the url makes more sense (i think it’s quite confusing that there is a forums and a regular set of profile templates too).

    I would ideally like it to be the on the same page, I’m a big fan using as few clicks as possible to get to content. After I had posted this I did think of the pseudo profile page idea, but couldn’t find any references on it in the forum. 

    So I assume the pseudo profile template idea would be a case changing any links to “member/id” to a template and pass the user ID as a URL segment, using this to extract the bio, email, website etc?  Can it also extract statistical data or would a query be needed for that?

    Is there any disadvantage of using a pseudo profile template, or anything I should watch out for? I would have thought it’s usage would be popular for community blogs/magazines but I couldn’t find it mentioned anywhere.

    Final question, is there anyway to get this regular template to use the same url as “www.examples.com/member/id” just to keep it consistent with all the other member related urls?

    Thanks

  • #4 / Oct 29, 2007 3:05pm

    Lisa Wess

    20502 posts

    Hi, Joobs,

    The “pseudo profile” page would really depend on what content you wanted on the page.  You would be best to post your goal in the how-to forum for that.

    The member trigger word is reserved for the member profile templates, so you’d need to choose a different template name, there’d be no way to keep them the same.

  • #5 / Oct 30, 2007 5:21pm

    Joobs

    362 posts

    I have a question about making the forum link to the pseudo profiles.  I want the link (that appears on someones username) to point to the new profile template rather than official profile, but ideally I want to do with via someones member_id in the URL rather than username/author name.  Is there anyway to access somones member ID from inside the forum templates, alot of the normal template tags seem to be disabled.

    Feel free to move this to howto, but i suspect an EE staff member knows the answer to this one (I hope it’s not “no, it’s not possible”).

  • #6 / Oct 30, 2007 5:26pm

    Lisa Wess

    20502 posts

    Did you try the various member id variables?

    I am going to move this to how-to as it is more appropriate.  I’d honestly just experiment.  It only takes a few seconds to type those into the template where you want to use them and see which outputs the values you need.

  • #7 / Oct 30, 2007 5:31pm

    Joobs

    362 posts

    Is there a list of the various member id variables?

    I have tried the following:

    {author} - gives the screenname of person who made the post, but I would like member id.
    {author_id} - doesn’t work
    {member} - doesn’t work
    {member_id} - doesn’t work

    Query module doesn’t work
    And php doesn’t seem to work either

  • #8 / Oct 30, 2007 5:33pm

    Lisa Wess

    20502 posts

    The query module won’t work unless you run the forums through the templates as in the Other Features in the docs on the forum module.

    PHP will work, but you need to turn on PHP Parsing for the forum templates - in the Forum Prefs.

    Those are the variables I would have tried as well, so you may be best with one of the other methods.

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

ExpressionEngine News!

#eecms, #events, #releases