Advertisement:

Author Topic: Ohara YouTube Embed  (Read 199299 times)

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #280 on: October 13, 2014, 12:11:26 PM »
To disable the auto embedding you can remove this line form your Sources/Subs.php file:

$message = OYTE_Preparse($message);

Although doing it will remove the auto embedding everywhere.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline Ecnelis

  • Semi-Newbie
  • *
  • Posts: 11
Re: Ohara YouTube Embed
« Reply #281 on: November 09, 2014, 12:16:11 PM »
Are there any plans for embed based on id only?

Quote
[youtube]BpXMQ_S18iE[/youtube]

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #282 on: November 10, 2014, 08:37:44 AM »
Not really, is not something that many people has requested and it would be too annoying having to handle urls or IDs on the same tag.

If you know the ID you only need to add youtube.com/  to it.

What would be the benefit of using only the ID?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline Ecnelis

  • Semi-Newbie
  • *
  • Posts: 11
Re: Ohara YouTube Embed
« Reply #283 on: November 10, 2014, 12:11:40 PM »
It's not for any benefits, really. I have just upgraded my SMF-based forum from 1.1.20 to 2.0.9 and the old YT plug-in is not working anymore. And it has the ID-only embed... So it's problem just with me. ;) Got to fix this manually.

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #284 on: November 10, 2014, 12:34:51 PM »
oh, OK, can you point me to the old mod you used to have?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline DanesDK

  • Semi-Newbie
  • *
  • Posts: 17
Re: Ohara YouTube Embed
« Reply #285 on: November 15, 2014, 06:35:48 PM »
Hey,

Is there anyway to get this youtube video start in like 720p.???

Thanks

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #286 on: November 16, 2014, 09:05:14 AM »
Open your /Sources/OharaYTEmbed.php file and find 2 instances of this:

Code: [Select]
src="http://www.youtube.com/embed/$1"

Change both of them to this:

Code: [Select]
src="http://www.youtube.com/embed/$1&vq=hd720"
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,213
  • Gender: Male
  • SMF 2.0.4
Re: Ohara YouTube Embed
« Reply #287 on: December 08, 2014, 07:06:25 PM »
Are there an reported issues with the embed video not having the fullscreen option displayed in the bottom right?

http://i.gyazo.com/4761072a72a2834fc0ef8b7b7978c6b5.png

^ It shows for me in Opera browser so I never knew there was an issue until some members brought it up that they don't have the fullscreen option in browsers like chrome, firefox, IE, etc.   I checked, myself, on the browsers and sure enough the fullscreen option doesn't appear.

A quote from one of my members ...

Quote
Upon further investigation, it's an iframe in the older HTML embedding an HTML5 page that disables the full screen button. When the page returns the need to use Flash Player instead, full screen button shows.
« Last Edit: December 09, 2014, 04:36:55 PM by hcfwesker »

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #288 on: December 09, 2014, 08:30:32 AM »
Don't really understood you, are you reporting an issue with the mod? I can't recall any reported issue like that.

I'm not sure if there is something I can do, the iframe option is considered the best option since it selects the right tool for the user's browser.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,994
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: Ohara YouTube Embed
« Reply #289 on: December 09, 2014, 08:35:51 AM »
I installed this yesterday on 2.1 and it all works fine. Fullscreen mode is there

Offline Geor'G

  • Semi-Newbie
  • *
  • Posts: 62
Re: Ohara YouTube Embed
« Reply #290 on: December 09, 2014, 07:08:55 PM »

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #291 on: December 26, 2014, 12:22:19 PM »
Thanks, it is fixed on the new version but thats only for SMF 2.1 will see about back porting the regex to the SMF 2.0.x compatible version.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline karavan2

  • Semi-Newbie
  • *
  • Posts: 27
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #292 on: January 31, 2015, 12:08:00 PM »
[youtube]https://www.youtube.com/watch?feature=player_embedded&v=WlobIDJyyOs&x-yt-cl=85114404&x-yt-ts=1422579428[/youtube]
[youtube]https://www.youtube.com/watch?x-yt-ts=1422579428&x-yt-cl=85114404&v=fHc5nAApClI&feature=player_embedded[/youtube]
[youtube]https://www.youtube.com/watch?feature=player_embedded&v=-onkyzFraIw&x-yt-cl=85114404&x-yt-ts=1422579428[/youtube]

are not displayed, showing black Screen.


Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #293 on: January 31, 2015, 12:43:29 PM »
If its showing a black screen then it means you or your users cannot see those videos.

However, if you see a blank (as in nothing) screen then it means the mod didn't catch those urls but on those cases the mod should print an error message.

So which is it? a blank or a black screen?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline karavan2

  • Semi-Newbie
  • *
  • Posts: 27
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #294 on: January 31, 2015, 02:20:24 PM »
http://s019.radikal.ru/i635/1501/39/12e910a93f86.jpg
http://s019.radikal.ru/i630/1501/c8/2a0ea7f1de54.jpg
After pressing play -
Text: An error has occurred, please try again later.

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #295 on: January 31, 2015, 02:22:40 PM »
Then it means the videos you are trying to see are the issue.

If the mod converts the links into a video, then the mod has fulfilled its job. Some youtube videos has restrictions and this mod cannot bypass those restrictions. There is nothing I can do.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline Myth_72

  • Newbie
  • *
  • Posts: 9
Re: Ohara YouTube Embed
« Reply #296 on: February 17, 2015, 02:51:45 AM »
I used until now other mod it's had possibility to show video from youtube only with the ID of video  like this for example
Code: [Select]
[yotube]wifH74R3yJA[youtube]but now with Ohara YouTube Embed this links aren't working.

Is there possibility to add this functionality in Ohara to show video only with ID of video?

Tanks in advance.

P.S. Sorry for my bad English.

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #297 on: February 17, 2015, 10:08:44 AM »
Untested and will probably never be included since not that many people uses the ID

Open your Sources/OharaYTEmbed.php  find this:

Code: [Select]
if (empty($data))
return sprintf($txt['OYTE_unvalid_link'], 'youtube');

And add this below:

Code: [Select]

// Did the user used the ID?
if (strlen($data) == 11)
return '<iframe width="'. (empty($modSettings['OYTE_video_width']) ? '420' : $modSettings['OYTE_video_width']) .'" height="'. (empty($modSettings['OYTE_video_height']) ? '315' : $modSettings['OYTE_video_height']) .'" src="//www.youtube.com/embed/'. $data .'" frameborder="0"></iframe>';

Keep in mind that this relies on the user putting the exact eleven chars youtube uses, of course if youtube changes the way their Ids works, which is very likely,this will have to be updated again.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline Myth_72

  • Newbie
  • *
  • Posts: 9
Re: Ohara YouTube Embed
« Reply #298 on: February 24, 2015, 08:48:35 AM »
Thank you very much :)

Offline 420Connect.co.uk

  • Full Member
  • ***
  • Posts: 413
    • 420connect.info on Facebook
    • @4twentyconnect on Twitter
    • 420 Connect
Re: Ohara YouTube Embed
« Reply #299 on: March 05, 2015, 12:58:08 PM »
Can I make this mod, EXCLUDE youtube links only when said, in my SimplePortal 'shoutbox'?
(so they become [link] instead of [youtube]....[/youtube]


Many thanks
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)