Youtube for all :) v 1.8

http://rkstyle.net/bookmarks/view/222/youtube-for-all

How to use youtube videos in elgg
Example and demo
http://rkstyle.net/bookmarks/view/222/youtube-for-all
Step 1:

Open  root_folder['engine/lib/output.php

Go to 77 line : 
Add this

$pee =  preg_replace("/\s*[a-zA-Z\/\/:\.]*youtube.com\/watch\?v=([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i","<iframe width='425' height='350' src='http://www.youtube.com/embed/$1' frameborder='0'></iframe>",$pee);

Step (2)

Save file

Now have youtube links :)

Go to

http://www.youtube.com[your_clip]
example

http://www.youtube.com/watch?v=FHtvDA0W34I&feature=player_embedded
copy

paste in your comment or block, group and see result
Sory for my bad english ....
Bye