This plugin was removed on 2/2/2024. But it does not seem that any development work is been happening for quite some time. Can you let us know whether you are hoping to update the plugin and get it approved again in the plugin directory?
]]>The insert_button function in KBJ_UserShortcodesPlus_Admin_TinyMCE_AddShortcodeButton caused a memory_limit issue, if too much users are in the system.
The get_users() request needs about 512MB in our system for about 13k users.
Can you please update the function to load the users chunked or limit the users?
I made the following changes in our system to prevent the memory_limit error:
public function insert_button($context) {
global $pagenow;
if(!in_array($pagenow, array('post.php', 'post-new.php'))) {
return $context;
}
add_thickbox();
$users = array();
$page = 0;
do {
$page++;
$users_chunk = get_users(array('number' => 3000, 'paged' => $page));
if(is_array($users_chunk) && count($users_chunk)) {
$users = array_merge($users, array_map(function($user) {
return json_decode('{"ID":"'.$user->ID.'", "display_name": "'.str_replace('"', '\"', $user->display_name).'"}');
}, $users_chunk));
}
} while(is_array($users_chunk) && count($users_chunk));
$data = array(
'button_text' => __('Add User Shortcode', ''),
'users' => $users,
'shortcodes' => KBJ_UserShortcodesPlus::config('Shortcodes'),
);
return KBJ_UserShortcodesPlus::template('admin-tinymce-modal.html.php', $data);
}
]]>
Various security tools unfortunately mark this plugin as abandoned, as the last update was over 2 years ago. However, it still seems to work wonderfully and there are no problems. Please submit a small update so that the security tools no longer mark this plugin as abandoned.
]]>Hi,
I am interested to show in my website using the shortcode the user role.
This can be done with this app?
If yes, please instruct me how to do it.
If the customer have assigned different roles like Client and Gold or like Photographer and Gold it will be show all the roles?
Waiting for your support in this matter.
Thank you
Regads
Daniel
]]>When I use the user_website shortcode in any context, the url doesn’t work since it shows to be “http//mywebsite.com” with no colon. I would expect this to show “https://mywebsite.com”.
]]>I am using your plugin to show the first name of the user when they are logged in, now someone may have a big name that might affect the orientation of my menu so I just want to show first 10 letters of his/her first name how can I achieve that solution.
Please help
Hallo,
[user_nicename] unfortunately shows just the [user_login] value.
In other plugins it works, but I want to use yours because your shortcodes are shorter and you also have avatars.
Is there any functions.php hook I can add to do_shortcodes in the author bio/description fields display shortcode?
]]>Hello,
How can I get the shortcode to display information for the current page author ID?
For example:
[user_firstname id=2]
will display the first name of user #2 (User) when he is on the “Books” page let’s say. But what if I wanted to do something like [user_firstname author_id=2]
to display the name of the page author of the “Books” page (Author) no matter which user is visiting that page?
Thanks in advance for your help!
]]>Hello, i am creating a form in WPFORMS and using your shortcodes which works great. I can see you’ve given a description of how to show a second users data by adding form ID. example you used: [user_email id=2]
However i do not want this to be a pre-defined ID.
I would like users to enter a username in a field ie. {field_id=”72″} and i would like this data to populate the shortcodes.
IE [user_avatar {field_id=”72″}] instead of your example [user_email id=2]
this doesn’t seam to work, am i not doing something correctly?
]]>I am seeing the following error messages in my WordPress debug.log file:
PHP Notice: Trying to get property ‘first_name’ of non-object in /wp-content/plugins/user-shortcodes-plus/includes/Shortcodes/User.php on line 26
PHP Notice: Trying to get property ‘last_name’ of non-object in /wp-content/plugins/user-shortcodes-plus/includes/Shortcodes/User.php on line 26
PHP Notice: Trying to get property ‘user_email’ of non-object in /wp-content/plugins/user-shortcodes-plus/includes/Shortcodes/User.php on line 26
PHP Notice: Trying to get property ‘user_email’ of non-object in /wp-content/plugins/user-shortcodes-plus/includes/Shortcodes/UserAvatar.php on line 20
The 4 errors happen together with the same timestamp, but I’m not sure yet what exactly triggers them.
I am running:
WordPress version 5.3.2
PHP version 7.3.11 (Supports 64bit values)
User Shortcodes Plus Version 2.0.2
How can i use a shortcode for a custom field?
I create a custom field “whatsapp”.
How to show in front-end?
Hello,
I’m using User Extra Fields plugin (https://codecanyon.net/item/user-extra-fields/12949844).
Could you help me to find the meta?
Can i hire you?
]]>Definitely needs updates.
Running this plugin alongside Elementor breaks the theme, custom fonts stop working, css goes out the window and some js stop working.
Otherwise it could be a very good plugin, it literally does what it says on the tin unlike others out there.
]]>please this plugin works perfectly fine and i love it, but i wish the author should update the plugin as not to pose security threats for users…
]]>i try using this but not working
.avatar {
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
}
This was posted last year, but I don’t understand the answer. Perhaps someone can help.
I need to display the billing company name, I’m not bothered about the address. I though it would be easy to just edit the ‘shortcodes.php’ file by adding the following;
‘user_company’ => array(
‘tag’ => ‘user_company’,
‘label’ => __( ‘Company’ ),
‘property’ => ‘user_company’
),
I should point out that I’ve no real idea what I’m doing. It didn’t work, obviously.
]]>Hello,
Are these shortcodes compatible with Elementor page builder? When I use them with Elementor the content doesn’t show up.
Thanks,
Sangra
]]>I’m trying to send an e-mail to the customers indicating their [user_id] but apparently the codes cannot be used with e-mails.
Is there any way to include them?
Regards,
Fernando
]]>I would like to display the user_id with a fixed number offset.
How could we best achieve this?
Eg. display user_id + 7000
]]>Hi there
Thanks for the great plugin.
I`m really noob on wordpress, trying my first site now.
So, is that possible to change the avatar size?
Something like that, maybe?
[user_avatar size=”medium”]
[user_avatar height=”800″ width=”400″]
]]>Hi!
I’m trying to add this shortcode for example [user_firstname] only for user logged in to avoid notice. So I use custome shortcode like :
[member] … content … [user_firstname] …. content [/member] …
but the shortcode [user_firstname] is not readed :-/
works fine when I use others shortcodes but not these of your plugin ??
Any help will be appreciate. TIA
Note: I’ve tried to use this plugin Outerbridge Nested Shortcodes, without success
]]>Hello! Would it be possible to display a placeholder value if the field is empty?
For example use [user_url] to display the website, but if a user hasn’t added his URL yet, then display “You still need to add your website in your profile”
Would that be possible somehow?
]]>Hi, first, I’m very grateful with this plugin because a lot of my website’s functions is working well thanks to this plugin. And with another plugin “WP-members”, next story starts.
I have two problems.
1. When I use shortcode([user_meta id=”3″ key=”shop_event”], it has a textarea metabox in user edit page, and is put on popup that is made with plugin “popup maker”) to show the member’s information that the member write in on some pages of my website, texts displays well with all linebreaks included as just like texts in textarea metabox of “user data edit”, which my users write in, only if my users put “<br> tags” in metabox. But I can’t let all my members to tag <br> when they want to linebreak everytime. So please tell me how to show my members information they write in with all linebreaks as just they write in meta box, without <br> tags.
2. I added also “image field” to display images my members upload on a page. With a shortcode [user_meta id=”7″ key=”shop_photo”], I updated the page. However on the page displays only text as “246”.
Am I doing something wrong? please advice me. And again, I really thanks for you to make this lovely plugin.
]]>Hi!
Can you kindly fix this notice please ?
Notice: Trying to get property of non-object in /var/www/html/wp-content/plugins/user-shortcodes-plus/includes/Shortcodes/User.php on line 26
Thanks in advance
Regards
Hi,
I need this plugin. Very urgent but not successfull. I am using Academy theme from Themex. When I activate USer ShortCodes Plus the page and post aeditors are not working. Any solution?
]]>This looks like a really nice plugin. I’m testing it right now, it works so far, but what I don’t understand is how to add a shortcode using TinyMCE.
I use TinyMCE Advanced. After installing the User Shortcode Plus, there seems to be no button “Add User Shortcode” like mentioned on the third screenshot on your plugin description.
Am I missing something?
Hi there,
This plugin is working fine for post however need your assistance to make this plugin work in post field.
I am trying to add logged in user name into URL to track affiliate sales per user however shortcode is not picking up user name. Please refer attached screenshot and highlighted post field and help me
Regards, Niranjan
]]>Hi,
Great plugin!
Is it posible to reduce the avatar size?
Thanks you!
Javier
]]>Can the plugin shortcode a users Company, Address, City, State and Zip code fields?
I want to display this information when a user logs in.
Tim