New Landing How can we help? Themeforest Theme Support Dante WPML / One of your php scripts

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Dante
  • #119646
    AeonStudio
    Member
    Post count: 29

    Hi,

    We’re having an issue with one of your php script :

    For Dante 2.66
    Script Aq_resizer-1x.php
    Line 35
    //check if $img_url is local
    if(strpos( $url, home_url() ) === false) {
    $image = array (
    0 => $url,
    1 => $width,
    2 => $height
    );
    return $image;
    }

    Everything is ok with the original version of our website which is in English.

    Our issue :
    We’re using a WPML plugin to get a norwegian version.
    Consequently, the url pattern is « customed » with ?lang=nb

    >> Because of this, the script doesn’t work and « return » the image without any resize.

    >> Consequently the thumbnails and featured images are not in the right size (please check the attached screenshots).

    Could you please help us with this ?

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #119827
    AeonStudio
    Member
    Post count: 29

    Hi,
    any idea ?
    Thanks

    #119830
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please find this code:-

    if(strpos( $url, home_url() ) === false) {
    
    Change to :-
    if(strpos( $url, 'http://www.example.com/' ) === false) {

    Thanks
    Mohammad

    #119868
    AeonStudio
    Member
    Post count: 29

    Thanks

    #119870
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Thanks 🙂
    With Best Regards
    Mohammad

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register