Hello all,
I’m using the Threaded Comments plugin; and in the header-bar for each comment (the byline), I want to display the author’s avatar, their username-as-url, and their Twitter and Facebook links (and their site as a standalone link. I really really wish EE could display the {screenname} tag in the comments - no email link, no site link, just a person’s screenname. But that’s another gripe, and there are bigger problems to ask them to fix.)
The Twitter and Facebook links are custom profile fields that I have added.
In addition to the above, if a member is put into the Banned group, I want a message to display saying “(this member has been banned)” instead of whatever spamtastic links they may decide to put into their profile.
I had a solution for a while, but then it stopped displaying the information if a site visitor was logged out. I want this information to display to all visitors, whether they’re logged in or logged out. (I’m doing this to give extra SEO to members who participate - but I need a way to NOT let the spammembers get any SEO. And if I delete their profile they just register with the same email again. It’s frustrating.)
The related thread, and screencaps, is here
The code that I’m currently using - and which is inside the exp:threaded_comments:display tag - is
<div class="commenthead">
{exp:member:custom_profile_data member_id=”{member_id}”}
{if avatar}{avatar_url}{/if}
{if '{group_id}' != '2'}
{url_or_email_as_author}
{if url != ''}<a href="http://{url}" target="_blank" rel="noopener">http://images.sparklecrackcentral.com/site_images/icon_32x32_site.png</a>{/if}
{if twitter != ''}<a href="https://twitter.com/{twitter}" target="_blank" rel="noopener">http://images.sparklecrackcentral.com/site_images/icon_32x32_twitter.png</a>{/if}
{if fb_page != ''}<a href="http://{fb_page}" target="_blank" rel="noopener">http://images.sparklecrackcentral.com/site_images/icon_32x32_facebook.png</a>{/if}
{/if}
{if '{group_id}' == '2'}
{username} (Member has been banned)
{/if}
:: {comment_date format="%Y-%m-%d"}{/exp:member:custom_profile_data}
</div>Got any idea how I can make this stuff work the way I want it to?