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
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
@Raio : Never do that. Donot edit core files and give advices to edit core files. See http://docs.elgg.org/wiki/Dont_Modify_Core
For the same functionality you can use http://community.elgg.org/plugins/740863/1.4/videos-plugin-for-elgg-18
ty for info :)
Since I do not know xml creation of a plugin will be difficult for me. But if you can show me an example I would be very grateful
@raio - you don't have to create anything, Webgalli is pointing you to a plugin that does it for you
lol realy :? :O nice ...I have good level the php , js mysql jquery flash(as) .Maybe i create plugins for help elgg i love elgg mega cool engine :) i read documentation now and this month i create one plugin :P