Tagged: 

  • #2122

    jirawat
    Participant

    657

    generate link (ThemeqxEstate)

    Hi,
    I think generate link for new ad is not support Thai language,
    Please help me support it.

    Thank,
    Jirawat B.

Viewing 7 replies - 1 through 7 (of 7 total)
  • #2123

    Could you please share your website with that URL? I will check it

    Best Regards

    #2124

    jirawat
    Participant

    http://www.madooproperty.com/
    – New regular ads –> คอนโด ละติจูด เอแบค บางนา

    #2125

    jirawat
    Participant

    Hi ,
    Please update status for this issue to me,

    Thanks,
    Jirawat B.

    #2132

    Hi

    To fix this issue, please go to /root/source/app/helpers.php

    search for the code

    
    function unique_slug($title = '', $model = 'Ad'){
        $slug = str_slug($title);
        //get unique slug...
        $nSlug = $slug;
        $i = 0;
    
        $model = str_replace(' ','',"\App\ ".$model);
        while( ($model::whereSlug($nSlug)->count()) > 0){
            $i++;
            $nSlug = $slug.'-'.$i;
        }
        if($i > 0) {
            $newSlug = substr($nSlug, 0, strlen($slug)) . '-' . $i;
        } else
        {
            $newSlug = $slug;
        }
        return $newSlug;
    }

    Replace it with below code

    
    function unique_slug($title = '', $model = 'Ad'){
        $slug = str_slug($title);
        if ($slug === ''){
            $string = mb_strtolower($title, "UTF-8");;
            $string = preg_replace("/[\/\.]/", " ", $string);
            $string = preg_replace("/[\s-]+/", " ", $string);
            $slug = preg_replace("/[\s_]/", '-', $string);
        }
    
        //get unique slug...
        $nSlug = $slug;
        $i = 0;
    
        $model = str_replace(' ','',"\App\ ".$model);
        while( ($model::whereSlug($nSlug)->count()) > 0){
            $i++;
            $nSlug = $slug.'-'.$i;
        }
        if($i > 0) {
            $newSlug = substr($nSlug, 0, strlen($slug)) . '-' . $i;
        } else
        {
            $newSlug = $slug;
        }
        return $newSlug;
    }

    And from the next entry, your issue will be fixed

    Best Regards

    #2133

    jirawat
    Participant

    Hi,
    It ‘s ok, issue is already fixed.
    Thank you for good support.

    Thanks.

    #2134

    jirawat
    Participant

    hi,
    I have some question, How maximum size for images file on ads.

    Thanks.

    #2135

    jirawat
    Participant

    Hi,
    I found progress_bar for upload image in your code, but it not display on screen, Can you help me display progress_bar?

    Thanks,
    Jirawat B

Viewing 7 replies - 1 through 7 (of 7 total)

Purchase for access

Buy a copy of ThemeqxEstate – Laravel Real Estate Property Listing Portal for access to our member center.

Buy