Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    I might be able to add support, could you provide a working embed code I can test with?

    Thread Starter akapellos

    (@salat-production)

    It would be great to add vk.com support! Maybe this working code will help you:

    <?php
    // parser lib  (http://simplehtmldom.sourceforge.net/)
    include('simple_html_dom.php');
    
    $code = '<iframe src="http://vk.com/video_ext.php?oid=-60220601&id=166760404&hash=307c2bbd071b9440&hd=1" width="607" height="360" frameborder="0"></iframe>';
    
    // getting url of player, and src attr from iframe tag
    $code_dom = str_get_html($code);
    $url_in = $code_dom->find('iframe', 0)->src;
    
    // loading and parsing player code
    $html = file_get_html($url_in);
    // finding image by ID=player_thumb and taking src attribute
    $img = $html->find('#player_thumb', 0)->src;
    
    // showing result
    echo '<img alt="" src="'.$img.'" />';
    
    ?>

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    Version 2.6 is out today with support for VK iFrame embeds. Please test it out, let me know if there’s any problems, and remember to leave a review!

    provider test is going right, but if I try to put iframe code, then it is showing “no thumbnail found”. I running wordpress 3.6 website, and cannot upgrade, because automatic youtube posts plugin doesn’t working on later version. May be that’s the reason. I’ll try tommorow test on newest wordpress site.

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    I use using the iframe from the sample code you posted? Just realized it contains a “-” before the number after “oid=”. If you test it with the code akapellos posted it works fine, so I’ll release a fix sometime tonight for the “-” bug.

    Great! Big thanks!!!

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    Hope you’ll consider leaving a review!

    Thread Starter akapellos

    (@salat-production)

    Hell Yeah!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘vk.com’ is closed to new replies.