WordPress.org

Ready to get started?Download WordPress

Forums

Video Codes
Adding your own Video Hosts (10 posts)

  1. faeronsayn
    Member
    Posted 1 year ago #

    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.

    DailyMotion
    Facebook
    Glumbo
    Mp4Upload
    Novamov
    PutLocker
    RuTube
    Sapo
    Upload2
    Veevr
    Videoweed
    Videobb
    Videozer
    YourUpload
    Youtube
    VK
    VideoSlasher
    VideoBam

    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.

    http://wordpress.org/extend/plugins/video-codes/

  2. Babar
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. faeronsayn
    Member
    Posted 1 year ago #

    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.

  4. Babar
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. faeronsayn
    Member
    Posted 1 year ago #

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

  6. Babar
    Member
    Plugin Author

    Posted 1 year ago #

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

    Anyway, I mentioned Jetpack to get the coding idea.

  7. faeronsayn
    Member
    Posted 1 year ago #

    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*/

  8. Babar
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the correction.

  9. faeronsayn
    Member
    Posted 1 year ago #

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

  10. Babar
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry but no.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic