molokini
Forum Replies Created
-
Hi ,
we have added high priority for the admin role but still the same issue , can’t see the pending user list. then we find out that there is a conflict between admin column pro plugin. any suggestion how we can fix this conflict ?
Thank you.
Hi ,
Thank you for your response. all the admin has a admin role with forum keymaster role assign to it. will check the other settings you have mentioned.
Thank you.
we have tried both the options yesterday and today as well. still the same issue. can’t able to see the users.
Thank you.
Forum: Plugins
In reply to: [Polylang] Polylang + Divi themeHi, Can anyone please give some solution here. DIVI builder is not loading only on Homepage which set as frontpage from the theme customise settings and set page as frontpage. when we disable the polylang – divi builder loads fine.
we have 2 languages UK and US and it’s only happen for UK homepage in backend.
Thank you.
Thank you so much for the help. all been fixed now.
Hello Aswin,
Thank you so much for your help. I can get the results now. one another query. some of the users do not add their profile photo and when I try to add the if, else condition it didn’t work.
$pphoto = ‘user.user_profile_photo‘;
if($pphoto!=”){
// profile photo display here
}
else {
user.avatar
}can you please help how can add condition in code.
Many Thanks
Thanks Carlos,
I will try that tomorrow, is there any reason the older version works fine.
I can try re-enabling the current version tomorrow morning if it helps.
Thanks for your super speedy response and have a nice evening,
Hiya,
I have rolled back to version 1.7.4.1 (random version chosen) and it works as expected.
I have left this on the server as it’s affecting a client website, are you able to reproduce locally this issue, if not I can arrange to put the latest version back on that has this problem,
Thanks,
That sucks you have the same problem nici.
We finally got it to work, turns out the executable bit wasn’t set correctly on our folders, so when we looked at them on WinSCP they looked like folders, but when we tested through browsing the directory structure in Chrome we saw they looked like files.
Once we did this we added this code to a function we have attached to the
um_after_save_registration_detailsaction, this essentially creates another post sit alongside the registered user (a company profile) and this ideally needs to take the logo uploaded.What we found was that the image uploaded into the /wp-content/ultimatemember/temp folder does not get moved into its relevant /wp-content/ultimatemember/<user_id> folder until after this action is fired. (And when it does get moved it gets a different name!! as reflected in the final user profile meta key ‘profile_logo’ in our case as that is the name of the field we created on the Ultimate Member registration form).
So I have written this code:
$image_filename = $submitted['profile_logo']; if(!empty($image_filename)): $base_uploads_folder = wp_upload_dir(); $um_folder = $base_uploads_folder['basedir'].'/ultimatemember/'; $image_url = $um_folder . 'temp/' . $image_filename; $upload_dir = wp_upload_dir(); $image_data = file_get_contents( $image_url ); // move the file into standard WP upload folder hierarchy before // UM hides it away again.... if ( wp_mkdir_p( $base_uploads_folder['path'] ) ): $file = $base_uploads_folder['path'] . '/' . $image_filename; else: $file = $base_uploads_folder['basedir'] . '/' . $image_filename; endif; file_put_contents( $file, $image_data ); // now attach to media library $wp_filetype = wp_check_filetype( $image_url, null ); $attachment = array( 'post_mime_type' => $wp_filetype['type'], 'post_title' => 'User ID '.$user_id.' Profile Photo', 'post_content' => '', 'post_status' => 'inherit' ); $attach_id = wp_insert_attachment( $attachment, $file ); require_once( ABSPATH . 'wp-admin/includes/image.php' ); $attach_data = wp_generate_attachment_metadata( $attach_id, $file ); wp_update_attachment_metadata( $attach_id, $attach_data ); set_post_thumbnail($new_company_pid,$attach_id); endif;In the end we have had to use this as we couldn’t make any sense of Ultimate Member’s profile photo facility that’s built in, it just doesn’t work for us at all, and the documentation is a nightmare to work through, or non existent. In fairness, there are a load of hooks which we are grateful for but the process of finding the docs on them is really badly done.
We may have to do something similar for the user profiles in due course.
Hello,
Yes IN_VARS is only written to by our functions.php no third party plugins.
The redirect doesn’t occur because the code is disabled because it was giving all sorts of wrong dialogs suggesting the user is in Germany when they weren’t for example.
Hope that helps and thanks for understanding my lack of expert knowledge!
Thanks
Hey guys,
Thanks for your help.
The AJAX requests are issued using a standard jQuery AJAX POST request to admin-ajax.php sorry for the slight vagueness on this but I’m not an expert on all this!
Essentially on the ‘wp’ hook, we’re using IP2Location to look up the user’s IP in a database and storing that in a global variable called $IN_LOCATION. This is then put in a localised variable called IN_VARS which has a number of keys, but IN_VARS.in_location is the one that $IN_LOCATION goes in.
Sorry if this all sounds bit obvious but I just need to explain what we have as this is an area of my knowledge that is not at expert level by any stretch of the imagination!
I have set the Javascript file that this is localised into to not be cached but it seems IN_VARS always ends up with cached values, therefore the redirection suggestions end up wrong (as it’s the Javascript that manages the redirections and popups).
Cookies aren’t used in this instance.
The report reference is: ZEOOJTDB
Hope that helps!
Thanks.