Advertisement:

Author Topic: Ohara YouTube Embed  (Read 182202 times)

Offline jsx

  • Jr. Member
  • **
  • Posts: 270
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #680 on: February 15, 2018, 05:36:50 AM »
@Suki

Why does the centered link not display the embedded video in this way? The embedded video is not displayed. Such a solution doesn't work.

Code: [Select]
[center]https://www.youtube.com/watch?v=ehjJ614QfeM[/center]

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,219
  • Gender: Male
    • Kindred-999 on GitHub
Re: Ohara YouTube Embed
« Reply #681 on: February 15, 2018, 10:29:45 AM »
I would assume, because it is inside another BBC, the autoparser doesn't pick it up
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Suki

  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,255
  • Kaizoku Jotei
Re: Ohara YouTube Embed
« Reply #682 on: February 15, 2018, 11:59:44 AM »
Yes and it is by design. IF you want to put youtube urls inside any BBC tags, use the youtube tag.  I believe by default the mod centers the videos already and if not, the mod provides a custom class that you can use to make all videos centered thus avoiding the need to use bbc tags.
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 jsx

  • Jr. Member
  • **
  • Posts: 270
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #683 on: February 16, 2018, 04:36:12 AM »
I thank for information.

In this post I asked how to remove video centring and it suits me, but I want to centre only one video. Unfortunately, this combination does not work.

Code: [Select]
[center][youtube]https://www.youtube.com/watch?v=ehjJ614QfeM[/youtube][/center]

Offline Suki

  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,255
  • Kaizoku Jotei
Re: Ohara YouTube Embed
« Reply #684 on: February 18, 2018, 01:57:48 PM »
Thats because the css that controls the videos is loaded after the css applied to the center tag.  You could create a custom BBC for centering and then add its css on this mod's css file at the end but its honestly a lot of work just to center one single video.
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 Xpresskonami

  • Jr. Member
  • **
  • Posts: 205
  • Gender: Male
    • @spyloaded_com on Twitter
Re: Ohara YouTube Embed
« Reply #685 on: February 19, 2018, 10:41:44 AM »
This mod is working well for me but the problem is I set the Width to be "450" and height is "320" but it only look good on desktop not Auto fit on mobile. and also it as no Autofullscreen please how can I make the mod .. responsive on mobile and on desktop view ..
Spyloadedng

Offline Suki

  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,255
  • Kaizoku Jotei
Re: Ohara YouTube Embed
« Reply #686 on: February 21, 2018, 11:24:25 AM »
Do you have a link with an example of this behavior?
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 becometa

  • Jr. Member
  • **
  • Posts: 113
Re: Ohara YouTube Embed
« Reply #687 on: February 26, 2018, 09:10:20 AM »
Great mod!
GIFV embeeding works as expected however youtube is being embedeed but playback button does nothing.

Example (last post) https://kryptowaluty.org.pl/sprawy-techniczne-i-opinie/dziennik-zmian/?message=253

Offline Suki

  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,255
  • Kaizoku Jotei
Re: Ohara YouTube Embed
« Reply #688 on: February 26, 2018, 05:56:15 PM »
I can click the video just fine as a guest using Vivaldi 1.14.

The mod largely depends on JS to render the videos, it might be the case that some js are only rendered for registered suers and that theres an error on that js, preventing this mod from showing the videos correctly.

Try loading that page as a guest and see if theres any difference.
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 becometa

  • Jr. Member
  • **
  • Posts: 113
Re: Ohara YouTube Embed
« Reply #689 on: February 27, 2018, 05:21:04 AM »
I can click the video just fine as a guest using Vivaldi 1.14.

The mod largely depends on JS to render the videos, it might be the case that some js are only rendered for registered suers and that theres an error on that js, preventing this mod from showing the videos correctly.

Try loading that page as a guest and see if theres any difference.

I've tried to play the video using:
- Chrome ver. 64.0.3282.167 64bit (both incognito as guest and normal as logged user)
- Firefox Dev ver. 59.0b12 (64-bit) (same as above)
- Opera ver. 50.0.2762.67 (same as above)

I've also installed Vivaldi ver. 1.14.1077.50 out of curiosity what might it look like ;) and unfortunately none of them played the video for me.

@edit

I've checked it on the second computer using Chrome as a guest and it acts the same - nothing happens.
However, Chrome browser on Android (smartphone) actually worked but with big black border on bottom of the video frame.

Offline Suki

  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,255
  • Kaizoku Jotei
Re: Ohara YouTube Embed
« Reply #690 on: February 27, 2018, 10:55:10 AM »
Can you open chrome dev tools and see if theres any js error showing when displaying a page with a video on it?
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 becometa

  • Jr. Member
  • **
  • Posts: 113
Re: Ohara YouTube Embed
« Reply #691 on: February 28, 2018, 05:29:15 AM »
Can you open chrome dev tools and see if theres any js error showing when displaying a page with a video on it?


this is being displayed in console after clicking the play button

Code: [Select]
ohyoutube.min.js:8 Uncaught TypeError: $ is not a function
    at HTMLDivElement.<anonymous> (ohyoutube.min.js:8)
    at HTMLDivElement.d (jquery.min.js:3)
    at HTMLDivElement.dispatch (jquery.min.js:3)
    at HTMLDivElement.r.handle (jquery.min.js:3)

It is conflicted with other mod using JS/jQuery?

Offline Suki

  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,255
  • Kaizoku Jotei
Re: Ohara YouTube Embed
« Reply #692 on: February 28, 2018, 11:06:09 AM »
Yes, most likely theres another mod adding/using jquery, you will need to list all the mods that are using it and remove them one by one to know which one is causing the conflict.
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 becometa

  • Jr. Member
  • **
  • Posts: 113
Re: Ohara YouTube Embed
« Reply #693 on: March 15, 2018, 06:12:52 AM »
Yes, most likely theres another mod adding/using jquery, you will need to list all the mods that are using it and remove them one by one to know which one is causing the conflict.

I've found the conflicting one. It's one of the mods made by SMFPacks called Super Quotes.
Mod author is informed about the issue and is working on it.

Thank you for your time!

Offline Suki

  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,255
  • Kaizoku Jotei
Re: Ohara YouTube Embed
« Reply #694 on: March 15, 2018, 12:34:19 PM »
Cool. Usually on cases like this the mod author checks if jquery is already loaded and only adds the library if it isn't, that greatly helps to avoid conflicts with other mods also using jquery.

SMF 2.1 solves this by using jquery by default.
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 njtweb

  • Jr. Member
  • **
  • Posts: 353
Re: Ohara YouTube Embed
« Reply #695 on: May 28, 2018, 01:49:29 PM »
Any way to edit the BBCode to make the video scale based on the device it's being viewed on? Looks great on a computer or tablet but on a phone it stays the same size and doesn't scale down even with default curve theme and responsive curve mod installed.

Link to post
Code: [Select]
https://www.youthhockeyinfo.com/index.php/topic,335.html

Offline njtweb

  • Jr. Member
  • **
  • Posts: 353
Re: Ohara YouTube Embed
« Reply #696 on: May 29, 2018, 08:03:41 AM »
Hmm, weird. I deleted this ^^^ Yesterday. Not sure why it's showing up again but the issue is sorted.