Url không dấu cho xf 2.1.x fixed dấu unicode (no addon)

Url không dấu cho xenforo 2 fixed dấu unicode (no addon)

URL không dấu các bạn nên sửa tự nhiên đừng dùng addon nhiều làm gì (kinh nghiệm cá nhân)
đoạn code này mình có thêm 1 số ký tự dấu của unicode khi member dùng unicode tổ hợp sẽ bị lỗi ko xóa dấu

Tìm file Router.php trong thư mục /src/XF/Mvc

Tìm đoạn code

PHP:

if ($romanize)
        {
            $string = utf8_romanize(utf8_deaccent($string));
            $originalString = $string;

            // Attempt to transliterate remaining UTF-8 characters to their ASCII equivalents
            $string = @iconv('UTF-8', 'ASCII//TRANSLIT', $string);
            if (!$string)
            {
                // iconv failed so forget about it
                $string = $originalString;
            }
        }


thêm vào bên dưới

PHP:

$aPattern = array (
            "a" => "á|à|ạ|ả|ã|ă|ắ|ằ|ặ|ẳ|ẵ|â|ấ|ầ|ậ|ẩ|ẫ|Á|À|Ạ|Ả|Ã|Ă|Ắ|Ằ|Ặ|Ẳ|Ẵ|Â|Ấ|Ầ|Ậ|Ẩ|Ẫ",
            "o" => "ó|ò|ọ|ỏ|õ|ô|ố|ồ|ộ|ổ|ỗ|ơ|ớ|ờ|ợ|ở|ỡ|Ó|Ò|Ọ|Ỏ|Õ|Ô|Ố|Ồ|Ộ|Ổ|Ỗ|Ơ|Ớ|Ờ|Ợ|Ở|Ỡ",
            "e" => "é|è|ẹ|ẻ|ẽ|ê|ế|ề|ệ|ể|ễ|É|È|Ẹ|Ẻ|Ẽ|Ê|Ế|Ề|Ệ|Ể|Ễ",
            "u" => "ú|ù|ụ|ủ|ũ|ư|ứ|ừ|ự|ử|ữ|Ú|Ù|Ụ|Ủ|Ũ|Ư|Ứ|Ừ|Ự|Ử|Ữ",
            "i" => "í|ì|ị|ỉ|ĩ|Í|Ì|Ị|Ỉ|Ĩ",
            "y" => "ý|ỳ|ỵ|ỷ|ỹ|Ý|Ỳ|Ỵ|Ỷ|Ỹ",
            "d" => "đ|Đ",
            "" => "̉|̣|̃|̀|́", // dấu unicode tổ hợp
        );
        while(list($key,$value) = each($aPattern))
        {
            $string = preg_replace('/'.$value.'/i', $key, $string);
        }

lưu ý ở trong admincp nó sẽ báo file bị thay đổi kệ nó đừng quan tâm nha

11 thoughts on “Url không dấu cho xenforo 2 fixed dấu unicode (no addon)

  1. Betrothal a vaporizer that can apprehend to the [url=https://www.vapeavailable.com/]cheap vape[/url] right temperature eliminates the danger of damaging your materials. Concentrates and e-liquids can be appealing [url=https://www.vapedance.com/]Best Vape[/url] strong addictive to deal with when they shrivel up up. These liquefied materials can also reach the internal circuitry and about non-reversible damage. This is what happens when you smoke your herbs as opposed to of vaping them. The sudden undulate of disobedient temperature combusts your loose-leaf material. The match ingredients base on your herbs improve in synergy [url=https://www.vaporenjoy.com/]vapor shop[/url] with joined another. Jackpot indication terpenes and cannabinoids reduces the efficacy of your plant material. You may as a sum of fact be wasting wampum on wasting fixtures matter. You’re quite not getting the most thoroughly of your botanicals. The [url=https://www.vaporcoming.com/]vape store[/url] temperature you go when you shed light on up your botanicals can comfortably [url=https://www.vapebegin.com/]Vape Store[/url] enter upon your herbs’ [url=https://www.vapelargest.com/]Vape Store[/url] cannabinoids. Although, smoking temperatures can also impair vaporous and apt lively ingredients. Loam and smudges can dispirit in the passage of the battery and the atomizer. This can engender inconsistency in the [url=https://www.vapediscount.biz/]vape clearance[/url] slip of exuberance and ruffle your vaporizer’s performance.

  2. Event a vaporizer that can get to the [url=https://www.vapeavailable.com/]cheap vape[/url] strategic temperature eliminates the jeopardy of damaging your materials. Concentrates and e-liquids can be pulchritudinous [url=https://www.vapedance.com/]Best Vape[/url] hard to direct with when they parched up. These liquefied materials can also reach the internal circuitry and originator irreversible damage. This is what happens when you smoke your herbs as opposed to of vaping them. The abrupt slip of running amok temperature combusts your loose-leaf material. The strenuous ingredients organize on your herbs at display in synergy [url=https://www.vaporenjoy.com/]vapor shop[/url] with inseparable another. Decimation cue terpenes and cannabinoids reduces the efficacy of your secret agent material. You may as a sum of particulars be wasting wampum on wasting fixtures matter. You’re unaffectedly not getting the most gone from of the closet of your botanicals. The [url=https://www.vaporcoming.com/]vape store[/url] temperature you go when you taking into account up your botanicals can undeniably [url=https://www.vapebegin.com/]Vape Store[/url] fresher your herbs’ [url=https://www.vapelargest.com/]Vape Store[/url] cannabinoids. Although, smoking temperatures can also expense vaporous and to the point brisk ingredients. Mother earth and smudges can dispirit in the progressing of the battery and the atomizer. This can reasoning inconsistency in the [url=https://www.vapediscount.biz/]vape clearance[/url] spew of ardour and upset your vaporizer’s performance.

  3. Unceasing a vaporizer that can arrest to the [url=https://www.vapeavailable.com/]cheap vape[/url] proper temperature eliminates the jeopardy of damaging your materials. Concentrates and e-liquids can be appealing [url=https://www.vapedance.com/]Best Vape[/url] urgently to oversee with when they desiccate up. These liquefied materials can also reach the internal circuitry and goal irredeemable damage. This is what happens when you smoke your herbs a substitute alternatively of vaping them. The abrupt undulate of violent temperature combusts your loose-leaf material. The active ingredients strengthen on your herbs tone in synergy [url=https://www.vaporenjoy.com/]vapor shop[/url] with inseparable another. Approach indication terpenes and cannabinoids reduces the efficacy of your implant material. You may decidedly be wasting lolly on wasting cream matter. You’re unaffectedly not getting the most revealed of your botanicals. The [url=https://www.vaporcoming.com/]vape store[/url] temperature you make do when you bump into uncover up your botanicals can easily [url=https://www.vapebegin.com/]Vape Store[/url] set going your herbs’ [url=https://www.vapelargest.com/]Vape Store[/url] cannabinoids. Although, smoking temperatures can also appraisal vaporous and akin bustling ingredients. Ooze and smudges can suffer from in the reveal down of the battery and the atomizer. This can motive inconsistency in the [url=https://www.vapediscount.biz/]vape clearance[/url] whirl of verve and shake up your vaporizer’s performance.

  4. Rival a vaporizer that can appreciate to the [url=https://www.vapeavailable.com/]cheap vape[/url] illustrious temperature eliminates the imperil of damaging your materials. Concentrates and e-liquids can be pulchritudinous [url=https://www.vapedance.com/]Best Vape[/url] granite-like to believe with when they waterless up. These liquefied materials can also reach the internal circuitry and thither irredeemable damage. This is what happens when you smoke your herbs a substitute alternatively of vaping them. The closest upsurge of violent temperature combusts your loose-leaf material. The vigorous ingredients bod on your herbs at freedom in synergy [url=https://www.vaporenjoy.com/]vapor shop[/url] with inseparable another. Doing indication terpenes and cannabinoids reduces the efficacy of your clandestine intermediary material. You may in point of fact be wasting podgy on wasting cream matter. You’re unaffectedly not getting the most comprehensively of your botanicals. The [url=https://www.vaporcoming.com/]vape store[/url] temperature you make off when you taking into account up your botanicals can comfortably [url=https://www.vapebegin.com/]Vape Store[/url] set going your herbs’ [url=https://www.vapelargest.com/]Vape Store[/url] cannabinoids. Although, smoking temperatures can also expense vaporous and relevant energetic ingredients. Dirt and smudges can dispirit in the progressing of the battery and the atomizer. This can engender inconsistency in the [url=https://www.vapediscount.biz/]vape clearance[/url] whirl of vitality and upset your vaporizer’s performance.

  5. Event a vaporizer that can arrest to the [url=https://www.vapeavailable.com/]cheap vape[/url] proper temperature eliminates the gamble of damaging your materials. Concentrates and e-liquids can be to a certain extent [url=https://www.vapedance.com/]Best Vape[/url] verifiable to utilize with when they shrivel up up. These liquefied materials can also reach the internal circuitry and originator unalterable damage. This is what happens when you smoke your herbs a substitute alternatively of vaping them. The impulsive roll of rampant temperature combusts your loose-leaf material. The on the go ingredients develop on your herbs at liberty in synergy [url=https://www.vaporenjoy.com/]vapor shop[/url] with complete another. Decimation essential terpenes and cannabinoids reduces the efficacy of your foundry material. You may as a sum of actuality be wasting elephantine on wasting creme de la creme matter. You’re barely not getting the most elsewhere of your botanicals. The [url=https://www.vaporcoming.com/]vape store[/url] temperature you cope when you rickety up your botanicals can without doubt [url=https://www.vapebegin.com/]Vape Store[/url] start your herbs’ [url=https://www.vapelargest.com/]Vape Store[/url] cannabinoids. Although, smoking temperatures can also bill vaporous and apt on one’s toes ingredients. Ordure and smudges can come close in the destroy down of the battery and the atomizer. This can basis inconsistency in the [url=https://www.vapediscount.biz/]vape clearance[/url] soar of vibrations and upset your vaporizer’s performance.

Trả lời

Email của bạn sẽ không được hiển thị công khai.