Hello,
I don’t know if this issue is related to this or not:
http://devot-ee.com/add-ons/support/threaded-comments/viewthread/5349
But what I’m trying to do is essentially create an enhanced commenter byline:
if a particular commenter is not banned (group_id is anything but 2), display the commenter’s URL, Twitter, FB, and other information pulled from the commenter’s member profile
if a particular commenter is Banned (group_id = 2_, instead display the byline-message “This member has been banned for violating community guidelines”
The code I’m trying to use is
{exp:member:custom_profile_data} {if group_id != '2'}{url_or_email_as_author} {if url != ''}<a href="{url}" target="_blank">site</a>{/if} {if twitter != ''}<a href="https://twitter.com/{twitter}" target="_blank">Twitter</a>{/if} {if fb_username != ''}<a href="{fb_username}" target="_blank">FB</a>{/if} {/if} {if group_id == '2'}{username} (Member has been banned for violating community guidelines){/if} :: {comment_date format="%Y-%m-%d"}{/exp:member:custom_profile_data}
The correct member data is pulled and displayed, for each commenter. However, the member data is pulled and displayed even if the commenter is Banned (group_id == 2). I’ve checked with the folks in the EE support forum, and either I’m miscommunicating what I want to do…or the tag isn’t working as expected, inside the exp:threaded_comments:display tag pair.
Am I just using the wrong syntax?
|