Automatically generate the correct link

For example:

link with polish characters looks like this: http://www.areavis.com/m/humor/view/Niedaleko-pada-jabłko-od-jabłoni-18-zdjęć
link without polish characters will look like this: http://www.areavis.com/m/humor/view/Niedaleko-pada-jablko-od-jabloni-18-zdjec

but without polish characters link not working...? I want to generate a URL automatically without polish characters. How to do it? Please help

Quote · 4 Sep 2014
if anyone can help? It's very important. My server support without help from BoonEx don't know where is the problem
Quote · 5 Sep 2014

Have a look at the templates/base/scripts/BxBaseConfig.php and look for the variable

$bAllowUnicodeInPreg = true; // allow unicode in regular expressions

 

The BxDolTwigModule.php (used by groups and many more modules) checks the uri using that variable.

 

        if ($GLOBALS['oTemplConfig']->bAllowUnicodeInPreg)
            $sReg = '/^[\pL\pN\-_]+$/u'; // unicode characters
        else
            $sReg = '/^[\d\w\-_]+$/u'; // latin characters only

        if (!preg_match($sReg, $sUri)) {
            $this->_oTemplate->displayPageNotFound ();
            return false;
        }

Changing this setting most likely means that entries with polish characters in the uri will no longer be displayed.

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 5 Sep 2014

Thanks for reply!

I have just changed the mentioned variable from true to false

root@server2 [~]# grep bAllowUnicodeInPreg /home/areavis/public_html/templates/base/scripts/BxBaseConfig.php
//var $bAllowUnicodeInPreg = true; // allow unicode in regular expressions
var $bAllowUnicodeInPreg = false; // allow unicode in regular expressions

Should this affect existing urls or just the new ones? because unfortunately I still display polish characters in the link

Quote · 5 Sep 2014

Changing this setting most likely means that entries with polish characters in the uri will no longer be displayed.

So, it will only work for new URIs and existing URIs will display "page not found"

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 5 Sep 2014

I made these changes and, unfortunately, still displays the Polish characters (also in new link).
I also depends on this so as not to lose the previous links with Polish characters. Is it possible?


Quote · 5 Sep 2014

So in dolphin is not possible to not appear, for example polish characters in the link?

Quote · 8 Sep 2014

Could it be that the module does not support the setting?

I suggest you contact the developer of the module for a solution

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 8 Sep 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.