Forum Replies Created
-
Works great. This is a subtle but very significant feature to USERPRO. We are now totally free to create amazing profiles pages which are connected to the wordpress author archive.
in reply to: Profile Card Logged in userYes…no problem. Should I send to you via the deluxetheme email address?
in reply to: Profile Card Logged in userI think this depends on the theme. I did not get a 404 but I am running a magazine theme and the authors link goes to the authors URL /author/alex/ for example which is by default a page containing the author posts if any. With the filter you provided this author page has become my profile user home page.
in reply to: Profile Card Logged in userHi,
What I did is from the userpro support docs I added the filter:
//Change profile URL to author URL
add_filter(‘userpro_user_profile_url’, ‘userpro_author_url’, 99, 2);
function userpro_author_url($link, $user_id) {
return get_author_posts_url( $user_id );
}Which changed the links to go to the author archives instead of profile.
Then I simply added the shortcode with [template=view user=author] to a sidebar and now when I click on a profile URL in userpro template view it goes to the author url.
in reply to: Profile Card Logged in userThanks for the great support. This fix will allow designers to create very flexible profile pages for authors that you visit where the sidebar and content of a profile will compliment each other nicely.
in reply to: Profile Card Logged in userYes..it actually works very well and provides amazing flexibility as site owners can actually show profile view and card info of profile owners they visit in the sidebar.
The one small issue that holds this back from working perfectly is the fact that the display information does not appear until a first post is made.
in reply to: Profile Card Logged in userRight now I have this shortcode in the sidebar:
[userpro template=view user=author header_only=true no_style=true margin_bottom=0px]
It works perfectly in all scenarios except when the author has not added a post in which case the template is empty.
I have version 1.71 userpro installed.
in reply to: Profile Card Logged in userOn the template=view user=author it shows just the default photo (when a post is created then is shows display info as well).
For the template-card user=author it is completely empty (shows nothing at all until the first post is published). Then the card shows user info.
in reply to: Profile Card Logged in userHi,
Thanks for the help. Yes for the logged in user it works. I guess now what I need to solve is when that logged in user sees another users profile.
For this the user=author works well, the only issue or problem is that until that author has created a post his card or template view remains empty like this image: http://i.imgur.com/KlKrB8b.png.
Once that author makes a post then his display name, country badge etc… are shown. Is their a workaround for this so that the author=user displays the authors information (name, badge etc..) before the first post takes place?
in reply to: Profile Card Logged in userHI…yes this is what I am trying to do. In essence to show the card or template (in a sidebar) of the user profile URL that I am viewing/visiting.
I actually kind of solved one part of this issue with the [template=view user=author] added to the sidebar of my site so it now shows the template/card of the author being viewed but I now have an issue in that if the author has not made a POST to the site, the card or template is empty. One a post is made then the card / template displays info.
in reply to: Profile Card Logged in userSorry …edit. What I mean is how to:
How to show the [userpro template=card] of a user profile page?
If I have the shortcode [userpro template=card] in the sidebar and I visit the profile page of another user:
http://www.example.com/profile/john it will show in the sidebar my profile card. I would like to have the sidebar show the profile card of the profile user I am visiting in the case have the profile card show John’s card.
in reply to: Profile Card Logged in userAny help please?
in reply to: Verification and hide login / register pagesYes…what would be the php for this to hard code it into a page?
in reply to: API reference for header