[Resolved] View php shortcode for individual users? – UserPro Forums https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/feed/ Wed, 01 May 2024 15:31:17 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16100 <![CDATA[[Resolved] View php shortcode for individual users?]]> https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16100 Sun, 05 Jan 2014 23:26:53 +0000 parmenti Hello.. how do I adopt this..

<?php echo do_shortcode(‘[userpro template=view]’); ?>

so that is shows the particular user being viewed instead of showing the logged in users profile?

I would like to replace the profile view on the default page provided by my theme but retain the other information on that page.. it’s a q&a theme and it shows their posts and responses and such.

Thank you

]]>
https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16101 <![CDATA[Reply To: [Resolved] View php shortcode for individual users?]]> https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16101 Sun, 05 Jan 2014 23:27:41 +0000 parmenti btw.. facebook login wasn’t working on this support site in chrome browser..

]]>
https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16105 <![CDATA[Reply To: [Resolved] View php shortcode for individual users?]]> https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16105 Sun, 05 Jan 2014 23:44:21 +0000 parmenti I “think” I figured out that it’s this?

<?php echo do_shortcode(‘[userpro template=view user=”author”]’); ?>

the only problem for me is that userpro translates spaces in usernames to periods (.) and my theme translates spaces in usernames to hyphens (-). How can I fix this?

]]>
https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16107 <![CDATA[Reply To: [Resolved] View php shortcode for individual users?]]> https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16107 Sun, 05 Jan 2014 23:45:28 +0000 parmenti actually.. this doesn’t appear to be working either.. hmm… could use some help 🙂

]]>
https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16113 <![CDATA[Reply To: [Resolved] View php shortcode for individual users?]]> https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16113 Mon, 06 Jan 2014 00:08:09 +0000 parmenti you can see at my site here
http://www.jailbreakhq.com/
http://www.jailbreakhq.com/author/admin/

it works for the username admin.. but that’s the only one 🙁
The others I guess all have spaces/hyphens/periods etc
you can see here what happens to the other profiles

http://www.jailbreakhq.com/author/peter-armenti-7/

any help would be MUCH appreciated

]]>
https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16120 <![CDATA[Reply To: [Resolved] View php shortcode for individual users?]]> https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16120 Mon, 06 Jan 2014 00:15:34 +0000 admin Hi parmenti,

UserPro do not allow dashes in usernames, a space will work fine. but a dash in username is not designed to work. If you want a work around, edit your api.php find: $arg = str_replace(‘-‘,’ ‘, $arg); and remove this line this will remove the dash rule and usernames with dashes will work fine.

]]>
https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16121 <![CDATA[Reply To: [Resolved] View php shortcode for individual users?]]> https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16121 Mon, 06 Jan 2014 00:17:05 +0000 admin I just connected my facebook account via Google Chrome. I can’t reproduce this issue, and I didn’t receive a similar bug report. Will wait to see if anyone can confirm this issue. Thanks 🙂

]]>
https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16152 <![CDATA[Reply To: [Resolved] View php shortcode for individual users?]]> https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16152 Mon, 06 Jan 2014 01:45:48 +0000 parmenti for some reason the code
<?php echo do_shortcode(‘[userpro template=view user=”author”]’); ?>
is not pulling accurate usernames..

if I replace “author” with the correct username than it works fine..
but otherwise it doesn’t seem to work at all..

user”author” should be mapping directly to the username, right?
if not, what field exactly is it mapping to and what is the problem?

in other words.. the username is peter.armenti.7
if I enter
<?php echo do_shortcode(‘[userpro template=view user=”peter.armenti.7″]’); ?>
it works fine on that particular profile.

but it doesn’t work with user=”author”
am I missing something?

]]>
https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16160 <![CDATA[Reply To: [Resolved] View php shortcode for individual users?]]> https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16160 Mon, 06 Jan 2014 03:40:59 +0000 parmenti I turned debugging mode on now if you want to look at these 2 url’s again..
You’ll see that the first one works.. and the second does not

http://www.jailbreakhq.com/author/admin/
http://www.jailbreakhq.com/author/peter-armenti-7/

]]>
https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16299 <![CDATA[Reply To: [Resolved] View php shortcode for individual users?]]> https://forum.userproplugin.com/forums/topic/view-php-shortcode-for-individual-users/#post-16299 Mon, 06 Jan 2014 19:52:34 +0000 admin parmenti,

[userpro template=view user=author] will work ONLY if it is embedded to a loop or inside an AUTHOR identified post, or page.

Please read my comment regarding the dash. Dashes in usernames are not allowed that’s why the second one does not work. Space is already converted to username, which makes the plugin convert your dash to space when getting the profile (See my reply for the fix)

]]>