postsbyuser appears below login form in profile page – UserPro Forums https://forum.userproplugin.com/forums/topic/postsbyuser-appears-below-login-form-in-profile-page/feed/ Thu, 16 May 2024 00:02:52 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/postsbyuser-appears-below-login-form-in-profile-page/#post-20688 <![CDATA[postsbyuser appears below login form in profile page]]> https://forum.userproplugin.com/forums/topic/postsbyuser-appears-below-login-form-in-profile-page/#post-20688 Tue, 11 Feb 2014 04:38:13 +0000 ericdude I added [userpro template=postsbyuser] to the profile page to display posts by users, and discovered that if you’re not logged in and at the profile page at example.com/profile/, posts will appear below the login form. I fixed this by editing userpro/templates/postsbyuser.php

In line 3, Replace this:
if ($post_query->have_posts() )

with this:
if ($post_query->have_posts() && ($userpro->permalink($user_id) != get_permalink()) )

]]>
https://forum.userproplugin.com/forums/topic/postsbyuser-appears-below-login-form-in-profile-page/#post-20700 <![CDATA[Reply To: postsbyuser appears below login form in profile page]]> https://forum.userproplugin.com/forums/topic/postsbyuser-appears-below-login-form-in-profile-page/#post-20700 Tue, 11 Feb 2014 10:58:36 +0000 admin Do you mind taking a moment to verify your purchase? http://userproplugin.com/userpro/profile/edit/

Also the problem is not clear to me, I am sorry ๐Ÿ™‚

]]>
https://forum.userproplugin.com/forums/topic/postsbyuser-appears-below-login-form-in-profile-page/#post-23530 <![CDATA[Reply To: postsbyuser appears below login form in profile page]]> https://forum.userproplugin.com/forums/topic/postsbyuser-appears-below-login-form-in-profile-page/#post-23530 Fri, 28 Feb 2014 08:31:42 +0000 tronkybs I have the same problem. If a user is not logged in goes to http://www.mysite.com/profile page, below the login form sees the post …

]]>
https://forum.userproplugin.com/forums/topic/postsbyuser-appears-below-login-form-in-profile-page/#post-23765 <![CDATA[Reply To: postsbyuser appears below login form in profile page]]> https://forum.userproplugin.com/forums/topic/postsbyuser-appears-below-login-form-in-profile-page/#post-23765 Sat, 01 Mar 2014 09:19:31 +0000 admin Can you shed more light on this issue? With a screenshot or explaination about the issue.

]]>
https://forum.userproplugin.com/forums/topic/postsbyuser-appears-below-login-form-in-profile-page/#post-23778 <![CDATA[Reply To: postsbyuser appears below login form in profile page]]> https://forum.userproplugin.com/forums/topic/postsbyuser-appears-below-login-form-in-profile-page/#post-23778 Sat, 01 Mar 2014 13:04:47 +0000 tronkybs Solved with a solution by ericdude:

I added [userpro template=postsbyuser] to the profile page to display posts by users, and discovered that if youโ€™re not logged in and at the profile page at example.com/profile/, posts will appear below the login form. I fixed this by editing userpro/templates/postsbyuser.php

In line 3, Replace this:
if ($post_query->have_posts() )

with this:
if ($post_query->have_posts() && ($userpro->permalink($user_id) != get_permalink()) )

Add this on the latest update please ๐Ÿ˜‰

]]>