Please or Register to create posts and topics.

Add links to your profile

Page 1 of 2Next

To do this you just have to add this code to your themes functions.php file:

add_action('asgarosforum_after_post_author', 'my_function_asgaros_cabinet', 10, 1);
function my_function_asgaros_cabinet($author_id) {

  echo '......';

}

Example of for the plugin WP-RECALL(not full excerpt):

add_action('asgarosforum_after_post_author', 'my_function_asgaros_cabinet', 30, 1);
function my_function_asgaros_cabinet($author_id) {
  echo '<a href="'.get_author_posts_url($author_id).'" title="'.__('Profile','rcl-asgaros').'"><i style="color:'.$rcl_options['color_font_icon'].';" class="fa fa-user"></i></a>
  <a href="'.rcl_format_url(get_author_posts_url($author_id),'chat').'" title="'.__('Private message','rcl-asgaros').'"><i style="color:'.$rcl_options['color_font_icon'].';" class="fa fa-comment"></i></a>
  <a href="'.rcl_format_url(get_author_posts_url($author_id),'recall').'" title="'.__('Reviews','rcl-asgaros').'"><i style="color:'.$rcl_options['color_font_icon'].';" class="'.$rcl_options['icon_enable_recall'].'"></i></a>
  <a href="'.rcl_format_url(get_author_posts_url($author_id),'groups').'" title="'.__('Groups','rcl-asgaros').'"><i style="color:'.$rcl_options['color_font_icon'].';" class="'.$rcl_options['icon_enable_groups'].'"></i></a>
  <a href="'.rcl_format_url(get_author_posts_url($author_id),'publics').'" title="'.__('Publications','rcl-asgaros').'"><i style="color:'.$rcl_options['color_font_icon'].';" class="'.$rcl_options['icon_enable_publics'].'"></i></a></span>';

}

Good luck 🙂

Hi,

What about adding a link to user name/avatar to go to that persons profile?

thanks,

Pete

Hi hardpeter,

Link on behalf of the:

function my_filtered_post_username($username, $userID) {
  return '<a href="MY_CUSTOM_LINK">'.$username.'</a>';
}
add_filter('asgarosforum_filter_post_username', 'my_filtered_post_username', 10, 2);

 

I like this, wish I could add it to mine.

Thanks a lot!!  Much appreciated

Hello

First, thank you for this great plugin :- )
Is it possible to link a user picture or username to a users personel profilepage (created by the plugin “Ultimate Member”), when they have written a post in the forum?

For excample.: My personel memberprofile is found on http://rejser.ivanfraer.dk/user/ivan-fraer/

Uploaded files:
  • Screenshot-2017-05-06-at-16.07.23.png

How can this be done for Buddypress profiles? Would love to see something like this in the next release.

Hello everyone,

you can use the asgarosforum_filter_post_username filter to build a link around usernames.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

ok so im a little lost. I want to be able to have users add a profile pic (at least). I was using buddy press but it was acting really jacked up on my site. I guess the plugin didn’t work together. what code is needed so I can have my users upload a profile photo. I read the other responses. just not sure where to begin.

Hello aesmartin,

I can recommend you the following plugin:

Simple Local Avatars

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
Page 1 of 2Next