Jump to content


Photo
- - - - -

Author photo on excerpt


  • Please log in to reply
3 replies to this topic

#1 phaseonecg

phaseonecg

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 16 February 2011 - 09:46 PM

I'm using PlatformBase. Is there a way to show the author's photo "profile picture" to show on the excerpt? I want it to show either on the top right or top left side, this is our blog home page

Please Login or Register to see this Hidden Content

and if you take the example from the second post I can see the author's picture once I click on the post and read in full view

Please Login or Register to see this Hidden Content

In addition to that when I read the Author's profile on the right sidebar and click on "Read full" the URL points to

Please Login or Register to see this Hidden Content

which is supose to be the complete author's profile but instead in send me to all the posts by that author. Any help can be really appreaciated, I've searched all the forums in here and have found great answers for other issues except for this one. Thanks,

#2 Kate

Kate

    Advocate

  • Members
  • 3039 posts

Posted 17 February 2011 - 01:58 PM

Hi Raul - The issue is that the blog could have multiple authors. So, unless you hardcode the desired author's ID in, it will just use the first author's info (if any), I believe. Did you add in that "Read full"? It's actually functioning correctly... that URL is saying to get the posts by that author.

#3 phaseonecg

phaseonecg

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 02 March 2011 - 08:42 PM

Hi Kate, you're correct on the "Read full" function, after more research I found out that if you wanted to have a page to display the author's profile you will need to modify the template. As for the multiple author's function, it only shows me one option to select the author's post, so I should be able to include the author's profile picture next to the "by author's name"

#4 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts
  • Country: Country Flag

Posted 02 March 2011 - 09:54 PM

The author template in this case works how it's supposed to, you would have to modify the section.postauthor.php file or add hooks to add the author info at the top of that template. Something like this: `
post_author), $size = '150', $default = CORE_IMAGES. '/avatar_default.gif' ); ?>

post_author); ?>




` of course this is what goes inside of the hook