Forum Replies Created
-
In this code, what should i add to link the avatar to the user profile (author)?
$user_id = get_the_author_meta(‘ID’);
echo get_avatar($user_id, $size=50);
echo userpro_show_badges($user_id, $inline=true);in reply to: How to link Author Box with author's profile page?I downloaded your changes to the files bbPress and css and it works almost everything but the change is absent for “bbp-notice-template info”, which shows the link to the profile bbPress (version 2.3.2). You can change the link to point to the author’s profile userpro?
In fact, this did not make sense, but that’s what happens if you also set the logout via modal. Instead of linking to logout, to logout page the problem is solved by itself.
Logout via modal redirect to http://www.mysite.com/wp-admin/admin-ajax.php?loggedout=true
Why?For some reason, the string “has update a page” is not fully translated, in my language “Page” is written “Pagina”. In the italian language file, this string is there but in the site “Page” remain in English. Why?
in reply to: String missing in language fileexactly …. thanks for understanding Nexnivis 😉
in reply to: New Update Available – v1.0.86I’ve already reported on this forum: When a user logs in using social networks, can not choose the role (custom) with which to register on my website (which includes a choice of one of two roles defined). Users must choose the role with which they have access to certain content, I need this change. In your plugin, you can only set a default role, I need a user can choose to take effect before that recording on my website.
in reply to: New Update Available – v1.0.86The problem of registration through social networks and the choice of the user role has been resolved?
in reply to: New Update Available – v1.0.86http://codecanyon.net/item/easy-social-share-buttons-for-wordpress/6394476
but I’ve already solved, with a setting of that plugin … there remains the problem of the default role. I can not use the social login on my site, my users should be able to choose the role when they register.
The problem of modal login is not working, after much research is caused by any other social plugins installed in wordpress (addthis, share this, social share, etc.). It is enough to analyze the login page with google chrome to find out: FB.getLoginStatus() called before calling FB.init(). By disabling the plugin social sharing posts, login modal operates again, shame that those plugins are essential for me!
3) I set the login and logout with modal window; I also set it to logout the user to be directed to the homepage. When the user logs out via modal window, it is brought to the home page, but the login page …. is this normal?
I’ve done it! 😀
in reply to: Integrating UserPro with your theme comments!Help me to integrate profiles userpro in this code?
PHP12345678910111213141516171819202122232425262728293031323334353637383940414243<?php if ( ! function_exists( 'et_custom_comments_display' ) ) :function et_custom_comments_display($comment, $args, $depth) {$GLOBALS['comment'] = $comment; ?><li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"><article id="comment-<?php comment_ID(); ?>" class="comment-body clearfix"><div class="comment_avatar"><?php echo get_avatar( $comment, $size = '80' ); ?></div><div class="comment_postinfo"><?php printf( '<span class="fn">%s</span>', get_comment_author_link() ); ?><span class="comment_date"><?php/* translators: 1: date, 2: time */printf( __( 'on %1$s at %2$s', 'Divi' ), get_comment_date(), get_comment_time() );?></span><?php edit_comment_link( esc_html__( '(Edit)', 'Divi' ), ' ' ); ?><?php$et_comment_reply_link = get_comment_reply_link( array_merge( $args, array('reply_text' => esc_attr__( 'Reply', 'Divi' ),'depth' => (int) $depth,'max_depth' => (int) $args['max_depth'],) ) );?></div> <!-- .comment_postinfo --><div class="comment_area"><?php if ( '0' == $comment->comment_approved ) : ?><em class="moderation"><?php esc_html_e('Your comment is awaiting moderation.','Divi') ?></em><br /><?php endif; ?><div class="comment-content clearfix"><?phpcomment_text();if ( $et_comment_reply_link ) echo '<span class="reply-container">' . $et_comment_reply_link . '</span>';?></div> <!-- end comment-content--></div> <!-- end comment_area--></article> <!-- .comment-body --><?php }endif;in reply to: Integrating UserPro with your theme comments!PHP1234567891011121314151617181920212223if ( ! function_exists( 'et_postinfo_meta' ) ) :function et_postinfo_meta( $postinfo, $date_format, $comment_zero, $comment_one, $comment_more ){global $themename;$postinfo_meta = '';if ( in_array( 'author', $postinfo ) )$postinfo_meta .= ' ' . esc_html__('by',$themename) . ' ' . et_get_the_author_posts_link() . ' | ';if ( in_array( 'date', $postinfo ) )$postinfo_meta .= get_the_time( $date_format ) . ' | ';if ( in_array( 'categories', $postinfo ) )$postinfo_meta .= get_the_category_list(', ') . ' | ';if ( in_array( 'categories', $postinfo ) )$postinfo_meta .= get_the_term_list( $post->ID, 'genere', ' ', ', ', '' ) . ' | ';if ( in_array( 'comments', $postinfo ) )$postinfo_meta .= et_get_comments_popup_link( $comment_zero, $comment_one, $comment_more );echo $postinfo_meta;}here is the code that draws the columns to display in the meta post
in reply to: Author post link to profile