Support » Plugin: Video Codes » Adding your own Video Hosts

  • I really want to use this plugin, it’s almost exactly what I am looking for. However, the naming scheme of the shortcodes could have been more human readable but that’s not the problem.

    The main problem I will have is the fact that I won’t be able to add my own video hosts into the plugin. I can’t bother you with the amount I have, since it’s very likely that you won’t be able to add all of them.

    Here is my current list of the video providers I want supported.


    I know, it’ll just bloat your plugin by adding all of these video providers. So I was wondering if there was a way I could personally add them, using some type of custom code for creating shortcodes and fetching the IDs. If you have any ideas or suggestions about this issue let me know.

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


    If you want to do it yourself, you will need to collect embed code samples from your targeted sites.

    Now you will need some knowledge about WordPress Short code.
    After that I think you are good to go.

    I can definitely collect embed codes from my targeted sites. It shouldn’t be much of a problem. Also, I won’t even be requiring shortcodes. I’m planning on doing this all through PHP. So a function for the specific video host to call and use the video ID as the parameter or something should suffice i’d think.

    The main thing is the ease of use for the users that are going to submit the videos. It would be great if the user can simply just add the video URL and the plugin extracts the ID from the video URL. If the video URL is not recognized, the plugin can simply return an error.

    Just need to make the function, could you explain a little bit about how i’d do about adding video hosts that way, or whichever way the plugin supports it. I don’t need shortcodes at all.

    Plugin Author Babar


    I haven’t thought about that way.
    You can check the Jetpack plugin, it works that way.

    It comes with too many other unnessary things. I need something simple, like your plugin 🙂

    Plugin Author Babar


    That’s true, but you can also disable the unnecessary addons.

    Anyway, I mentioned Jetpack to get the coding idea.

    I guess I don’t really mind making the user submit the ID I suppose. If I wanted to call this in PHP what function would I be using?

    Also just a little typo in one of your comments in the code.

    /*Google Video ShortCote*/

    should be

    /*Google Video ShortCode*/

    Plugin Author Babar


    Thanks for the correction.

    Any Idea on how I’d go about putting this in a php template?

    Plugin Author Babar


    Sorry but no.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Adding your own Video Hosts’ is closed to new replies.