Resource icon

XF2 Addons [XD] Turkish Friendly URL 2.0.3 2.0.3
[XD] Turkish Friendly URL 2.0.3

[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'],
            'İ' => ['Î'],
            'İ' => ['Ê'],
            '-' => ['.'],
            '_' => ['='],
            '_' => ['?'],
            '_' => ['*'],
            '_' => [','],
            '_' => [';'],
            '_' => [')'],
            '_' => ['('],
            '_' => ['{'],
            '_' => ['}'],
            '_' => ['['],
            '_' => [']'],
            '_' => ['!'],
            '_' => ['+'],
            '_' => ['%'],
            '_' => ['&'],
            '_' => ['#'],
            '_' => ['$'],
            '' => ['̉', '̣', '̃', '̀', '́'],
        ];
MrBoss
Author MrBoss
Level
0
10 pts
2.0.3 Version
1 Downloads
227 Views
Published
Updated
0.00 star(s) 0 ratings Average Rating (0)
No Tags

More files from MrBoss

Customize Your XenForo 2 Community

[XD] Turkish Friendly URL 2.0.3 provides ultimate customization to your XenForo 2 community website! Enjoy powerful features that make your site stand out. Combine this add-on with XenForo 2 styles from our site and kickstart your online community now.

Why Download Our XenForo 2 Add-ons?

  • Easily enhance the quality of your XenForo online community.
  • Expand your XenForo 2 functionality with thousands of unique options.
  • Create unbelieveable user-experiences with advanced features.

Explore Other Resources

Are you looking for something different? Explore our thousands of unique and special XenForo 2 add-ons, available to download right now. MrBoss shared this wonderful resource to you for free, so remember to share your appreciation by liking the resource and reviewing it.

Get started today and make your next project truly unique.

Top Bottom