Tutorials list, others? shortcode how it works – UserPro Forums https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/feed/ Sun, 05 May 2024 01:13:34 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-36730 <![CDATA[Tutorials list, others? shortcode how it works]]> https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-36730 Sat, 10 May 2014 12:42:18 +0000 dana Is there a list of tutorials somewhere? I have read EVERY post in the support forum and have found these below. Are there more? We really need a list.

http://userproplugin.com/userpro/forums/topic/show-personalized-profile-data/
http://userproplugin.com/userpro/profile/test/
http://userproplugin.com/userpro/
http://userproplugin.com/userpro/standard-users-table/
http://userproplugin.com/userpro/shortcode-reference/
http://userproplugin.com/userpro/docs/

The shotcode reference page is missing a lot.

Also for the newbies here is how the shortcode works

[userpro template=memberlist option=value] Option is the first part of the list, value is the second.

◾exclude – Hide specific users from appearing in member directory. e.g. 1,3,10 will hide these users from the member list.
◾search – Turn on/off member search in member directory. Default: 1 (turned on)
◾memberlist_withavatar – If enabled, search will return only members with custom profile photo or avatar. Default: 0
◾memberlist_verified – If enabled, search will return only Verified accounts in member search. Default: 0
◾memberlist_default_search – Enable/disable the default search field in member directory. Default: 1
◾per_page – How many members to display per each page. Default: 12

So if you want to have the members list with 25 showing here is the code;

Template you want option value
[userpro template=memberlist per_page=25]

1 in the value field means show and 0 in the value field means not showing.

I know this is obvious to most people but some of us have never used wordpress before setting up a wordpress site.

Please we do need a list of all the tutorials and a complete list of the shortcodes.

]]>
https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37277 <![CDATA[Reply To: Tutorials list, others? shortcode how it works]]> https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37277 Wed, 14 May 2014 21:09:35 +0000 Matthew Jenkins The plug-in could really use some kind of ‘getting started’ guide.

After activation, nothing changes on your site to indicate that userpro is enabled. As a new user, I immediately looked to see if it added any basic widgets. None.

It seems everything is accomplished by shortcodes. And the only type of guide in the backend is a link to these forums. It’s a fairly unique plug-in in this way.

]]>
https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37576 <![CDATA[Reply To: Tutorials list, others? shortcode how it works]]> https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37576 Fri, 16 May 2014 13:44:26 +0000 vrfx Yeah, the docs are lacking a lot and Ahmed is aware, he’s trying to update the documentation and specifically the shortcode section for a while now but i guess between all the updates and the support (he had some issues with finding someone to help him with support from what I read) … he didn’t have much time to update the docs.
An idea would be for us, users to try and put together a thread with all our shortocde findings but that could be incomplete and slow to gather.

]]>
https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37583 <![CDATA[Reply To: Tutorials list, others? shortcode how it works]]> https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37583 Fri, 16 May 2014 15:03:47 +0000 Matthew Jenkins Yeah, that’s a great idea. Hope I didn’t seem overly critical, because the plug-in is, pardon my french, fucking amazing. The more I learn about what it can do, the more impressed I am.

Dana’s post above is really helpful. Especially good stuff in the shortcode reference:
http://userproplugin.com/userpro/shortcode-reference/

Like anything WP, it takes commitment from the user to make the most of a product, so I will add to the user docs as I learn more about what UserPro is capable of. Thanks VRFX.

]]>
https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37609 <![CDATA[Reply To: Tutorials list, others? shortcode how it works]]> https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37609 Fri, 16 May 2014 17:10:21 +0000 dana It took hours to put that list together. I pulled the html off of the page where all the examples are and took the codes from there. Here are my completed noted below.

I am still completely stuck. I do not understand PHP so if the answer is that please tell me WHERE to put the code. I need to link the user/author to the posts they make and find a way to have the name of the user on the post.

Second my followers/following has disappeared from the profiles, how can I put them back? I don’t want to reload because I have over 90 custom fields put in.

Here are the notes some are from posts here on the forum. The ones above are also here except the links.

All Activity with listing ten per page.
[userpro template=activity activity_all=1 activity_per_page=10]

Activity of those you are following.
[userpro template=activity]

If you want to show those who are following you.
[userpro template=followers]

If you want to show those you are following.
[userpro template=following]

to show LOGGED in user regardless if you’re on profile or not

add: user=loggedin

to show author following/followers add user=author

to show custom user following/followers add user=USERNAME

user=loggedin will show logged in user followers/ing

user=author will show post author followers/ing

user=CUSTOM_USER ….

This is for use outside the FOLLOWERS/FOLLOWING Frontend pages. This should make the job easier to display them anywhere you want, not just stricted inside followers/following page, all based on providing the user= option

The most common use will be user=loggedin (Logged user) but you can use user=author to show this for post authors in their posts! so people know who are following the authors!

[userpro template=view header_only=true]

data-publish_heading=’Add a New Post’
data-publish_button_primary=’Publish’

data-passwords_do_not_match=’Passwords do not match’
data-password_not_strong=’Password is not strong enough’

data-following_heading=’Following’
data-followers_heading=’Followers’

data-postsbyuser_num=’12’
data-postsbyuser_mode=’grid’
data-postsbyuser_thumb=’50’
data-postsbyuser_showthumb=’1′
data-postsbyuser_category=’0′
data-postsbyuser_types=’post’
data-postsbyuser_taxonomy=’category’ data-layout=’float’

data-card_width=’250px’
data-card_img_width=’250′
data-card_showbio=’1′
data-card_showsocial=’1′

data-register_heading=’Register an Account’
data-register_side=’Already a member?’
data-register_side_action=’login’
data-register_button_action=’login’
data-register_button_primary=’Register’
data-register_button_secondary=’Login’
data-register_group=’default’
data-register_redirect=’0′
data-registration_closed_side=’Existing member?login’
data-registration_closed_side_action=’login’

data-emd_filters=’1′
data-emd_thumb=’200′
data-emd_social=’1′
data-emd_bio=’1′
data-emd_fields=’first_name,last_name,gender,country’
data-emd_layout=’masonry’
data-emd_per_page=’20’
data-emd_col_width=’22%’
data-emd_col_margin=’2%’
data-emd_accountstatus=’Search by account status’
data-emd_photopreference=’Photo Preference’
data-emd_country=’Search by Country,dropdown’
data-emd_gender=’Gender,radio’
data-emd_paginate=’1′
data-emd_paginate_top=’1′>
data-emd_thumb=’200′ data-emd_social=’1′
data-emd_bio=’1′ data-emd_fields=’first_name,last_name,gender,country’
data-emd_layout=’masonry’ data-emd_per_page=’20’
data-emd_col_width=’22%’ data-emd_col_margin=’2%’

data-type=’default’
data-login_group=’default’ data-login_redirect=’0′
data-rememberme=’true’
data-login_heading=’Login’
data-login_side=’Forgot your password?’
data-login_side_action=’reset’
data-login_button_action=’register’
data-login_button_primary=’Login’
data-login_button_secondary=’Create an Account’
data-login_group=’default’
data-login_redirect=’0′
data-rememberme=’true’

data-delete_heading=’Delete Profile’
data-delete_side=’Undo, back to profile’
data-delete_side_action=’view’
data-delete_button_action=’view’
data-delete_button_primary=’Confirm Deletion’
data-delete_button_secondary=’Back to Profile’
data-delete_group=’default’

data-reset_heading=’Reset Password’
data-reset_side=’Back to Login’
data-reset_side_action=’login’
data-reset_button_action=’change’
data-reset_button_primary=’Request Secret Key’
data-reset_button_secondary=’Change your Password’
data-reset_group=’default’
data-reset_heading=’Reset Password’

data-change_heading=’Change your Password’
data-change_side=’Request New Key’
data-change_side_action=’reset’
data-change_button_action=’reset’
data-change_button_primary=’Change my Password’
data-change_button_secondary=
data-change_group=’default’
data-change_button_secondary=’Do not have a secret key?’

data-list_heading=’Latest Members’ data-list_per_page=’5′
data-list_sortby=’registered’
data-list_order=’desc’
data-list_users=’0′
data-list_group=’default’
data-list_thumb=’50’
data-list_showthumb=’1′
data-list_showsocial=’1′
data-list_showbio=’0′
data-list_verified=’0′
data-list_relation=’or’
data-list_heading=’Latest Members’
data-list_per_page=’5′
data-list_verified=’0′
data-list_relation=’or’

data-online_heading=’Who is online now’
data-online_thumb=’30’
data-online_showthumb=’1′
data-online_showsocial=’0′
data-online_showbio=’0′
data-online_mini=’1′
data-online_mode=’vertical’

data-memberlist_table=’0′
data-memberlist_v2=’1′ data-memberlist_v2_pic_size=’86’
data-memberlist_table=’0′
data-memberlist_table_columns=’user_id,picture,name,country,gender,role,email_user,message_user’
data-show_on_mobile=’picture,name,country,email_user,message_user’
data-memberlist_v2=’1′
data-memberlist_v2_pic_size=’86’
data-memberlist_v2_fields=’age,gender,country’
data-memberlist_v2_bio=’1′
data-memberlist_v2_showbadges=’1′
data-memberlist_v2_showname=’1′
data-memberlist_v2_showsocial=’1′
data-memberlist_pic_size=’120′
data-memberlist_pic_topspace=’15’
data-memberlist_pic_sidespace=’30’
data-memberlist_pic_rounded=’1′
data-memberlist_width=’100%’
data-memberlist_paginate=’1′
data-memberlist_paginate_top=’1′
data-memberlist_paginate_bottom=’1′
data-memberlist_show_name=’1′
data-memberlist_popup_view=’0′
data-memberlist_withavatar=’0′
data-memberlist_verified=’0′
data-memberlist_filters=’0′
data-memberlist_default_search=’1′

data-activity_heading=’Recent Activity’
data-activity_per_page=’10’
data-activity_side=’refresh’
data-activity_user=’0′ data-emd_filters=’1′
data-activity_heading=’Recent Activity’
data-activity_all=’0′
data-activity_per_page=’10’
data-activity_side=’refresh’
data-activity_user=’0′

data-edit_button_primary=’Save Changes’
data-edit_group=’default’

data-view_group=’default’

data-social_target=’_blank’
data-social_group=’default’

data-publish_heading=’Add a New Post’
data-publish_button_primary=’Publish’

data-margin_top=’0′
data-margin_bottom=’30px’
data-align=’center’
data-skin=’elegant’
data-required_text=’add text’
data-type=’default’
data-link_target=’_blank’
data-error_heading=’An error has occured’
data-per_page=’12’
data-sortby=’registered’
data-order=’desc’
data-relation=’and’
data-search=’1′
data-exclude=’0′
data-show_social=’1′
data-facebook_redirect=’profile’
data-logout_redirect=’0′
data-modal_profile_saved=’Your profile has been saved!’
data-template=’login’
data-max_width=’480px’
data-default_avatar_male=’http://userproplugin.com/userpro/wp-content/plugins/userpro/img/default_avatar_male.jpg&#8217;
data-default_avatar_female=’http://userproplugin.com/userpro/wp-content/plugins/userpro/img/default_avatar_female.jpg&#8217;
data-layout=’float’ data-margin_top=’0′
data-margin_bottom=’30px’
data-align=’center’
data-keep_one_section_open=’0′ data-allow_sections=’1′
data-permalink=’http:your link’
data-field_icons=’1′ data-profile_thumb_size=’80’
data-view_group=’default’
data-social_target=’_blank’
data-social_group=’default’
data-link_target=’_blank’
data-error_heading=’An error has occured’
data-per_page=’12’
data-sortby=’registered’
data-order=’desc’
data-relation=’and’
data-search=’1′
data-exclude=’0′
data-show_social=’1′
data-facebook_redirect=’profile’
data-logout_redirect=’0′

[userpro_loggedin]Welcome back! Happy to see you again![/userpro_loggedin]

[userpro_loggedin]Welcome, [first_name] [last_name]! Your current user role is [role] and here is your current profile picture [profilepicture round][/userpro_loggedin]

echo get_avatar

class=’userpro-field userpro-field-custom_video ‘
data-key=’custom_video’><div class=’userpro-label iconed’><label for=’custom_video-720′>Video Embed</label><span class=”userpro-tip” title=”Enter video embed code here.”></span></div><div class=’userpro-input’><textarea class=’normal’ type=’text’ name=’custom_video-720′ id=’custom_video-720′
data-ajaxcheck=” data-help=’Enter video embed code here.’ data-label=’Video Embed’ data-placeholder=” data-_builtin=’0′ data-hidden=’0′ data-hideable=’0′ data-html=’1′ data-locked=’0′ data-private=’0′ data-required=’0′ data-type=’textarea’ data-woo=’0′ ></textarea><div class=’userpro-clear’></div></div></div><div class=’userpro-clear’></div>

Author Avatars

Example: [authoravatars roles=administrator,editor]

hiddenusers: Remove users from the list

Hide one or multiple users from the list. Both login names and user ids are allowed as values. Separate multiple values by a comma.

Example: [authoravatars hiddenusers=admin]

avatar_size: The size of the avatar images

You can adjust the size of the avatar by specifying the avatar_size parameter.

Example: [authoravatars avatar_size=25]

link_to_authorpage: Disable the link to author pages (deprecated)

This is deprecated since version 0.7. Please use the user_link parameter instead.

By default user avatars are linked to their Author Page. If your theme doesn’t support them or you don’t want to show them e.g. for subscribers, then you can easily disable them by setting this parameter to false.

Example: [authoravatars link_to_authorpage=false]

user_link: Link user avatars to user website, blog or authorpage

As of version 0.7 you can link users not only to their respective Author Page but also their website if available or blog on WordPress MU sites.

Version 0.7.3 adds the option to link users to their respective BuddyPress Members page.

Allowed values: false, authorpage (default), website, blog (wpmu only), bp_memberpage (only if budypress installed),bppress_memberpage( (only if bbpress installed)

Example: [authoravatars user_link=website]

show_name: Show user names next to avatars

If you’d like to show the user display names next to the avatars set the show_name parameter to true.

Example: [authoravatars show_name=true]

show_biography: Show user biographies next to avatars

If you’d like to show the user biographies next to the avatars set the show_biography parameter to true.

Example: [authoravatars show_biography=true]

show_postcount: Show the users’ post count next to their name

Set this option to true to show a user’s postcount next to their name (in brackets). If the user name is not displayed (see “show_name” parameter) then the postcount will be shown within the title of the image, i.e. it can be seen on mouse-over.

Example: [authoravatars show_postcount=true]

min_post_count: Set a required minimum number of posts

Since version 0.8 you can only show users which have a specified number of posts. This allows for example to hide all authors which have not written any posts yet.

Example: [authoravatars min_post_count=1]

limit: The maximum number of avatars shown

Example: [authoravatars limit=3]

order: The order in which users are shown

Users are ordered by their display name A-Z by default. You can adjust this by changing this parameter. Possible values are: random, user_id, user_login, display_name, post_count (0.7+), date_registered (0.7+).

Example: [authoravatars order=random]

page_size: Max number per page

With this set paging markup (“< 1 2 3 4 5 >”) will be displayed below the avatars block.
The avatars are reloaded via ajax.
Note: this code is only used in the shortcode in page or post and not in a widget.

Example: [authoravatars page_size=10]

sort_direction: The direction in which users are ordered

As of version 0.7 you can specify the sort direction, ascending or descending.
Valid values are “asc” or “ascending” (default) and “desc” or “descending”.

Example: [authoravatars order=date_registered sort_direction=descending]

You can also use this shorter version:

Example: [authoravatars order=date_registered,desc]

blogs which blogs to show authors from

This is only for multi-site (WPMU) mode.

Before you use this you need to grant a site permission to see other blogs in the site on the network admin control panel
/wp-admin/network/settings.php?page=wpmu_author_avatars

[userpro template=postsbyuser postsbyuser_mode=compact postsbyuser_thumb=100] shows posts on profile when logged in

[userpro template=card user=author]

or See if either of these shows author on the post

[userpro template=view user=author]

Author will be DYNAMICALLY fetched from author archive.

For registration shortcode, you can use new shortcode option:

form_role=”author” for example or form_role=”support” etc.. form_role will override default role setting and make it form-specific ok? clear?

[userpro template=register form_role=author]
REgister forms for certain roles? supported??
[userpro template=register form_role=vendor]

———————————————————————————————————————————-

PHP

Good day! By this function we show comment author <?php echo $userpro->permalink($comment->user_id); ?> How to show link to profile of author of post?

<?php echo $userpro->permalink( get_the_author_meta(‘ID’) ); ?> This should display the profile URL based on author ID.

To link author to users and posts

In your functions/api.php

Change this

$link = apply_filters(‘userpro_user_profile_url’, $link, $user_id);

to:

if ($request == ‘profile’ || $request == ‘view’) {
$link = apply_filters(‘userpro_user_profile_url’, $link, $user_id);
}

This will affect only profile permalinks and keep login, register, other pages un-affected.

]]>
https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37757 <![CDATA[Reply To: Tutorials list, others? shortcode how it works]]> https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37757 Sun, 18 May 2014 00:53:18 +0000 Matthew Jenkins Thanks a lot Dana. There’s a lot to learn here. But it will be worth it.

It is a little concerning that you lost all your followers/following data. I wonder if that indicates a bug of some sort? I wonder if the follower connections are still in your database and just not displaying on the user end? Or have they been trashed?

With 90 custom fields (yikes!) you may have a unique situation that wouldn’t pop up in normal stress testing.

Let us know if you figure it out. And thanks again for documenting so much, Matthew

]]>
https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37766 <![CDATA[Reply To: Tutorials list, others? shortcode how it works]]> https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37766 Sun, 18 May 2014 06:11:43 +0000 dana I have an interesting situation. I came into all this building a website stuff out of popular demand LOL. I have been maintaining a blog and working with people who are having UFO/ET experiences for several years now. I’ve gotten so popular (like hundreds of non-repeat hits a day, LOL not sure how) that it was time to create a community.
So I paid for premium hosting, downloaded wordpress, spend my last dime on userpro and have been lost ever since! I am WAY WAY above my paygrade here. The good thing I am not having to deal with people who have already singed up, it’s a fresh start. But I just could not figure out the shortcode stuff then one day it clicked! So I used my IE developer tools and stole all the shortcodes out of the examples page here at the userpro site. So I thought if I can help other people with it I would.
My HUGE problem is still linking authors to their posts. Now if you click a post it just says it can’t find it. UGH! The following stuff is not that important but the link to authors is.
Also anyone know if I can download a trial of the message service and see if I like it? If so where? The site is profile.mytwinflame.info, it’s mostly locked down right now and will be moved before we go live. But I have the Jun 1st date I promised everyone… I’m not sure I’m gonna make it.

If anyone has any suggestions about the author linking and the following please let me know! UFOchick at gmail.com

Dana

]]>
https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37768 <![CDATA[Reply To: Tutorials list, others? shortcode how it works]]> https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37768 Sun, 18 May 2014 09:05:47 +0000 vrfx Could you provide a link where we can see exactly the problem in action? I looked over your website but can’t really figure out what your issue is.

]]>
https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37826 <![CDATA[Reply To: Tutorials list, others? shortcode how it works]]> https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-37826 Sun, 18 May 2014 18:42:40 +0000 Matthew Jenkins It looks like you removed the byline from your blog posts – I assume because it was going to a 404. I believe the WordPress default for a *list of author posts* would be structured like this:

http://profile.mytwinflame.info/author/ufochick/

Obviously I don’t know exactly what your login name is but I tried ufochick and dana and got a 404. What happens if you replace “ufochick” above with your login name? Do you see list of your posts?

]]>
https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-47217 <![CDATA[Reply To: Tutorials list, others? shortcode how it works]]> https://forum.userproplugin.com/forums/topic/tutorials-list-others-shortcode-how-it-works/#post-47217 Wed, 15 May 2019 15:07:44 +0000 Somatherapist I just found this and it’s very helpful! Crazy that this thread was started 5 years ago and the documentation is still really bad. It’s a bummer because I love the plugin!

]]>