
09-15-2008, 10:40 PM
|
|
|
Join Date: Aug 2008
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by AndrewD
Edit includes/local_links_flashsites.php, find the lines:
PHP Code:
"YouTube" => array(
"pattern" => "#http://(www.youtube|youtube)\.com/watch\?v=([\w-]+)#i",
"urlreplace" => "http://www.youtube.com/v/$2",
and replace by
PHP Code:
"YouTube" => array(
"pattern" => "#http://([a-z]+.youtube|youtube)\.com/watch\?v=([\w-]+)#i",
"urlreplace" => "http://$1.com/v/$2",
This will work with any alphabetical alternative to www.youtube
Please note that a number of the video sites originally coded in that 'extra' may not work any longer - I don't have time to keep checking them an dthe sites do tend to change the formats of their urls.
|
Works great, thank you
|