How to integrate with user author based theme? – UserPro Forums https://forum.userproplugin.com/forums/topic/how-to-integrate-with-user-author-based-theme/feed/ Sun, 05 May 2024 20:34:15 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/how-to-integrate-with-user-author-based-theme/#post-22202 <![CDATA[How to integrate with user author based theme?]]> https://forum.userproplugin.com/forums/topic/how-to-integrate-with-user-author-based-theme/#post-22202 Fri, 21 Feb 2014 00:46:14 +0000 mediakliqco Basically I have a theme that post with author ?author=1 except for the posting functionality I want to control everything else like profile photo followers/following …etc with userpro. I have successfully gotten the profile photos to work but what’s happening at times if logged in as user A looking at user B, user B adopts some info from user A’s information. Here are some get codes I’m working with

Theme’s author code: <?php if ( is_user_logged_in() ) {
global $current_user; get_currentuserinfo(); ?>

This is where the issue with user A looking at user B … user B info adopts user A’s. For example if ?author=1 has 1 post the count is correct when looking at user ?author=1 but if user ?author=1 is looking at user ?author=2 which my have 6 post it shows the count total of user ?author=1 instead.

I’ve tried <?php if ( is_user_logged_in() ) {
global $userpro; get_currentuserinfo(); ?>

But then it does show the correct info for any of the ?author’s=

Another issue is I’ve placed userpro shortcode template view on theme’s author default profile page it shows up fine but if I click edit profile that loads fine but if I click view profile then, the profile photo goes to default placeholder and if I refresh the page it then shows uploaded profile photo.

Thanks

]]>
https://forum.userproplugin.com/forums/topic/how-to-integrate-with-user-author-based-theme/#post-22228 <![CDATA[Reply To: How to integrate with user author based theme?]]> https://forum.userproplugin.com/forums/topic/how-to-integrate-with-user-author-based-theme/#post-22228 Fri, 21 Feb 2014 06:07:17 +0000 admin The post is a little confusing can you please add some more info (perhaps a screenshot or two?) Basically I can’t get what the issue is really 🙂

]]>