Youtube Shortcode suggestions & issues

Suggestions & Issues

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the “My feedback” filter and select “My open ideas”.
(thinking…)
Reset

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can vote and comment on it.

If it doesn't exist, you can post your idea so others can vote on it.

Enter your idea and we'll search to see if someone has already suggested it.

  • Hot ideas
  • Top ideas
  • New ideas
    1. Better regex for get_video_id function

      Today i was trying to show this video https://www.youtube.com/embed/JaNH56Vpg-A or https://www.youtube.com/embed/JaNH56Vpg-A

      and both URLs wasn't working. So i've made a fix for that and this is the code:

      function get_video_id($url)
      {
      // Handles normal youtube url e.g:
      // http://www.youtube.com/watch?v=QRS8MkLhQmM
      $regex1 = '#v=([^\s]{0,11})#is';

      // Handles youtube share short links e.g:
      // http://youtu.be/QRS8MkLhQmM
      $regex2 = '#.*youtu\.be\/([^\s]{0,11})#is';

      // Handles embedded youtube video url e.g:
      // http://www.youtube.com/v/QRS8MkLhQmM?version=3&feature=player_embedded&autohide=1
      // http://www.youtube.com/embed/QRS8MkLhQmM?version=3&feature=player_embedded&autohide=1
      $regex3 = '#(?<=[v|embed])\/[v|embed]+\/([^\s]{0,11})#is';

      // Handles videos IDs e.g:
      // QRS8MkLhQmM
      $regex4 = '#([^\s]{0,11})#is';
      if ( preg_match($regex1, $url, $matches)
      || preg_match($regex2, $url, $matches)
      || preg_match($regex3, $url, $matches)
      || preg_match($regex4, $url, $matches) ) {
      return $matches[1];
      }

      more

      5 votes
      Vote 0 votes Vote Vote
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service

        You'll receive a confirmation email with a link to create a password (optional).

        Signed in as (Sign out)
        You have left! (?) (thinking…)
      • Display a LinkedTube.com video

        LinkedTube.com gives me a clickable link - see http://god-jesus.a-disciple.org/forum/?p=78 - it would be great if you could sort out a shortcode for this video - modestbranding, nocookie etc.

        1 vote
        Vote 0 votes Vote Vote
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service

          You'll receive a confirmation email with a link to create a password (optional).

          Signed in as (Sign out)
          You have left! (?) (thinking…)
        • Visual editor not working after installing Youtube shortcode plugin

          Just after I've installed your plugin, my post's visual editor stopped working.

          Already tried some solutions (clearing browser's cache was my first try), but none of them solved the problem, only after deactivating the plugin the visual editor works fine.

          My browser's version is Firefox 9.0.1, but it also occurs on Google Chrome.

          Had you already noticed this behavior? Is there any patch planned to be released?

          Nevertheless, congrats for your plugin, very useful indeed.

          Thank you and best regards,
          João Paulo

          1 vote
          Vote 0 votes Vote Vote
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service

            You'll receive a confirmation email with a link to create a password (optional).

            Signed in as (Sign out)
            You have left! (?) (thinking…)
          • Rework your page

            I go straight to the How to Use - what do I get? CODEX 1 &2. Talk about a turn off after 5 or 6 trips I punch the link under donations and discover Youtube demos cool but they are about complicated stuff.

            Now I'm thinking somebody put a ton of work into this but there is no instruction where to download this program internally on my end and what to do with it before I acually download it.

            Yea, you say it's simple but you've lost a guy like me, no 101 instructions
            no what's in it for me,… more

            1 vote
            Vote 0 votes Vote Vote
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service

              You'll receive a confirmation email with a link to create a password (optional).

              Signed in as (Sign out)
              You have left! (?) (thinking…)
            • Facebook recommendation text is messed up

              Hi, I have installed youtube shortcode, but it is messing up with facebook recommend thing. When I post the site name on facebook, facebook explores to URL to give following text:

              "Episode 18 Preview » Humsafar.TV (Downloads, Episodes, Bloopers, Wallpapers, Songs)
              http://www.humsafar.tv/
              .youtube_sc iframe.yp{display:none;}The Adobe Flash Player is required for video playback.Get the latest Flash Player or Watch this video on YouTube."

              Please let me know how to fix this.

              1 vote
              Vote 0 votes Vote Vote
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service

                You'll receive a confirmation email with a link to create a password (optional).

                Signed in as (Sign out)
                You have left! (?) (thinking…)
              • Invalid Parameters when trying to use playlist feature.

                I put in the video id's like it says but when the first video is done playing, the player goes to the playlist and stops saying Invalid Parameters.

                1 vote
                Vote 0 votes Vote Vote
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service

                  You'll receive a confirmation email with a link to create a password (optional).

                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
              • Don’t see your idea?
              • Post a new idea…
              • Youtube Shortcode suggestions & issues

                Knowledge Base and Helpdesk