WordPress.org

Forums

WP YouTube Lyte
[resolved] Video Embedder (14 posts)

  1. draven666
    Member
    Posted 2 years ago #

    Hi futtta,

    I use a long time, the very good and small plugin "Video Embedder" (http://wordpress.org/extend/plugins/video-embedder/) on my blog. Is there a way, to use this plugin in conjunction with yours?

    I would be very happy to be able to use the great functionality of your plugin. Thank you in advance for your efforts.

    Best Regards
    Draven

    http://wordpress.org/extend/plugins/wp-youtube-lyte/

  2. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    hi draven666; how would you like the two plugins to work in conjunction? would you expect wp youtube lyte to (automatically) take care of just new youtube embeds, or also old the ones?

  3. draven666
    Member
    Posted 2 years ago #

    Hi futta,

    Thanks for your quick reply.

    In the past, i embedded a lot of Youtube videos. And it would be really great if this would also work. New videos are added as one of them :)

    Another question, is it also possible that your plugin work with Dailymotion, Vimeo or other suppliers? Suppliers for example like in video embedder?

    Thank you for your efforts.

    Best Regards
    Draven

  4. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    other suppliers are out of scope for wp youtube lyte i'm afraid, but adding support for the video embedder syntax shouldn't be too hard (although i'm not sure it should go in the default code). how do you embed a youtube-vid in video embedder? any special tag used for that purpose?

  5. draven666
    Member
    Posted 2 years ago #

    Thanks for the quick reply. I understand.

    I am using Youtube with Video Embedder over the shortcode:
    [youtube]youtube-vid[/youtube]

  6. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    adding this:

    function yt_func($atts, $content="") {
         return lyte_parse("httpv://www.youtube.com/watch?v=".$content);
         }
    add_shortcode('youtube', 'yt_func');

    at the end of /wp-content/plugins/wp-youtube-lyte/wp-youtube-lyte.php should do the trick (you will have to re-add this with every upgrade I push out, I'm afraid).

  7. draven666
    Member
    Posted 2 years ago #

    I added this code at the end of wp-youtube-lyte.php, before ?>, but it have no effect on my (old) embedded videos... Am I doing something wrong?

  8. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    does that mean that the old video's are still rendered by video embedder?

    can you check;
    * if wp-youtube-lyte is activated?
    * if you have a caching mechanism which shows results pre the small change in wp-youtube-lyte?
    * what happens if you (temporarily) disable video embedder?

    and lastly; can you copy paste, verbatim, an example of the code you use in one of your older articles to embed a youtube video?

  9. draven666
    Member
    Posted 2 years ago #

    Yes, the old videos are still rendered by video embedder, if wp-youtube-lyte and video embedder are activated. If i deactivate video embedder, wp-youtube-lyte works fine! It looks like the active video embedder takes over the rendering of the video...

    P.S: Excuse my bad english...

  10. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    ok, can you open up /wp-content/plugins/video-embedder/video-embedder.php and look for the line

    add_filter('the_content', 'videoembedder_embed');
    and change that into
    add_filter('the_content', 'videoembedder_embed',100);

    that lowers the priority of video embedder and should allow wp youtube lyte to take over for [youtube]qmlkjdfqlk[/youtube]

    (and your english is not a problem at all)

  11. draven666
    Member
    Posted 2 years ago #

    I've made ​​the change accordingly and everything works as intended. Great, thank you very much!

    Do you have a Paypal account? I do not have much money, but I want to spend a little something for your great support.

  12. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    I don't ask (or want) money, just glad to be able to help.

    But if you insist, you can always review/ rate the plugin here ;-)

  13. draven666
    Member
    Posted 2 years ago #

    I did not offend you with my donation, but only to show my gratitude.

    Of course, I have now written a little review and rated your great plugin. Thanks again for your help!

  14. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    Not offended in the least, on the contrary.

    Thanks for the review!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP YouTube Lyte
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.