Advertisement:

Author Topic: Yet Another YouTube BBCode Tag  (Read 85860 times)

Offline NekoJonez

  • Full Member
  • ***
  • Posts: 501
  • Gender: Male
  • Stuff
    • @NekoJonez on Twitter
    • My blog
Re: Yet Another YouTube BBCode Tag
« Reply #20 on: December 30, 2014, 04:30:29 AM »
Score!

Man, I feel like your personal plug-in testing friend :3.

If you need anything to test, you know where I am. ;)
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

Offline Rk2910

  • Jr. Member
  • **
  • Posts: 168
Re: Yet Another YouTube BBCode Tag
« Reply #21 on: January 09, 2015, 06:02:50 AM »
Another nice mod Doug  8)
Observation: If I click the youtube button on a bare post it only adds the front part of the code [youtube] and not the end code.  If I paste the URL into a post, then highlight the url and then click the youtube button it does wrap the url properly.

Thanks again Doug.

Offline Geor'G

  • Semi-Newbie
  • *
  • Posts: 62
Re: Yet Another YouTube BBCode Tag
« Reply #22 on: January 09, 2015, 06:20:52 AM »
Not all links work.
These work:
Code: [Select]
[youtube]fA4cphzsjn8[/youtube]
[youtube]http://youtu.be/fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/embed/fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/watch?v=fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/v/fA4cphzsjn8[/youtube]

Do not work:
Code: [Select]
[youtube]http://www.youtube.com/?v=fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/e/fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/user/username#p/u/11/fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/sandalsResorts#p/c/54B8C800269D7C1B/0/fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/watch?feature=player_embedded&v=fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/?feature=player_embedded&v=fA4cphzsjn8[/youtube]

Offline Rk2910

  • Jr. Member
  • **
  • Posts: 168
Re: Yet Another YouTube BBCode Tag
« Reply #23 on: January 09, 2015, 07:59:39 PM »
Thanks Geor'G,  I'll post those in the thread I have going .

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Yet Another YouTube BBCode Tag
« Reply #24 on: January 09, 2015, 08:12:58 PM »
Not all links work.
These work:
Code: [Select]
[youtube]fA4cphzsjn8[/youtube]
[youtube]http://youtu.be/fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/embed/fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/watch?v=fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/v/fA4cphzsjn8[/youtube]

Do not work:
Code: [Select]
[youtube]http://www.youtube.com/?v=fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/e/fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/user/username#p/u/11/fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/sandalsResorts#p/c/54B8C800269D7C1B/0/fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/watch?feature=player_embedded&v=fA4cphzsjn8[/youtube]
[youtube]http://www.youtube.com/?feature=player_embedded&v=fA4cphzsjn8[/youtube]
Thank you for reporting this.  I will investigate these issues.....



Thanks Geor'G,  I'll post those in the thread I have going .
Um....  THIS is the support topic here at Simple Machines for this mod.  I don't look other places for support issues....

That having been said, where is the thread you have going?  Links would be helpful....

Offline Rk2910

  • Jr. Member
  • **
  • Posts: 168
Re: Yet Another YouTube BBCode Tag
« Reply #25 on: January 10, 2015, 07:15:49 AM »
Thanks Geor'G,  I'll post those in the thread I have going .
Um....  THIS is the support topic here at Simple Machines for this mod.  I don't look other places for support issues....

That having been said, where is the thread you have going?  Links would be helpful....
No other thread here - I have a thread on my site that explains how to use the youtube bbc so my members can take advantage of it.
Keep up the good work Doug.  Thx.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Yet Another YouTube BBCode Tag
« Reply #26 on: January 10, 2015, 08:44:15 AM »
 :o OH!!  Cool!  Sorry, I had misunderstood the purpose of the thread.  Thanks, Rk2910!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Yet Another YouTube BBCode Tag
« Reply #27 on: January 19, 2015, 09:50:37 AM »
Uploaded v1.7 - January 19th, 2015
o License change to Simplified BSD.  No functionality change.

Offline bsnooch

  • Newbie
  • *
  • Posts: 1
Re: Yet Another YouTube BBCode Tag
« Reply #28 on: January 19, 2015, 10:01:51 PM »
great plugin, many thanks.
could you please add support for embedding playlists?

Offline Ataru Moroboshi

  • Semi-Newbie
  • *
  • Posts: 90
Re: Yet Another YouTube BBCode Tag
« Reply #29 on: January 23, 2015, 04:38:28 AM »
Is there any easy way to change the position of bbc button in the editor?

Offline karavan2

  • Semi-Newbie
  • *
  • Posts: 27
  • Gender: Male

Offline Wkr

  • Semi-Newbie
  • *
  • Posts: 90
Re: Yet Another YouTube BBCode Tag
« Reply #31 on: January 25, 2015, 03:17:28 PM »
Is it possible in the future set the bbcode what only appears on a board?
For example: on a board called video or a id_board = XX
Thanks.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Yet Another YouTube BBCode Tag
« Reply #32 on: February 13, 2015, 09:55:13 AM »
I'm looking into these bug reports....

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Yet Another YouTube BBCode Tag
« Reply #33 on: February 13, 2015, 06:35:03 PM »
could you please add support for embedding playlists?
Let me see what I can do about this....

Is there any easy way to change the position of bbc button in the editor?
Not without editing the Subs-BBCode-YouTube.php file....  The ability to adjust the bccode buttons would be nice....

Is it possible in the future set the bbcode what only appears on a board?
For example: on a board called video or a id_board = XX
Thanks.
I can look into adding this feature, but bbcodes are generally available across the board on a forum.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Yet Another YouTube BBCode Tag
« Reply #34 on: February 13, 2015, 06:46:37 PM »
:o OMG!  Everybody, I'm so sorry about releasing this mod with clearly an erroneous statement that the regex expression for preg_match will covert the listed formats.  I took the statement about what it will cover from the Youtube I.D parsing for new URL formats page and did not look closely at the expression.  I want to apologize to everybody about this, and hope that you forgive me....

After some fighting with the regex expression, I have gotten my personal copy supports the following forms:
Code: [Select]
http://youtu.be/fA4cphzsjn8
http://www.youtube.com/embed/fA4cphzsjn8
http://www.youtube.com/watch?v=fA4cphzsjn8
http://www.youtube.com/v/fA4cphzsjn8
http://www.youtube.com/e/fA4cphzsjn8
http://www.youtube.com/p/fA4cphzsjn8
http://www.youtube.com/?v=fA4cphzsjn8
These currently do not work:
Code: [Select]
http://www.youtube.com/user/username#p/u/11/fA4cphzsjn8
http://www.youtube.com/sandalsResorts#p/c/54B8C800269D7C1B/0/fA4cphzsjn8
http://www.youtube.com/watch?feature=player_embedded&v=fA4cphzsjn8
http://www.youtube.com/?feature=player_embedded&v=fA4cphzsjn8

I am continuing to test the changes I am making to the mod in order to get the last two forms to play, however, I'm not sure how I will get first two forms to work correctly....

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Yet Another YouTube BBCode Tag
« Reply #35 on: February 17, 2015, 08:10:28 PM »
UPDATE: This mod has been updated so that it correctly validates the specified forms.  I don't have time to release the new version tonight, but I will release it tomorrow.  It's bedtime here....

REGARDING PLAYLISTS:  I haven't had time to figure out the correct forms for playlists yet.  It'll be part of the version after this next version.  I apologize if this inconveniences anybody....  but regular expressions are HARD!!!  :P

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Yet Another YouTube BBCode Tag
« Reply #36 on: February 18, 2015, 05:09:49 AM »
Uploaded v1.8 - February 18th, 2015
o Updated Regular Expression used to validate the last few reported forms of the YouTube URL.
o Added some backup code in the event that the Regular Expression doesn't catch a valid URL.

Offline karavan2

  • Semi-Newbie
  • *
  • Posts: 27
  • Gender: Male
Re: Yet Another YouTube BBCode Tag
« Reply #37 on: February 18, 2015, 10:40:09 AM »
Good news, thanks!

Offline Rk2910

  • Jr. Member
  • **
  • Posts: 168
Re: Yet Another YouTube BBCode Tag
« Reply #38 on: February 18, 2015, 06:25:12 PM »
Thanks for all your hard work Doug  8)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: Yet Another YouTube BBCode Tag
« Reply #39 on: February 18, 2015, 07:09:43 PM »
Y'all are welcome!



UPDATE: The next version of this mod will a fairly major update.  It will support YouTube playlist IDs, and will support at least 5 new parameters for the YouTube and YT bbcodes: autoplay, color, theme, start and end.  It may support YouTube videos uploaded by a specific user, as well as YouTube videos as part of a search query, each being part of a different bbcode....  More information will be forthcoming when the mod is released into the wild....