Example #1
0
/**
 * Output the author url of the reply
 *
 * @since bbPress (r2667)
 *
 * @param int $reply_id Optional. Reply id
 * @uses bbp_get_reply_author_url() To get the reply author url
 */
function bbp_reply_author_url($reply_id = 0)
{
    echo esc_url(bbp_get_reply_author_url($reply_id));
}
Example #2
0
/**
 * Return the author url of a topic or reply.
 *
 * Convenience function to ensure proper template functions are called
 * and correct filters are executed. Used primarily to display topic
 * and reply author information in the anonymous user form template-part.
 *
 * @since 2.5.0 bbPress (r5119)
 *
 * @param int $post_id
 *
 * @uses bbp_is_topic_edit()
 * @uses bbp_get_topic_author_url()
 * @uses bbp_is_reply_edit()
 * @uses bbp_get_reply_author_url()
 * @uses bbp_current_anonymous_user_data()
 *
 * @return string The url of the author
 */
function bbp_get_author_url($post_id = 0)
{
    // Define local variable(s)
    $retval = '';
    // Topic edit
    if (bbp_is_topic_edit()) {
        $retval = bbp_get_topic_author_url($post_id);
        // Reply edit
    } elseif (bbp_is_reply_edit()) {
        $retval = bbp_get_reply_author_url($post_id);
        // Not an edit, so rely on current user cookie data
    } else {
        $retval = bbp_current_anonymous_user_data('url');
    }
    return apply_filters('bbp_get_author_url', $retval, $post_id);
}
 public function AddBBPressForumThreadUserRating($author_link, $args)
 {
     RWLogger::LogEnterence('AddBBPressForumThreadUserRating');
     $post_id = 0;
     $defaults = array('post_id' => 0, 'link_title' => '', 'type' => 'both', 'size' => 80, 'sep' => ' ');
     $r = wp_parse_args($args, $defaults);
     extract($r);
     $reply_id = bbp_get_reply_id($post_id);
     RWLogger::Log('AddBBPressForumThreadUserRating', 'post_id = ' . $post_id);
     RWLogger::Log('AddBBPressForumThreadUserRating', 'reply_id = ' . $reply_id);
     if (bbp_is_reply_anonymous($reply_id)) {
         return $author_link;
     }
     $options = array('show-info' => 'false');
     // If accumulated user rating, then make sure it can not be directly rated.
     if ($this->IsUserAccumulatedRating()) {
         $options['read-only'] = 'true';
         $options['show-report'] = 'false';
     }
     $author_id = bbp_get_reply_author_id($reply_id);
     return $author_link . $this->EmbedRatingIfVisible($author_id, $author_id, bbp_get_reply_author_display_name($reply_id), bbp_get_reply_author_url($reply_id), 'user', false, false, false, $options);
 }
			<div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_topic_id() ); ?></div>

			<?php do_action( 'bbp_theme_after_topic_author_admin_details' ); ?>

		<?php endif; ?>

		<?php do_action( 'bbp_theme_after_topic_author_details' ); */
?>

	</div><!-- .bbp-topic-author -->

	 <div class="edited-author">

    <div class="edited-author-name"><a href="<?php 
echo bbp_get_reply_author_url();
?>
"><?php 
echo bbp_get_reply_author();
?>
</a></div>
    <span class="bbp-reply-post-date"><?php 
bbp_reply_post_date();
?>
</span> | <a href="<?php 
bbp_reply_url();
?>
" class="bbp-reply-permalink"> #<?php 
bbp_reply_id();
?>
</a>
Example #5
0
/**
 * Output the author url of the reply
 *
 * @since bbPress (r2667)
 *
 * @param int $reply_id Optional. Reply id
 * @uses bbp_get_reply_author_url() To get the reply author url
 */
function bbp_reply_author_url($reply_id = 0)
{
    echo bbp_get_reply_author_url($reply_id);
}
Example #6
0
 public function AddBBPressForumThreadUserRating($author_link)
 {
     global $post;
     $reply_id = bbp_get_reply_id($post->ID);
     if (bbp_is_reply_anonymous($reply_id)) {
         return $author_link;
     }
     $options = array('show-info' => 'false');
     // If accumulated user rating, then make sure it can not be directly rated.
     if ($this->IsUserAccumulatedRating()) {
         $options['read-only'] = 'true';
         $options['show-report'] = 'false';
     }
     $author_id = bbp_get_reply_author_id($reply_id);
     return $author_link . $this->EmbedRatingIfVisible($author_id, $author_id, bbp_get_reply_author_display_name($reply_id), bbp_get_reply_author_url($reply_id), 'user', false, false, false, $options);
 }