<?php echo ($comment->user_id == 1 ? 'Administrator' : ($comment->user_id == 43&&37 ? 'Moderator' : get_user_field('s2member_access_label', $comment->user_id))); ?>
Statistics: Posted by s2pidkaspr — January 1st, 2012, 12:09 am
Statistics: Posted by Cristián Lávaque — December 30th, 2011, 12:46 am
<?php echo ($comment->user_id == 1 ? 'Administrator' : ($comment->user_id == 43 ? 'Moderator' : get_user_field('s2member_access_label', $comment->user_id))); ?>
Statistics: Posted by s2pidkaspr — December 29th, 2011, 5:25 pm
Statistics: Posted by s2pidkaspr — December 28th, 2011, 6:47 pm
Statistics: Posted by Cristián Lávaque — December 26th, 2011, 5:13 pm
Statistics: Posted by peeld — December 26th, 2011, 4:47 pm
<?php echo get_user_field('s2member_access_label', bp_get_activity_user_id()); ?>
Statistics: Posted by peeld — December 26th, 2011, 4:35 pm
<?php echo get_user_field('s2member_access_label', bp_get_activity_comment_user_id()); ?>
Statistics: Posted by Cristián Lávaque — December 26th, 2011, 5:15 am
Statistics: Posted by Cristián Lávaque — December 26th, 2011, 5:11 am
Statistics: Posted by peeld — December 23rd, 2011, 5:19 pm
Statistics: Posted by s2pidkaspr — December 23rd, 2011, 5:03 pm
<?php
/**
* BuddyPress - Activity Stream Comment
*
* This template is used by bp_activity_comments() functions to show
* each activity.
*
* @package BuddyPress
* @subpackage bp-default
*/
?>
<?php do_action( 'bp_before_activity_comment' ); ?>
<li id="acomment-<?php bp_activity_comment_id(); ?>">
<div class="acomment-avatar">
<a href="<?php bp_activity_comment_user_link(); ?>">
<?php bp_activity_avatar( 'type=thumb&user_id=' . bp_get_activity_comment_user_id() ); ?>
</a>
</div>
<div class="acomment-meta">
<?php
/* translators: 1: user profile link, 2: user name, 3: activity permalink, 3: activity timestamp */
printf( __( '<a href="%1$s">%2$s</a> replied <a href="%3$s" class="activity-time-since"><span class="time-since">%4$s (VIEW)</span></a>', 'cc' ), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_thread_permalink(), bp_get_activity_comment_date_recorded() );
?>
·
<?php if ( is_user_logged_in() && bp_activity_can_comment_reply( bp_activity_current_comment() ) ) : ?>
<a href="#acomment-<?php bp_activity_comment_id(); ?>" class="acomment-reply bp-primary-action" id="acomment-reply-<?php bp_activity_id() ?>-from-<?php bp_activity_comment_id() ?>"><?php _e( 'Reply', 'cc' ); ?></a>
<?php endif; ?>
·
<?php if ( bp_activity_user_can_delete() ) : ?>
<a href="<?php bp_activity_comment_delete_link(); ?>" class="delete acomment-delete confirm bp-secondary-action" rel="nofollow"><?php _e( 'Delete', 'cc' ); ?></a>
<?php endif; ?>
</div>
<div class="acomment-content"><?php bp_activity_comment_content(); ?></div>
<div class="acomment-options">
</div>
<?php bp_activity_recurse_comments( bp_activity_current_comment() ); ?>
</li>
<?php do_action( 'bp_after_activity_comment' ); ?>
Statistics: Posted by peeld — December 23rd, 2011, 4:58 pm
Statistics: Posted by s2pidkaspr — December 23rd, 2011, 12:02 pm
Statistics: Posted by Cristián Lávaque — December 23rd, 2011, 3:05 am
Statistics: Posted by Cristián Lávaque — December 23rd, 2011, 3:00 am
Statistics: Posted by s2pidkaspr — December 22nd, 2011, 9:58 pm
Statistics: Posted by peeld — December 22nd, 2011, 8:38 pm
Statistics: Posted by s2pidkaspr — December 22nd, 2011, 6:28 pm
Statistics: Posted by peeld — December 21st, 2011, 2:50 pm
<?php echo ($comment->user_id == 1 ? 'Administrator' : get_user_field('s2member_access_label', $comment->user_id)); ?>
Statistics: Posted by s2pidkaspr — December 21st, 2011, 11:50 am
<?php echo $comment_author_access_label = get_user_field('s2member_access_label', ($comment->user_id)); ?>
<?php echo get_user_field('s2member_access_label', $comment->user_id); ?>
<?php echo ($comment->user_id == 1 ? 'Administrator' : get_user_field('s2member_access_label', $comment->user_id)); ?>
Statistics: Posted by Cristián Lávaque — December 21st, 2011, 4:37 am
s2pidkaspr wrote:
But just to make it more detailed, i want users to know who is commenting, it may be a staff or just a regular/upgraded member. You get what i mean? So i'm hoping to use "s2member_access_role" instead for that. If ever its not possible to do what i want, then i think i'm going to stick using "s2member_access_label" which works fine to me.
s2pidkaspr wrote:
Again, thank you Christian and more power to s2member.Great support!
Statistics: Posted by Cristián Lávaque — December 21st, 2011, 4:24 am
Statistics: Posted by peeld — December 20th, 2011, 10:49 pm