Forum Replies Created
-
Can userpro be synced with the Envato WordPress Toolkit plugin. (Auto-Update)
in reply to: New Update Available – v1.0.87I’ve not worked with “if” before…
Hope you can help.
in reply to: Why is this duplicating ?So I’m wanting to add this code…
<?php foreach( get_coauthors() as $coauthor ) : ?>
<div id=”authorinfo” class=”columns alpha omega marT30 marB20″>
permalink( $coauthor->ID ); ?>”><?php echo get_avatar( $coauthor->user_email, ’80’ ); ?>
<h5 class=”marB10″>permalink( $coauthor->ID ); ?>”><?php echo $coauthor->display_name; ?></h5>
<div class=”clear”></div>
</div>
<?php endforeach; ?>to this ….
if ($show_details == “yes” && $post_format != “quote” && $post_format != “link”) {
if ($single_author && !$remove_dates) {
$post_item .= ‘<div class=”blog-item-details”>’. sprintf(__(‘%1$s’, ‘swiftframework’), $post_date) .'</div>’;
} else if (!$remove_dates) {
$post_item .= ‘<div class=”blog-item-details”>’. sprintf(__(‘%1$s on %3$s’, ‘swiftframework’), $post_author, get_author_posts_url(get_the_author_meta( ‘ID’ )), $post_date) .'</div>’;
} else if (!$single_author) {
$post_item .= ‘<div class=”blog-item-details”>’. sprintf(__(‘%1$s‘, ‘swiftframework’), $post_author, get_author_posts_url(get_the_author_meta( ‘ID’ ))) .'</div>’;
}
}in reply to: Why is this duplicating ?Can you send that code in an email, as it keeps on hyperlinking.
I want to make the link go to user profile, and not user website url.
in reply to: Why is this duplicating ?Hey Ahmed,
Wonder if you can help me figure out where how to hyperlink the author link to their profile.
It currently links to get_author_urlif ($single_author && !$remove_dates) {
$post_item .= ‘<div class=”blog-item-details”>’. sprintf(__(‘%1$s’, ‘swiftframework’), $post_date) .'</div>’;
} else if (!$remove_dates) {
$post_item .= ‘<div class=”blog-item-details”>’. sprintf(__(‘By %1$s on %3$s’, ‘swiftframework’), $post_author, get_author_posts_url(get_the_author_meta( ‘ID’ )), $post_date) .'</div>’;
} else if (!$single_author) {
$post_item .= ‘<div class=”blog-item-details”>’. sprintf(__(‘By %1$s‘, ‘swiftframework’), $post_author, get_author_posts_url(get_the_author_meta( ‘ID’ ))) .'</div>’;in reply to: Why is this duplicating ?The three main features I’d like are;
+ Gallery Plugin
+ Posts on profile ( next to followers/following)
+ Auto update via the Envato Toolkitin reply to: New Update Available – v1.0.87I wish this was added to the Envato WordPress Toolkit, so I can simply press automatic update 🙂
in reply to: New Update Available – v1.0.87I’m trying to do this ;
By Author ( link to userpro profile )
I’m using a coauthor plugin to display more than one author though.
in reply to: Why is this duplicating ?<?php foreach( get_coauthors() as $coauthor ) : ?>
<div id=”authorinfo” class=”userpro-profile-img-after”
?php echo $coauthor->userpro_author_url; ?>”><?php echo get_avatar( $coauthor->user_email, ’80’ ); ?>
<h5 class=”marB10″><?php _e(‘By’, ‘contempo’); ?>: =”<?php echo $userpro->permalink($user_id); ?>”><?php echo $coauthor->display_name; ?>
<div class=”clear”></div>
</div>
<?php endforeach; ?>
</div>I’ve taken out the href hyperlinks.
in reply to: Why is this duplicating ?I’m trying to hyperlink to user profile pages instead of author pages ; however when I added the link , it just goes to /profile instead of profile/username
in reply to: Why is this duplicating ?I’ve got everything working. It’s just the hyperlinks aren’t
<?php foreach( get_coauthors() as $coauthor ) : ?>
<div id=”authorinfo” class=”userpro-profile-img-after”>
userpro_author_url; ?>”><?php echo get_avatar( $coauthor->user_email, ’80’ ); ?>
<p class=”marB10″><?php _e(‘By’, ‘contempo’); ?>: permalink($user_id); ?>”><?php echo $coauthor->display_name; ?></p>
<div class=”clear”></div>
</div>
<?php endforeach; ?>
</div>in reply to: Why is this duplicating ?Ahmed can you show me how I can add a user avatar and link to profile with this code;
<?php
global $userpro; if ( function_exists( ‘coauthors_posts_links’ ) ) {
coauthors_posts_links();
} else {
the_author_posts_link();
}
?>in reply to: Why is this duplicating ?Very Fair.
Happy to do this! +1 I’ve already purchased all plugins and add-ons! 😀
@andy999 – you sound like a bit of a hacker 😀
in reply to: Feature Request : Report / Block Users