Jump to content

Edit History

mlclm

mlclm

 

Quote

in classes/validate.php.

@musicmaster Thanks for the info about validate.php,

I did the following but it still does not work ( see screenshots ) , in my case on PS 1.7 latest version, I am trying to add a <br /> tag ( html line break ) in the category name. In my test I tried to put a hashtag #

726799856_psbug.png.2be824edb172a56a038cbae3515c5a87.png

 

When I put "Category # Test " for example,  I have tried to overwrite the file "Validate.php" , as explained on another topic by redefining the function "isCatalogName"  :

<?php
class Validate extends ValidateCore
{

    public static function isCatalogName($name)
    {
        // simple test
        return !preg_match('/[]/i', $name);
        
    }
}

 

now I should be able to put a hashtag like # but still get the error like on screenshot above. I am using latest version 1.7

I have tried different ways :

- overwritting only the file "Validate.php"
- overwritting Validate.php, but also Category.php and CMSCategory.php where the function "isCatalogName($name)" is called and removing the validation in these files.

- removing the overitten files and editing directly the Core Files in the class directory , then cleared cache, etc.
- I cleared cache in backend and also var/cache files to be sure each time, logged out / logged in administration every time. Refreshed browser cache / Changed browser too !

ps02.jpg.da6e739be1cc56f59f3c9dde944b58f1.jpg

ps01.thumb.jpg.e7a98d8916b309293b6adbeb4ce0aa1e.jpg

It does not work.

 

mlclm

mlclm

 

Quote

in classes/validate.php.

@musicmaster Thanks for the info about validate.php,

I did the following but it still does not work ( see screenshots ) , in my case on PS 1.7 latest version, I am trying to add a <br /> tag ( html line break ) in the category name.

726799856_psbug.png.2be824edb172a56a038cbae3515c5a87.png

 

When I put "Category <br/> Test " for example,  I have tried to overwrite the file "Validate.php" , as explained on another topic by redefining the function "isCatalogName"  :

<?php
class Validate extends ValidateCore
{

    public static function isCatalogName($name)
    {
        // simple test
        return !preg_match('/[]/i', $name);
        
    }
}

 

now I should be able to put a hashtag like # but still get the error like on screenshot above. I am using latest version 1.7

I have tried different ways :

- overwritting only the file "Validate.php"
- overwritting Validate.php, but also Category.php and CMSCategory.php where the function "isCatalogName($name)" is called and removing the validation in these files.

- removing the overitten files and editing directly the Core Files in the class directory , then cleared cache, etc.
- I cleared cache in backend and also var/cache files to be sure each time, logged out / logged in administration every time. Refreshed browser cache / Changed browser too !

ps02.jpg.da6e739be1cc56f59f3c9dde944b58f1.jpg

ps01.thumb.jpg.e7a98d8916b309293b6adbeb4ce0aa1e.jpg

It does not work.

 

mlclm

mlclm

 

Quote

in classes/validate.php.

@musicmaster Thanks for the info about validate.php,

I did the following but it still does not work ( see screenshots ) , in my case I am trying to add a <br /> tag ( html line break ) in the category name.

726799856_psbug.png.2be824edb172a56a038cbae3515c5a87.png

 

When I put "Category <br/> Test " for example,  I have tried to overwrite the file "Validate.php" , as explained on another topic by redefining the function "isCatalogName"  :

<?php
class Validate extends ValidateCore
{

    public static function isCatalogName($name)
    {
        // simple test
        return !preg_match('/[]/i', $name);
        
    }
}

ps02.jpg.da6e739be1cc56f59f3c9dde944b58f1.jpg

now I should be able to put a hashtag like # but still get the error.

I have tried different ways :

- overwritting only the file "Validate.php"
- overwritting Validate.php, but also Category.php and CMSCategory.php where the function "isCatalogName($name)" is called and removing the validation in these files.

- removing the overitten files and editing directly the Core Files in the class directory , then cleared cache, etc.
- I cleared cache in backend and also var/cache files to be sure each time, logged out / logged in administration every time. Refreshed browser cache / Changed browser too !

ps01.thumb.jpg.e7a98d8916b309293b6adbeb4ce0aa1e.jpg

 

It never works. All solutions seem to be outdated maybe in V1.7 ?

 

×
×
  • Create New...