Embed Extender v1.8.3

Release Notes

Removed some deprecated functions and some bugs thanks to Matt.

A new version, with better support to custom providers, is on the way.

  • 'removed some deprecated...' u mean you left some others still in there ? lolz ;-P
    lemme know if you want me to run the code thru my 'deprecatedScanner' utility.

    'Custom Providers' ? hmmm !;-)
    If you're also lookign @OpenEmbed stuff area, tell me so;
    and/or if not -- I might browse thru the code and <--> OpenEmbed hooks
    to see what style of code mods/enhancements might be needed to expand.

     

  • this is functional for me with youtube, not with vimeo, presently. in 1.8.8

  • FIX (avoid overlap with other elements of the web, example freichat) in embed_extender/lib/embedvideo.php

    case 'youtube':
                $videodiv .= "<object width=\"$width\" height=\"$height\"><param name=\"movie\" value=\"http://{$url}&hl=en&fs=1&showinfo=0\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"wmode\" value=\"trasparent\"></param><embed src=\"http://{$url}&hl=en&fs=1&showinfo=0\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" allowfullscreen=\"true\" width=\"$width\" height=\"$height\"></embed></object>";

  • FIX

    in embed_extender/start.php add:

        //Check where embed code - River
        $river_show = elgg_get_plugin_setting('river_show', 'embed_extender');        
        if($river_show == 'yes'){
            elgg_register_plugin_hook_handler('view', 'river/item', 'embed_extender_rewrite');
        }

    in embed_extender/views/default/plugins/embed_extender/settings.php add:

    $river_show = $vars['entity']->river_show;
    if (!$river_show) $river_show = 'no';

     

    //Show in the river?
    echo '<p>';
    echo elgg_echo('embed_extender:river:show');  
    echo elgg_view('input/dropdown', array(
            'name' => 'params[river_show]',
            'options_values' => array(
                'yes' => elgg_echo('option:yes'),
                'no' => elgg_echo('option:no')
            ),
            'value' => $river_show
    ));
    echo '</p>';

    in embed_extender/languages/en.php add:

        'embed_extender:river:show'            => "Display video in river",

    in embed_extender/languages/es.php add:

     'embed_extender:river:show'            => "Mostrar video en River",

  • How does this differ from Cash's original plugin? Are there some major differences between the two versions why it's better to have them as separate plugins?

  • How do you use the: Advanced: Display video in custom views. Enter one view per line.

    To set up parsing of youtube videos in the profile text? :D

    Should I really get a plugin extra just for the profiles? :D

    D


  • you do exactly what it says - enter one view per line  :)

     

    so if you want to display video in the view "profile/summary" then you enter "profile/summary" on one line

  • @Matt that dosent seem to work on my install of Elgg 1.8.8.

    The youtube url are in the about me box.
    After the description.

    D

     

  • I don't know what that view is offhand, you'll have to look for it

  • it killed all plugins on admin -> Plugins page, no plugin list is available when I enable it. no CSS is loaded on the site broken HTML page. elgg 1.8.6

     

    videos v1.3 and SW Wire Tube for Elgg 1.8 sw7 plugins activated. I placed it under Embed 1.8.1 plugin before activated. What could it interfere with?

    Sorry, but I had to delete it for now.

  • how to activate embed extender in river 

    when we post something in river

    I am using rivertalk plugin for elgg 1.8.9

  • Hello
    Ray J
    Please help me to start embed extender plugin in rivertalk (plugin)
    I Have tried this but not work

    //Check where embed code - River
    $river_show = elgg_get_plugin_setting('river_show', 'embed_extender');
    if($river_show == 'yes'){
    elgg_register_plugin_hook_handler('view', 'river/item', 'embed_extender_rewrite');
    }

    //Show in the river?
    echo '

    ';
    echo elgg_echo('embed_extender:river:show');
    echo elgg_view('input/dropdown', array(
    'name' => 'params[river_show]',
    'options_values' => array(
    'yes' => elgg_echo('option:yes'),
    'no' => elgg_echo('option:no')
    ),
    'value' => $river_show
    ));
    echo '

    ';

    please help me

  • @sheebaz: Give a look in older comments. @ve wrote the solution 97 days ago.

    And no, my plugin will NEVER support river. River shows only the first "N" characters, so its unsafe embed content. Again, see older comments and the plugin´s documention, right here:

    "The plugin doesn't show embebed videos in Riverdashboard, because the River shows only the first 200 characters of the message."

  • thats odd ray j, because i have it working in the river, the dashboard, the wire, etc.  seems to work everywhere for me.

  • @RayJ - because embed_extender uses the 'view', <view> hook to insert the embed code I believe that happens after the view has limited the number of characters - so it should be safe.  Additionally the changes I pushed on github with the custom view parsing should make this possible just by passing in the river view.

  • @rayj: they're still trying! i remember this.. it's like an iceberg;) the real stuff is hidden under-water ;-P i had actualy tried to do this fetch the url but.. got tired of the code.. endless code....  ;-oO boa saude ;)

  • it works for me the way it is now, until i can finish coding my thumbnail url facebook like thingy :).  i am happy with it and can live with it like it is

  • @costakisc can you explain how to embed vdo on the riverdashboard ?

  • My elgg site is intended for corporate users mostly without internet access, so I have setup Clipbucket as a video hosting platform and want "embed extender" to reconize videos from this platform.

    How could I modify the plugin so it does so.

    A video hosted at http://videos.zknh.eu.org/Changement-du-mot-de-passe-Lotus-Notes-_v990 is embeddable in wordpress with this code

    <iframe src="http://videos.zknh.eu.org/player/embed_player.php?vid=990&amp;width=300&amp;height=200&amp;autoplay=yes" height="200" width="300" allowfullscreen="" frameborder="0"></iframe>

    TIA

     

    Fathi Ben Nasr

  • i'm attempting to add wmode=transparent to the youtube code in this plugin.. i have done this successfully for videolist. this embed_extender plugin is not yet functional with that change. the line for the youtube embed is changed to:

     

    $videodiv .= "<object width=\"$width\" height=\"$height\"><param name=\"movie\" value=\"http://{$url}?wmode=transparent&hl=en&fs=1&showinfo=0\"></param><param name=\"allowFullScreen\" value=\"true\"></param><embed src=\"http://{$url}?wmode=transparent&hl=en&fs=1&showinfo=0\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" width=\"$width\" height=\"$height\"></embed></object>";

     

    anyone know why this is not working?

    thanks

  • ah, i missed the solution posted by ve above. :)
    i needed to add the missing 'n' to 'transparent' and it now works. thanks

  • anyone had this working with youtube playlists?
    the embed code is different to the standard youtube one.. i looked through the code and can adapt it to identify and use playlists.. just wondering if anyone already has?

  • Elgg 1.8.12 - Embed Extender puts groups pages in complete disorder.

    Embed Extender is a VERY important plugin! I hope this will be updated to work with current Elgg versions.

  • embedX very likely cannot do such a mess. i know the code inside this plugin almost as if i wrote the code myself ;-) my suspucion is that you must have some other plugins causing conflicts on your website.. judging the abundance of problems you'e been reporting in topics here.

Matt Beckett

I'm a self-employed web developer, family man, nerd, scuba diver. Manager/maintainer of this elgg community site, and core Elgg development team member.

Project Info

Stats

  • Category: Media
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 12239
  • Recommendations: 70

Other Projects

View Matt Beckett's plugins

Contributors