Skip to:
Content
Pages
Categories
Search
Top
Bottom

Embedding Verold

  • Avatar of Splendorito
    Splendorito
    Participant

    @splendorito

    Sorry i think i posted in wrong forum before. Maybe this part is better to ask this type of questions.

    I want that our users would be able to paste in code from verold so they their friends and colleagues can view their models in buddypress. Embedding Verold works in bbpress, wordpress but not buddypress.

    Can anyone direct me to this problem, how to make this work?


    What is missing?

    
    <?php
    
    wp_embed_register_handler('verold’, 'http://studio.verold.com/projects/([\w]+)/embed', 'wp_embed_handler_verold');
    
    function wp_embed_handler_verold($matches, $attr, $url, $rawattr) {
    $embed = sprintf(
    '<iframe frameborder="0" width="600" height="400"
    src="http://studio.verold.com/projects/%1$s/embed"></iframe>',
    esc_attr($matches[1]));
    
    return apply_filters('embed_verold', $embed, $matches, $attr, $url, $rawattr);
    }
    
    ?>
    

You must be logged in to reply to this topic.