How-to: Show personalized profile data – UserPro Forums https://forum.userproplugin.com/forums/topic/show-personalized-profile-data/feed/ Mon, 13 May 2024 16:21:15 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/show-personalized-profile-data/#post-15210 <![CDATA[How-to: Show personalized profile data]]> https://forum.userproplugin.com/forums/topic/show-personalized-profile-data/#post-15210 Sun, 29 Dec 2013 20:53:25 +0000 admin In this short tutorial, I am going to explain how to show personalized and specific profile data based on conditions as in this example:

http://userproplugin.com/userpro/profile/test/

How to show a welcome message to current logged in user?

This can be done by utilizing a shortcode similar to this:

But now what if we wanted to make it nicer and show the user his display name, current role, and maybe his profile picture. Then you would need to use something like this

HINT:

[userpro_loggedin] shortcode will work only if a user is logged in. So do not worry if he is not logged in, he will not see it.

How to show a custom profile text when a user is viewing another user profile?

You will simply need to change the shortcode to [profile_by_url] to tell the plugin to read the user profile from URL e.g. /profile/test/ (user is test) Here is an example:

If you need more info or do not understand anything, please reply and I will extend this tutorial. Thanks for reading!

]]>
https://forum.userproplugin.com/forums/topic/show-personalized-profile-data/#post-15705 <![CDATA[Reply To: How-to: Show personalized profile data]]> https://forum.userproplugin.com/forums/topic/show-personalized-profile-data/#post-15705 Fri, 03 Jan 2014 05:21:27 +0000 TheProductGenius Ecellent Customization for us. I’m going to give this a try in a day or two. I’m still updating page Content in my website. Thank You For This. I have a few Customization questions for you that I’ll post in Support/How too’s. Blessings. Happy New Years as well!!!

]]>
https://forum.userproplugin.com/forums/topic/show-personalized-profile-data/#post-16865 <![CDATA[Reply To: How-to: Show personalized profile data]]> https://forum.userproplugin.com/forums/topic/show-personalized-profile-data/#post-16865 Sat, 11 Jan 2014 15:36:07 +0000 Jay Dalisay How would you do this without using any shortcode, just php?

]]>
https://forum.userproplugin.com/forums/topic/show-personalized-profile-data/#post-27748 <![CDATA[Reply To: How-to: Show personalized profile data]]> https://forum.userproplugin.com/forums/topic/show-personalized-profile-data/#post-27748 Fri, 14 Mar 2014 11:27:18 +0000 admin Here’s the php way:

http://userproplugin.com/userpro/docs/api.html#userpro_profile_data

]]>