• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] create Armenian SEF characters in phpvibe

Started by editamedia,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

editamediaTopic starter

Hallo,
I Have a little problem.

When I add an video with Armenian language title, i get an url like: http://hisustv.com/video/1293/-3-1-/
But i whant this: http://hisustv.com/video/Արթուր-Սիմոնյան-3-քարոզ-1-վիդեոի-մեջ

I've tried delete the function: "$url = preg_replace("/[^a-z0-9]+/","-",strtolower($url));" in location bin/functions.php but when i do this after that i get a blank screen by login/logout.

Is there any other solution for this problem?

sincerely,
Karen
  •  

PHPVibe A.

Hi Karen, you probably broke some syntax and didn't realise.

Replace:
// remove all chars
$url = preg_replace("/[^a-z0-9]+/","-",strtolower($url));
//remove doubled -
$url = str_replace(array('-----','----','---','--'),'-', $url);

with:
$url = str_replace(array('--',' '),'-', $url);


Also, what editor do you use? Some add code on their own or format things.
I use Notepad++ , is free and very good.

editamediaTopic starter

It is done! and it works! Thank you very much. I have review phpvibe on hotscripts.
  •  

PHPVibe A.

Quote from: editamedia on
It is done! and it works! Thank you very much. I have review phpvibe on hotscripts.

My pleasure, and that you very much for the review!

Similar topics (7)