-
Hello,
I wanted to frame this question, although it is actually to serve to specific purposes:
1. Linking to a user profile from the “Recent Topics” bbPress widget: http://screencast.com/t/Ko29bZ1NF
Live section on my site: http://www.newmediawarrior.net/discussions/
and
2. Liking to a user profile from user comment widget: http://screencast.com/t/9TqSaD8kh
Live section where you can click on the user: http://www.newmediawarrior.net/2014/02/3-leading-reasons-for-the-disappearance-of-bees/
I have installed the Commentator plugin, because it promises integration with UserPro, I was surprised the plugin did not come with a widget of its own, and also surprised the comments do not show in the activity (however this I am asking the Commentator support), the idea is how to link the user to the right UserPro profile. I am using the “Advance Comments” widget: http://codecanyon.net/item/advanced-comments-widget/608475?WT.ac=solid_search_item&WT.seg_1=solid_search_item&WT.z_author=zourbuth
I believe, if there is a knowledge to make this integrate, i.e. finding the right snippet to replace in whichever situation, it would be easier, and if anyone know why or how the Commentator plugin can show comments on the Activity page, I would appreciate the guidance.
Thank you!
To link to a user profile, use the API
global $userpro;
// example of profile link
$link = $userpro->permalink($user_id);That’s it
Thanks, as I am new in implementing this API, do you mind giving me more guidance? Here is the code for the Advanced Comment widget:
Where do I insert this modification?
I added
global $userpro;
after the “<?php” tag above.It’s outside my support scope really. Find the part that links to user profile, and integrate basic php .. It’s not so hard 🙂 this should display the permalink:
$userpro->permalink($user_id_here);
Please just find where to put it in your code. And it will work
You must be logged in to reply to this topic.