Happy New Year 2021

A New Year is like a blank book, and the pen is in your hands. It is your chance to write a beautiful story for yourself. Happy New Year!

SignUp Now!
  • We've added extra Spam Protection. if you get problem with account registration / registration rejected. please contact us
Frank

[XD] Turkish Friendly URL 2.0.3

Change URL structure for Turkish characters.

  • Works everywhere (forums, threads, etc.), with minimal conflict.
Warnings


  • Don't upgrade this add-on with old versions (File directories have been changed.)
  • Compatible XF versions is 2.x+
Before install be sure, Use full friendly URLs option is enabled.









For those who have similar demands regarding url romanization simply modify it to your own need by modifying the src/addons/XDinc/FriendlyURL/Listener.php file.

Code:
 $mapLower = [
            'o' => ['ö'],
            'c' => ['ç'],
            'g' => ['ğ'],
            's' => ['ş'],
            'u' => ['ü'],
            'a' => ['â'],
            'e' => ['ê'],
            'i' => ['ı'],
            'i' => ['î'],
            'i' => ['ê'],
            '-' => ['.'],
            '_' => ['='],
            '_' => ['?'],
            '_' => ['*'],
            '_' => [','],
            '_' => [';'],
            '_' => [')'],
            '_' => ['('],
            '_' => ['{'],
            '_' => ['}'],
            '_' => ['['],
            '_' => [']'],
            '_' => ['!'],
            '_' => ['+'],
            '_' => ['%'],
            '_' => ['&'],
            '_' => ['#'],
            '_' => ['$'],
            '' => ['̉', '̣', '̃', '̀', '́'],
        ];

        $mapUpper = [
            'O' => ['Ö'],
            'C' => ['Ç'],
            'G' => ['Ğ'],
            'S' => ['Ş'],
            'U' => ['Ü'],
            'A' => ['Â'],
            'E' => ['Ê'],
            'İ' => ['I'],
            'İ' => ['Î'],
            'İ' => ['Ê'],
            '-' => ['.'],
            '_' => ['='],
            '_' => ['?'],
            '_' => ['*'],
            '_' => [','],
            '_' => [';'],
            '_' => [')'],
            '_' => ['('],
            '_' => ['{'],
            '_' => ['}'],
            '_' => ['['],
            '_' => [']'],
            '_' => ['!'],
            '_' => ['+'],
            '_' => ['%'],
            '_' => ['&'],
            '_' => ['#'],
            '_' => ['$'],
            '' => ['̉', '̣', '̃', '̀', '́'],
        ];

The first arrays are for lowercase letters (mapLower ) and the second set are for uppercase letters (mapUpper )
Write the letters you want to be Romanized to the right like you see above.
Author
Frank
Downloads
4
Views
287
First release
Last update
Rating
4.00 star(s) 2 ratings

More resources from Frank

Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock