Forum Replies Created

Viewing 15 replies - 16 through 30 (of 957 total)
  • Thread Starter a4jp

    (@a4jpcom)

    πŸ‘‡πŸ”»πŸ‘‡ these emoji characters just became black diamonds with question marks. Please try them.

    Thread Starter a4jp

    (@a4jpcom)

    Can the filter file be used to create a new image sizes or just adjust the sizes?

    I want the new size to work in
    rencontre_mini_portrait.php for the images in rencontre_my_home.php
    rencontre_sidebar_top.php for the users image
    rencontre_search_results.php for larger pics

    I used this code below to check which sizes exist in each file but lots only contain

    miniPhoto
    miniPhotoRetina
    miniPhotoWebp

    <?php
    echo ''; print_r($u0); echo '';
    ?>

    <?php
    echo ''; print_r($u); echo '';
    ?>


    I can see rencontre_portrait.php contains lots of sizes though.

    full
    mini
    miniWebp
    grande
    over
    miniRetina
    grandeRetina
    grandeRet
    fullRetina

    I tried adding a new size in rencontre_filter.php as suggested. But now don’t know how to call the image through code.

    function myRencImgSize($sizes) {
    // Modify the '-petite' size
    foreach($sizes as $key => $size) {
    if($size['label'] == '-petite') {
    $sizes[$key] = array('label' => '-petite', 'width' => 120, 'height' => 120, 'quality' => 75);
    }
    }

    // Modify the '-grande' size
    /*foreach($sizes as $key => $size) {
    if($size['label'] == '-grande') {
    $sizes[$key] = array('label' => '-grande', 'width' => 400, 'height' => 500, 'quality' => 75);
    }
    }*/

    // Add a new '-larger' size
    $sizes[] = array('label' => '-larger', 'width' => 400, 'height' => 500, 'quality' => 70);

    return $sizes;

    }
    add_filter('rencImgSize', 'myRencImgSize', 10, 1);

    I’m not sure how to regenerate the images either as the are made with the filter file.

    I also noticed the Libre shortcode wasn’t working. Maybe it is because I had to create custom genders.

    Thread Starter a4jp

    (@a4jpcom)

    I have been going through all the code to try and figure out how stuff works and think my first message here was a bit wrong. Sorry about that.

    On the homepage, I wanted to replace small images like the mini circle images with a new size because they were very small. But after thinking a bit about it I don’t wanna create heaps of new pictures on the server so if possible I just want to replace them with the libre sized ones (260×195).

    And also replace the mini circle images for the search results with the libre sized ones.

    Is there an easy way to do this?

    For the homepage:

    In rencontre_mini_portrait.php I can see the image code is here but can’t figure out how to get the larger images here. I have tried using different variations of the code names like librePhoto, etc.

                           miniPhotoWebp)) { ?>
    <picture <?php echo $title['thumb']; ?>>
    <source class="w3-circle" srcset="<?php echo $u->miniPhotoWebp; ?>" type="image/webp" style="width:<?php echo $photoWidth; ?>px;" alt="<?php echo $u->display_name; ?>">
    <source class="w3-circle" srcset="<?php echo $u->miniPhoto; ?>" type="image/jpeg" style="width:<?php echo $photoWidth; ?>px;" alt="<?php echo $u->display_name; ?>">
    <!--gcr1mp r_mini_portrait miniPhoto-->
    <img class="w3-circle2" src="<?php echo $u->miniPhoto; ?>" srcset="<?php echo $u->miniPhotoRetina; ?>" style="width:260px/*< ?php echo $photoWidth; ?>px*/;" alt="<?php echo $u->display_name; ?>" />
    </picture>
    <!--gcr1mp r_mini_portrait-->
    <?php } else { ?>

    <!--gcr2mp r_mini_portrait-- miniPhoto><img class="w3-circle" src="<?php echo $u->librePhoto; ?>" srcset="<?php echo $u->librePhotoRetina; ?>" style="width:260px/*< ?php echo $photoWidth; ?>px*/;" alt="<?php echo $u->display_name; ?>" <?php echo $title['thumb']; ?> />
    <?php } ?>

    And in rencontre_my_home.php

    <style type="text/css">.rencMiniPortrait{width:<?php echo ($photoWidth+120); ?>px;min-width:<?php echo ($photoWidth+220); ?>px}@media(max-width:600px){.rencMiniPortrait{width:<?php echo ($photoWidth+68); ?>px;min-width:<?php echo ($photoWidth+68); ?>px}}</style>
    <div class="rencMyHome" style="margin-left:-8px;margin-right:-8px;">
    <?php if(count($uFeatProf)) { ?>

    <!--roughly line 859 of inc r_widget.php search for $feat-->
    <div class="featuredBox w3-section w3-clear">
    <div class="w3-container w3-xlarge w3-renc-titc"><?php _e('Featured profiles','rencontre');?></div>
    <?php foreach($uFeatProf as $u) {
    RencontreWidget::f_miniPortrait($u->user_id,((!empty($rencOpt['onlyphoto']) && !$mephoto)?1:0),$photoWidth);
    } ?>

    </div>

    <?php } ?>
    <?php if(!empty($rencOpt['anniv']) && !isset($rencCustom['born']) && count($uBirthday)) { ?>

    <div class="birthdayBox w3-section w3-clear">
    <div class="w3-container w3-xlarge w3-renc-titc"><?php _e('Today\'s birthday','rencontre');?></div>
    <?php foreach($uBirthday as $u) {
    RencontreWidget::f_miniPortrait($u->user_id,((!empty($rencOpt['onlyphoto']) && !$mephoto)?1:0),$photoWidth);
    } ?>

    </div>
    <?php } ?>

    <?php if(!empty($myHomeAddBox)) echo $myHomeAddBox; ?>

    <?php if(!empty($rencOpt['ligne']) && count($uLine)) { ?>

    <div class="onlineBox w3-section w3-clear">
    <div class="w3-container w3-xlarge w3-renc-titc">

    <?php if(!empty($rencOpt['home'])) { ?>
    <a href="javascript:void(0)" onClick="document.forms['rencLine'].submit();"><?php _e('Online now','rencontre'); ?></a>
    <?php } else { ?>
    <?php _e('Online now','rencontre'); ?>
    <?php } ?>
    </div>
    <?php foreach($uLine as $u) {
    RencontreWidget::f_miniPortrait($u->user_id,((!empty($rencOpt['onlyphoto']) && !$mephoto)?1:0),$photoWidth);
    } ?>

    </div>
    <?php } ?>

    I just need to figure out how to use different size images now. Most the users are saying the design looks really old so I’m try to make it look a bit nicer if possible.

    Thread Starter a4jp

    (@a4jpcom)

    Thank you. It will be so useful to see who is leaving to figure out what we need to change or find out what users wanted.

    Thread Starter a4jp

    (@a4jpcom)

    Thank you for the reply and advice.

    Does this code just get added to the functions.php file?

    Could you give reference to all the sizes please?

    miniPhoto = -petite

    In the future, a setting to change each image size or make the plugin more responsive would be great. I have tried to do it manually but the code is so complicated. Images are always too small or blurry if made bigger.

    • This reply was modified 1 year, 6 months ago by a4jp.
    Thread Starter a4jp

    (@a4jpcom)

    Any way to fix this?

    Thread Starter a4jp

    (@a4jpcom)

    Please don’t mark my post as resolved when the problem is not resolved. This is an accessibility and SEO problem. I’m not signing up to your website to send you the same report I have already sent here. Please read the WordPress rules against doing that. 17 people have told you this is a problem there as well. Isn’t that enough to fix this? Are the people there with accounts all paying customers? Do you allow people to upvote bugs without logging in? You should be able to collect data on problems even if you value the data sent in from registered users more. I guess this is a much bigger problem but you only have the numbers of users that were annoyed enough to register and report the bugs.

    Thread Starter a4jp

    (@a4jpcom)

    I just updated but it didn’t fix the URL problem. It is really easy to fix if you just use the PHP code built into WordPress. I’m also getting the same problem on regular installs as well.

    You can use any image I even tried a random PNG from the web and couldn’t resize it using the sliders you have.

    Thread Starter a4jp

    (@a4jpcom)

    1. Yes.
    2. The width and height aren’t changing. My logo works in regular WordPress installs. I made the file so I know it is okay.
    Thread Starter a4jp

    (@a4jpcom)

    Is the plugin broken now?

    It would be cool if we could set a role to check which plugin registrations are coming from. My registration form is getting spammed lots by automated bots.

    You have to manually tick the boxes as far as I know.

    Hi @bradyvercher
    Sorry for asking here but is there any chance of getting the legacy widget of Simple Page Sidebars updated to a block so it shows up in the widget area? The old Gutenburg fix for legacy widget previewsΒ #32260 isn’t working in WordPress 6.61 so legacy widgets become white and just don’t show up anymore unless they are clicked. The code just needs a few tweaks to work as it uses the old Classic Code now.

    Thread Starter a4jp

    (@a4jpcom)

    POEdit doesn’t compile mo files properly for some reason. BetterPOEditor is great and all the files compiled by this free program work.

    Thread Starter a4jp

    (@a4jpcom)

    I’m not sure why but if I edit the po file with a text editor and then compile it the changes don’t show up. I’ll try removing the plugin and uploading all the files again. Are all your entries translating properly?

Viewing 15 replies - 16 through 30 (of 957 total)