We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Avatar display issue - Solspace Rating Module

Development and Programming

Erik Michael's avatar
Erik Michael
8 posts
17 years ago
Erik Michael's avatar Erik Michael

The following code displays the SAME avatar, author name, etc. for all rating/review entries. However, each entry is created by a different or unique author. Any thoughts?

{exp:rating:entries limit="10"} 
  
{stars}{rating}{/stars} 
<a href="/user/edit/{rating_author_id}">{screen_name}</a> 

{exp:member:custom_profile_data member_id="{rating_author_id}"}
{if avatar}
{avatar_url}
{/if}
{/exp:member:custom_profile_data}

Date: {rating_date format="%m/%d/%y"} 
Review: {review}
       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
17 years ago
Ingmar Greil's avatar Ingmar Greil

Erik, unfortunately we cannot provide support for third party modules. I am going to move this down to “Modules”, and advise you to ask for assistance in Solspace’s own forums.

       
Max Lazar's avatar
Max Lazar
337 posts
17 years ago
Max Lazar's avatar Max Lazar

try this:

{exp:rating:entries limit="10"}
  
{stars}{rating}{/stars}
<a href="/user/edit/{rating_author_id}">{screen_name}</a>
{if rating_author_id!=0}
{exp:query sql="SELECT avatar_filename, avatar_width, avatar_height FROM au_members WHERE member_id = {rating_author_id}"}
{if avatar_filename !=""}
{avatar_url}{avatar_filename}
{if:else}
<img src="http://www.yoursite.com/themes/forum_themes/default/images/icon_profile.gif" alt=""  />
{/if}        
{/exp:query} 
{if:else}
<img src="http://www.yoursite.com/themes/forum_themes/default/images/icon_profile.gif" alt=""  />
{/if}

Date: {rating_date format="%m/%d/%y"}
Review: {review} 

{/exp:rating:entries}

22.07.2008: update

       
Erik Michael's avatar
Erik Michael
8 posts
17 years ago
Erik Michael's avatar Erik Michael

Hey there MaxUp… thanks for the reply! Nice to see a new way to approach it.

I did get this to work by pulling the ratings tag outside the weblog entries tag.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.