anyone can help ?
]]>However, I noticed two points
1) the shortcode [anonymous_login_enabled] and [link_wp_user_name] in combination with [link_user_name_template] generates a link to a non-existent profile despite anonymous users, which then generates a 404 error page
2) Private messages for offline users only work if the option [users_list_offline_enable = “1”] is set. But since I have more than 4000 users, it not only looks ugly, it also slows down the page load.
Would it be possible to introduce a new shortcode, eg [users_list_add_to_offline=”12345″], which also adds the offline user “12345” to the online user list = [users_list_offline_enable = “0”].
So I could elegantly integrate the chat system into every user page, which can also be contacted offline and without integrating the huge offline user list
In any case, the chat system is the best I’ve seen so far, but in my special case I can only use it for online users
Happy new year to all of you
Greetings marc
]]>Here is the script I use :
//This adds display names for all users to a drop down box on a gravity form.
add_filter(“gform_pre_render”, “populate_userdrop”);
//Note: when changing drop down values, we also need to use the gform_admin_pre_render so that the right values are displayed when editing the entry.
add_filter(“gform_admin_pre_render”, “populate_userdrop”);
function populate_userdrop($form){
//only populating drop down for form id 1- if editing this change to your own form ID
if($form[“id”] != 1)
return $form;
//Creating item array.
$items = array();
// Get the custom field values stored in the array
// If editing this lookup where you would like to get your data from
// this example loads through all users of the website
$metas = get_users();
if (is_array($metas))
{
// in this example we just load the display_name for each user into our drop-down field
foreach($metas as $meta)
$items[] = array(“value” => $meta->user_email, “text” => $meta->display_name);
}
https://www.ads-software.com/plugins/front-end-only-users/
]]>https://www.ads-software.com/plugins/front-end-only-users/
]]>i am using wp-ai v2 with oauth.
i granted access to my application (i am admin on my site).
i searched the last 2 hours on the www, and nothing found.
I just want a list of _all_ my registered WP users. extra: filtered by role.
I mean, jeah, i read that only authors are “published” by WP to the api. i know that.
but:
i read also, that i need the permissions or a specific role, or what the heck ever – but how could i give permissions to an application?
when i edit my app in wp i can’t set any permissions. it also doesn’t have any role.
i mean, i could imagine that this isn’t too complicated to archive. and also the thing i read before was: add this to your official API documentation, just as a note in the first few lines. i often read about the problem now, but never saw a solution for it.
Background for my specific problem is:
I have a guild, managed by a wordpress site. i also have a discord server with a bot. what i want to archieve:
i give the permissions to a registered wp user (not an author! just a member) in wordpress, the discord bot calls the wp api, checks the role, and set the permissions equivalent on discord.
discord uses rest api, wp-api is a rest api, perfect.
so, tell me, either what i have to configure to get a _full_ memberlist of registered users from the wp-api or maybe a code_snippet how i have to extend the api.
and yes, i think this is a very common issue here on the api. an example couldn’t be that bad.
sry, but i’m very frustrated, that after hours of digging the only answer i found was nothing…
greetings
https://www.ads-software.com/plugins/rest-api/
]]>https://www.ads-software.com/plugins/expire-users/
]]>How can I achieve it?
Any plugin available or by customizing any available plugins !
Any help is appreciated.
Thanks
https://www.ads-software.com/plugins/ultimate-profile-builder/
]]>See below from what i have:
wpcf7_add_shortcode('postdropdown', 'createbox', true);
function createbox(){
global = $wpdb;
$blogusers = get_users( array( 'fields' => array( 'display_name' ) ) );
$output = "
<select name='cursus' id='cursus' onchange='document.getElementById(\"cursus\").value=this.value;'>
<option></option>";
foreach ( $blogusers as $user );
$output .= "<option value='$user'> $user </option>";
endforeach;
$output .= "</select>";
return $output;
}
? Run code snippetCopy snippet to answer
]]>