Ray J's plugins:
This plugin is a extension of Cash´s Video Embed plugin. It allows video embedding in ELGG content. Just put the URL in blog posts, comments, messages, pages and the wire and video is displayed.
The plugin doesn't make changes in views and doesn't store or modify entities. It just parses the content, through views extending, and shows the video. If you disable the plugin, the video URL is displayed again.
The initial version supports Youtube, Vimeo and Metacafe. Others formats is on the way.
Notes:
If Cash's Embed Video Plugin is enabled, Embed Extender will use the latest version of the Cash's library. Otherwise, the plugin will use a own copy of Cash's library. The latest version of Cash's plugin can be found here: http://community.elgg.org/pg/plugins/project/384562/developer/costelloc/embed-video
The plugin needs Cash´s Eager Widgets to work perfectly in profile pages. The latest version can be found here: http://community.elgg.org/pg/plugins/project/535997/developer/costelloc/eager-widgets
The plugin doesn't show embebed videos in Riverdashboard, because the River shows only the first 200 characters of the message.
Notes for 1.8:
This plugin uses a 1.8 beta version of Cash´s Embed library. An update will be released with Cash´s official 1.8 library. (Don´t worry. The actual version works fine)
How to install:
To do:
Thanks:
A great "Thank You" to DhrupDeScoop for supporting my limited PHP skills and to Gillie for the help in The Wire widget issue.
Final notes:
If you like it, recommend it! Recommending, you don´t help me: you help the community, showing the best rated plugins and saving hours for new users.
Comments
New release friends. The plugin was almost written from scratch and the performance had a huge improvement. I will release a 1.7 version with the performance improvements and the youtu.be support soon.
? ;-P that soon ? and i was still @ testing the last one !! lolz !;oO;X;P you 'cabeça cérebro evoluiu' ! oxoxox & lolz;-) cheers meu amigo & keep coding ;-)
I test and doesn't work for me at least in comentaries. Tomorrow I will try in other parts.
Maybe am I doing somethin wrong in the installation process or configuration??
Excuse me, I'm really stupid. Plugins works perfectly. My problema was I was pasting the same youtube link I was already published. That way only appear the link, not the video. I try with another link different and works perfectly.
Congratulations for the plugin (and the work:P), I'm going to recomend it inmediatly!;)
@DDS: Take a look in the code. It´s very small and simple now. And, thanks to a new approach, the plugin is called only 3 or 4 times during page loading. Tha previous version could call the plugin until 100x!
ThX - I will... ;-)
Awesome plugin, thank's Ray J
Recommend!
Just one thing:
It will be perfect to show an embed video in activity river, not just a link!
@Ev: read the older version's comments - that's an old issue with length of excerpted string in the View being used for River. it can't be done without too much more messy code..
The issue with video not shown in activity page: does this depend on the length of text written? Or what string you mean, Dhrup?
@Evgeni, Nudeler: The river shows only a excerpt of the content. So, the river could show half of the youtube´s URL, generating parsing problems (Malformed URLs).
An user posted a code hack in a older version, but I can´t implement a functionality that not works 100% of the time. Look for older comments, but like I said, use at your risk. I don´t recommend.
@Ray J First off i do appreciate what you are doing! Thanks again! :)
Now the code the user post, no-one can figure out why it is unstable? It would make a whole lot of sense to also show the video in the activity feeds, when the url is left like that it tends to make your users wonder away from the site, not that if they want to go to youtube anyone can stop them but it kinda take the fun outta being able to keep it all in your site :)
@RaYJ:- gimme some time to spe looking @ identifying, extracting, displaying embedded video URL in river posts. I've (already) done some preliminary code-peeking to see where the URL falls of ;-) Let's see if it can be brought back and used for embed.
Hi,
and if i wish to add the video to the river? there is a way to exceed the number of 200 chars?
Thanks!
Aki76
@Aki76: Its impossible. As I said, everyone can develop a hack to allow embeding in activity river, but the official plugin will not have this feature.
@Aki76
Thanks the plugin is awesome. found a weird little bug though, When I embed a youtu.be URL into a blog etc, It gives me two videos but if i use the URL I am given after clicking the share button, it works fine. is this as it should be and i'm being an idiot? lol
@Ray J
it doesn't work in elgg 1.8.1 and 1.8.3, do you know why?
cheers
@Insanedb: Explain better, please.
Fatal error: Cannot redeclare videoembed_create_embed_object() (previously declared in /home/content/95/8868495/html/mod/embed_extender/lib/embedvideo.php:34) in /home/content/95/8868495/html/mod/videos/lib/embed_video.php on line 65
what should I do?
and please be clear cause I'm not good at programing
i have the same problem like insanedb. I would like to display videos in activity. it doesnt work for me. tried the code from the older release and edited it, but still dont work.
tried this for myself (iam very new to PHP :-/ ) added this to start.php:
and that to settings.php
also enabled the option in plugin-setting, but it all doesnt work. Can you help me ?
'videos in activity' will take some brain work because as stated quite many several times before - there is the 200 char limit on river items - by which time the entity's' original attributes are 'lost' to the code handling the river displays. ray-the-man has said -- 'As I said, everyone can develop a hack to allow embeding in activity river, but the official plugin will not have this feature.' ;-P there's a fair bit of code to manipulate, synpases to fire, cells to lose and.. and not enough spare free time floating around to code that up.
oh i see. it would be a great plugin. i think lots of people could need it :)
thank you for your explanation
For the Fatal error: Cannot redeclare videoembed_create_embed_object() (previously declared in /home/content/95/8868495/html/mod/embed_extender/lib/embedvideo.php:34
with videos plugin enabled too..
I went through embed_extender/lib/embedvideo and renamed all functions to functioname2()
(added the 2 after all references - maybe 25 edits an d its working fine now )
Hurrah! In the end I got a web site from where I be able
to actually obtain useful data concerning my study and knowledge.
http://wpshower.com/forums/showthread.php?t=12477&p=21651