HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Need a addon

i need an addon that can help in adding videos to my site...and where i can frame youtube vedios

Tagged:
«1

Comments

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Add them where in posts ? or on the page ? what version of vanilla number?

  • 2.1 both on page and posts

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    To add them on pages you can make a widget aka module

    Please try the Widgets plugin , you can replace all the content in the modules for your your tube videos.

    Just look inside the module folder for the module files and simply replace the content between the divs and add your name for the box.

  • i don't know coding

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited May 2014

    This is what it looks like in the file you just replace the script for a an iframe or embed.

        <?php if (!defined('APPLICATION')) exit();
    
        class YouTubeModule extends Gdn_Module {
    
    
    
    
           public function AssetTarget() {
              return 'Panel';
           }
    
           public function ToString() {  
    
             echo '<div class="Box" id="YouTube"><h4>YouTube</h4>
        //replace from below here
        <script src="//www.gmodules.com/ig/ifr?url=http://hosting.gmodules.com/ig/gadgets/file/100080069921643878012/youtube.xml&amp;synd=open&amp;w=250&amp;h=200&amp;title=&amp;bg-color=black&amp;border=&amp;output=js"></script>
    
    
        //don't replace below here
              </div>';  
    
             //Add your Html between the divs above
    
    
    
    
           }
        }
    
  • Version 2.2.11 you say in the other post and here you say 2.1

    makes no sense.!

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • i just rechecked now it was showing 2.2.11

  • see your other posts. and documentation and announcements regarding version to use.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • So i just need to replace the link //www.gmodules.com/ig/ifr?url=http://hosting.gmodules.com/ig/gadgets/file/100080069921643878012/youtube.xml&synd=open&w=250&h=200&title=&bg-color=black&border=&output=js to my website link?

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    @love2rule said:
    i don't know coding

    :(:'(

    Do you know how to copy paste? All you have to do is open the file and replace the < script > or iframe in the modules with your code. If you don't know how to embed

    please see the tutorial

    http://vanillaforums.org/discussion/25554/embed-self-hosted-videos

  • peregrineperegrine MVP
    edited May 2014

    I thought you said you were going to avoid helping people using 2.2.x . for their own good.

    2.2.x is for the hosted site NOT for self hosting.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Yea I did not know , I thought it was a typo...

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited May 2014

    @love2rule said:
    So i just need to replace the link //www.gmodules.com/ig/ifr?url=http://hosting.gmodules.com/ig/gadgets/file/100080069921643878012/youtube.xml&synd=open&w=250&h=200&title=&bg-color=black&border=&output=js to my website link?

    No you would replace the entire script with the embed code for the video which you get form you tube and then you paste it in that area replacing what is there .

    fromm < script > to < /script > you replace

    But you will need to use the stable version please.

  • it is for both the page and post??

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    no this only for page, for post you just paste the url for the video page and it will automatically add, if not use the plugin Mediator .

  • love2rulelove2rule New
    edited May 2014

    thank you

    @vrijvlinder said:
    no this only for page, for post you just paste the url for the video page and it will automatically add, if not use the plugin Mediator .

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited May 2014

    you are Welcome !

    for example go to youtube video copy url from address bar and paste in the post bellow is what the url looks like. Don't use the share url use the address bar url.

    http: //www.youtube.com/watch?v=ZnSgg3irD3E

    then it should look like this

    http://www.youtube.com/watch?v=ZnSgg3irD3E

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited May 2014

    To embed the video in the widget

    you would use this code form Youtube when you click share on the video you like

    <iframe width="560" height="315" src="//www.youtube.com/embed/ZnSgg3irD3E" frameborder="0" allowfullscreen></iframe>

  • okkkkkkzzz

    @vrijvlinder said:
    To embed the video in the widget

    you would use this code form Youtube when you click share on the video you like

    <iframe width="560" height="315" src="//www.youtube.com/embed/ZnSgg3irD3E" frameborder="0" allowfullscreen></iframe>

Sign In or Register to comment.