Custom Profile Template – UserPro Forums https://forum.userproplugin.com/forums/topic/custom-profile-template-2/feed/ Wed, 15 May 2024 08:50:15 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-18517 <![CDATA[Custom Profile Template]]> https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-18517 Thu, 23 Jan 2014 16:50:40 +0000 Adriano Maia Hi!
I’m testing to customize my profile… templates!
I create the folder /userpro/ in my theme, and that is ok!
I copy the view.php, and that is ok!

When i’m editing, i see that the template use the page.php. Its possible to make my own template? Or make it use the index.php? Or its possible to make a if (… user pro profile …) so i can include another php and continue with my page normal structure html. Because my profile style is different than page.php.

]]>
https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-18534 <![CDATA[Reply To: Custom Profile Template]]> https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-18534 Thu, 23 Jan 2014 19:30:06 +0000 Adriano Maia I test and now i have a solution!
I make the template, and change the template at the page created for profile in wordpress. And now works fine…

But how can i get the user name for a profile that is being viewd.

this: <?php echo userpro_profile_data(‘display_name’, $user_id); ?> display the logged user…
if i visit site/profile/Wordpress for example i would like to display in my template the display name for WordPress

]]>
https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-18576 <![CDATA[Reply To: Custom Profile Template]]> https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-18576 Thu, 23 Jan 2014 21:06:28 +0000 Adriano Maia If i visit a profile, i need to know how to return that id of user. To make my template works.
I make a template and use in Profile page (that created in pages in wordpress).

]]>
https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-18791 <![CDATA[Reply To: Custom Profile Template]]> https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-18791 Fri, 24 Jan 2014 22:19:09 +0000 Adriano Maia Its not possible to make a template and apply in a page Profile? I really need to copy the view.php template to use? :/

]]>
https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-20120 <![CDATA[Reply To: Custom Profile Template]]> https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-20120 Wed, 05 Feb 2014 21:41:42 +0000 jeditricks007 Interested in this too

]]>
https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-24464 <![CDATA[Reply To: Custom Profile Template]]> https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-24464 Thu, 06 Mar 2014 17:24:53 +0000 sidnetworks I am very interested in an answer. Same concern.

]]>
https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-25078 <![CDATA[Reply To: Custom Profile Template]]> https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-25078 Fri, 07 Mar 2014 15:20:34 +0000 admin If you want to retrieve the user ID based on profile being viewed /profile/xxx

you can use

$user_id = userpro_get_view_user( get_query_var(‘up_username’) );

thanks 🙂 tell me if it works please

]]>
https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-25161 <![CDATA[Reply To: Custom Profile Template]]> https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-25161 Sat, 08 Mar 2014 08:53:46 +0000 sidnetworks I found.
http://userproplugin.com/userpro/forums/topic/custom-profile-template-2/

With the following parameter, I get $ user_id well and then I can apply my results.
= $ user_id userpro_get_view_user (get_query_var (‘up_username’));

Beautiful day.
Thank.

]]>
https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-27641 <![CDATA[Reply To: Custom Profile Template]]> https://forum.userproplugin.com/forums/topic/custom-profile-template-2/#post-27641 Thu, 13 Mar 2014 17:25:17 +0000 sidnetworks To complete:

<? php
global $ userpro;
if (userpro_is_logged_in ()) {
/ / retrieves the user id of the user logged
$ user_id = get_current_user_id ();
Else {}
/ / Get the id of the user Usier not connencte
= $ user_id userpro_get_view_user (get_query_var (‘up_username’));
}
?>
result:
<userpro_profile_data php echo (‘display_name’, $ user_id);?>
etc ….

This allows me to display a particular page on the profiles of all users connected or not connected and display a different map ^ ^ for each user. Happy.

]]>