SuperStu
Forum Replies Created
-
Forum: Plugins
In reply to: [Nextend Social Login and Register] Cache interference with W3 Total CacheI am not sure if this helps anyone and not a direct fix for the issues – however, whilst I experience aggressive caching (still undetermined) I made a workaround it by adding a random query string parameter after the user logins using the google_login_redirect_url filter (for Google).
Just incase it gets you through a spot of trouble 🙂
Forum: Plugins
In reply to: [Nextend Social Login and Register] get_avatar WordPress function and NextEndWorks perfectly by the way. 🙂 appreciate the help
Forum: Plugins
In reply to: [Nextend Social Login and Register] get_avatar WordPress function and NextEndyou guys are awesome – appreciate you guiding me through this … looking forward to testing in a minute.
Forum: Plugins
In reply to: [Nextend Social Login and Register] get_avatar WordPress function and NextEndCool, so I can now use the get_avatar and the image scales up well.
However, I am still getting the same gravatar url returned when I use get_avatar_url and not the URL to the wp-content/uploads/nsl_avatars directory path – not that’s its an issue really with the previous step 🙂
maybe I a missing something… anyway the first works.
this is my function
add_action(‘nsl_register_new_user’, ‘nsl_register_activated’, 10, 2);
function nsl_register_activated($user_id) {
$user = new WP_User($user_id);
// add_user_meta($user->ID, ‘wpcf-activated’, $user_id);{ // Edit form ID
//update to a MEMBER role type on Authentication and create PROFILE
wp_update_user( array( ‘ID’ => $user_id, ‘role’ => ‘member’ ) );
$user_info = get_userdata($user_id);
$user_first = ucfirst($user_info->first_name);
$user_last = ucfirst($user_info->last_name);
$avatar = get_avatar_url( $user_id );
$combined = $user_id.”-“.$user_first.”-“.$user_last;$my_post = array(
‘post_title’ => $user_first.” “.$user_last,
‘post_status’ => ‘publish’,
‘post_author’ => $user_id,
‘post_name’ => $combined,
‘post_type’ => ‘profile’,
// meta_input is array of meta fields when inserting into.
‘meta_input’ => array(
‘wpcf-member-profile-display-name’ => $user_first.” “.$user_last,
// adds profile URL to custom field.
‘wpcf-member-profile-picture’ => $avatar,
),
);// Insert the post into the database
wp_insert_post( $my_post );
}};
Forum: Plugins
In reply to: [Nextend Social Login and Register] get_avatar WordPress function and NextEndYou guys are doing great work, appreciate the updates.
Thanks again.
Forum: Plugins
In reply to: [Nextend Social Login and Register] get_avatar WordPress function and NextEndthats a shame looks like the Google people API doe let the option for specifying other sizes, but never mind ill just have to work with 96px
When using the get_avatar() function, you can go down in size, but unfortunately not up in size for the image.
Cheers.
- This reply was modified 5 years, 4 months ago by SuperStu.
Forum: Plugins
In reply to: [Nextend Social Login and Register] get_avatar WordPress function and NextEndCool thanks, this work out OK apart from. One thing.
I’ve created a shortcode to output the image, however I don’t seem to be able to set the size. It’s always 96 x 96 PX no matter the size I specify in the get_avitar size argument.
If I look in the library the images are pulled in at that size. Is there a way to get them at their Max size?
Forum: Plugins
In reply to: [Nextend Social Login and Register] get_avatar WordPress function and NextEndI am using get_avatar_url (not get_avatar) and this seems to return the gravatar, rather than the local stored image url location…
not sure if its related to this (different plugin but same issue)
https://github.com/10up/simple-local-avatars/pull/40
cheers
yea, no worries – I thought as much…
Ill chat via the website about the paid parts.
Forum: Plugins
In reply to: [Advanced Editor Tools] Remove “Add Image” buttonI have been hunting for a solution to this very thing and it’s not too clear that they are not part of the TinyMCE plugin… 🙂
However, if you need the answer and some code, here it is on StackExchange
@bethannon1 I can give you access to a test site if you wish to test…
The same issue for me, see the link to related support ticket with Toolset team
https://toolset.com/forums/topic/all-in-one-seo-and-toolset-confilct/#post-1583963Thanks
exact same issue here, asks me to enter a 2fa code, however there is no option for the code to be entered…
would love to know how to fix it – doesn’t appear anyone has a firm solution as to why or how.
- This reply was modified 6 years, 4 months ago by SuperStu.
Forum: Plugins
In reply to: [WP Dynamic Keywords Injector] title=your_desired_meta_title Not WorkingIt would also be handy if it could be used to dynamically generate Meta Descriptions, and Meta Keywords & and custom metadata as specified… 🙂
Thanks