Hi, I just bought a wallpaper script. The issue is that the script automatically generates categories from folders. The folders have special characters in filenames. And the script generates e.g.: category - pÅ™Ãklad /pÅ™Ãklad/wall.jpg I need to generate: /priklad/wall.jpg. Is there any easy way how to do that?
Hi, Yes you can edit the php code, Here is the best php function that can help you in this <?php $test="pÅ™Ãklad"; print $test=str_replace("Å™", "r", $test); // Out put will be "prÃklad" print $test=str_replace("Ã", "i", $test); // Out put will be "priklad" ?> Thanks
Hi , If you tell me the script name i can help you that in fixing too as i am also running 4 wallpaper sites thanks
Sure, its CollectPHP's website creator http://www.collectphp.com/products/wallpaper_site_creator/ I need to translate it, but this is the first bigger problem . Thanks
Hi, I think it is paid script and i am not using this system on any of my site. sorry i can't help , if you can send me the files may be i can see and let you know what changes required. Thanks
I said "I bought". Yes, it is a paid script. 20 USD here on DP. PM me pls with scripts you are using. I will try to do it with the author. Thanks a lot ;-).
if there's a lot of characters to be replaced i would recommend preg_replace over str_replace. ket it all out the way in one shot. $pattern = array("/i/", "/r/", "/t/"); $replace = array(" eye", " are", " tee"); echo preg_replace($pattern, $replace, "dirt"); PHP: