stephanefromain
Forum Replies Created
-
Forum: Plugins
In reply to: [Video & Photo Gallery for Ultimate Member] Edit images of other subscribersI TRIED THIS CODE BUT WITHOUT SUCCESS /
if ( ! function_exists( ‘um_gallery_can_moderate’ ) ) {
function um_gallery_can_moderate() {
//get role setting
$allowed_roles = um_gallery_pro_get_option( ‘allowed_roles’ );
// Ajoutez le r?le “Subscriber” à la liste des r?les autorisés
$allowed_roles[] = ‘subscriber’;
// Reste du code reste inchangé
}
}if ( ! function_exists( ‘um_gallery_allowed_on_profile’ ) ) {
function um_gallery_allowed_on_profile() {
//get role setting
$allowed_roles = um_gallery_pro_get_option( ‘allowed_roles’ );
// Ajoutez le r?le “Subscriber” à la liste des r?les autorisés
$allowed_roles[] = ‘subscriber’;
// Reste du code reste inchangé
}
}Forum: Plugins
In reply to: [Video & Photo Gallery for Ultimate Member] Edit images of other subscribersHello and thank you very much for your feedback!
How can we proceed ?I can send you the elements via PM if necessary in order to access the development site?
Thank you in advance for your feedback Sincerely
PS: there is WordPress file manager and code snippets installed on the site.
- This reply was modified 1 year, 4 months ago by stephanefromain.
- This reply was modified 1 year, 4 months ago by stephanefromain.
Thank you very much, it works perfectly!!
- This reply was modified 1 year, 5 months ago by stephanefromain.
I tried this but it doesn’t work
function um_filter_mime_types( $mime_types ) {
$mime_types[‘webp’] = ‘image/webp’;
return $mime_types;
}
add_filter( ‘upload_mimes’, ‘um_filter_mime_types’ );I found the “Images to WebP” plugin which is able to convert images in the upload/UM folder. Unfortunately, even if the images are converted to jpeg.webp, only .jpeg are served to visitors
Maybe if UM’s footage was stored in the media library it would work?
Hello and thank you for this quick feedback Missveronica!
I installed and configured the plugin, unfortunately, the images from UM are still in Jpeg or Png format even after a new download. Could a specific code help? I’ll tell you that I’ve been working with UM for more than three years now and I’m really delighted, but now that my site is growing, I find myself facing this page loading problem. The images I’m talking about are stored in upload/ultimatememberif logged in user = billing_city 57 = paris
All directory results = all profiles billing_city_57 = parisThere is an option in the account settings to allow personalized break messages but when it is not checked, the field is still present in the user account?
I reformulate my question because I realize when I am disconnected from Admin the fields have disappeared.
Because I only want to make the personalized message disappear in the account and leave only the choice account suspended or not
Hi, I had another idea. I could generate an email using a form and for that I would have to be able to retrieve the profile email to automatically insert it into the form, but how do I retrieve the profile email? in html or something?
Exemple profil :
<div id=”um_field_17856_user_email” class=”um-field um-field-text um-field-user_email um-field-text um-field-type_text” data-key=”user_email”><div class=”um-field-label”><label for=”user_email-17856″>Adresse e-mail</label><div class=”um-clear”></div></div><div class=”um-field-area”><div class=”um-field-value” id=”user_email-17856″>[email protected]</div></div></div>
Hello and thank you very much for this feedback!
I inserted the code but it does not generate an email.
In addition, the profile only shows the profile picture since and not the full profile?Also, I want a non-logged-in user to be able to view the profile and then generate an email to the profile owner.
If you have a lead, I’m an entrepreneur.
Many thanks in advance,
Yours, Stephaneonly when someone else visits their profile
The code is an example of what it is possible to do, I found it on the site of one of the developers of the ultimate member plugin, but I don’t think I have the skill to adapt it