Advertisement:

Author Topic: Ohara YouTube Embed  (Read 200600 times)

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,569
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #600 on: October 23, 2016, 11:51:33 AM »
Yes, thats something I'm aware of, will check when I have some time. Tracked in the meantime.
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 lahmfan

  • Semi-Newbie
  • *
  • Posts: 37
Re: Ohara YouTube Embed
« Reply #601 on: October 23, 2016, 11:54:17 AM »
Yes, thats something I'm aware of, will check when I have some time. Tracked in the meantime.
sawweeet. thanks bro dudette

Offline lahmfan

  • Semi-Newbie
  • *
  • Posts: 37
Re: Ohara YouTube Embed
« Reply #602 on: October 24, 2016, 12:49:23 AM »
Hey @Suki, I noticed someone said that to align the video tothe left you need to modify this file


Quote
In Sources/OharaYTEmbed.php find:

<div style="text-align:center;margin:auto;padding:5px;" class="youtube $1">

and replace with:

<div style="text-align:left;margin:auto;padding:5px;" class="youtube $1">
but i dont see that line anymore? how can i align the videos on the left? also for whatever reasons, imgur video (gifv) are not working for me .. not on chrome or firefox - not sure if you have any thoughts

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,569
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #603 on: October 24, 2016, 12:49:23 PM »
Do you have some urls examples using the m.youtube format?

to make style changes, the mod adds its own .css file named oharaEmbed.css  the class you need to change is .oharaEmbed
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 lahmfan

  • Semi-Newbie
  • *
  • Posts: 37
Re: Ohara YouTube Embed
« Reply #604 on: October 24, 2016, 12:51:41 PM »
Do you have some urls examples using the m.youtube format?

to make style changes, the mod adds its own .css file named oharaEmbed.css  the class you need to change is .oharaEmbed
yes here you go

https://m.youtube.com/watch?v=UU4TRlXbTDQ&feature=youtu.be



https://m.youtube.com/watch?v=L1vAyWcEoCs&feature=youtu.be

let me check that css file .. i think i totally missed that one

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,569
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #605 on: October 25, 2016, 10:18:44 AM »
Try this one and let me know if m.youtube urls works. Just replace your file on Sources with the attached one.

  Also, do you have some examples of imgur gifv urls to test on?
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 lahmfan

  • Semi-Newbie
  • *
  • Posts: 37
Re: Ohara YouTube Embed
« Reply #606 on: October 25, 2016, 10:45:08 AM »
Try this one and let me know if m.youtube urls works. Just replace your file on Sources with the attached one.

  Also, do you have some examples of imgur gifv urls to test on?
awesome!!! it works now!

here are an example of the gifv urls

http://i.imgur.com/vGo06wk.gifv
http://i.imgur.com/QAkHEy6.gifv

but for some reasons, i think its my theme that messing with this.. but if you can take a look to see if its the mod

btw i am single , if you are looking for a husband

Offline lahmfan

  • Semi-Newbie
  • *
  • Posts: 37
Re: Ohara YouTube Embed
« Reply #607 on: October 25, 2016, 10:52:42 AM »
Try this one and let me know if m.youtube urls works. Just replace your file on Sources with the attached one.

  Also, do you have some examples of imgur gifv urls to test on?
awesome!!! it works now!

here are an example of the gifv urls

http://i.imgur.com/vGo06wk.gifv
http://i.imgur.com/QAkHEy6.gifv

but for some reasons, i think its my theme that messing with this.. but if you can take a look to see if its the mod

btw i am single , if you are looking for a husband
Spoke too soon. Yes the m.YouTube  works now but it broke the regular YouTube videos

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,569
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #608 on: October 25, 2016, 11:18:47 AM »
can you post examples of the broken urls?

Are you posting simple links our using the youtube tag?
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 lahmfan

  • Semi-Newbie
  • *
  • Posts: 37
Re: Ohara YouTube Embed
« Reply #609 on: October 25, 2016, 11:27:37 AM »
can you post examples of the broken urls?

Are you posting simple links our using the youtube tag?
the url directly
here is an example

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,569
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #610 on: October 25, 2016, 01:30:51 PM »
Try this one, I made some changes to the way gifv are posted but for some reasons some examples just don't play at all, it returns a 404 code when trying to embed them, must be some config at imgur or something.
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 lahmfan

  • Semi-Newbie
  • *
  • Posts: 37
Re: Ohara YouTube Embed
« Reply #611 on: October 25, 2016, 02:36:09 PM »
Try this one, I made some changes to the way gifv are posted but for some reasons some examples just don't play at all, it returns a 404 code when trying to embed them, must be some config at imgur or something.

awesome! The youtube videos now work!
for the gifv, you are right, its still not working, but at least i am getting an error now instead of nothing . (no worries about the gifv .. its all good. )
thanks for your help

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,569
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #612 on: October 27, 2016, 09:47:44 AM »
A new version has been released:

1.2.8 - Oct 25, 2016
- Improve regex for gifv and youtube urls.
- Pass the ID when using url auto parsing, prevents using another regex to get it.
- Use global scope inside closures..


To upgrade just uninstall any previous version and install the new one and don't forget to check the "Install in Other Themes" checkboxes for all your installed themes.
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 lahmfan

  • Semi-Newbie
  • *
  • Posts: 37
Re: Ohara YouTube Embed
« Reply #613 on: October 27, 2016, 11:53:25 AM »
A new version has been released:

1.2.8 - Oct 25, 2016
- Improve regex for gifv and youtube urls.
- Pass the ID when using url auto parsing, prevents using another regex to get it.
- Use global scope inside closures..


To upgrade just uninstall any previous version and install the new one and don't forget to check the "Install in Other Themes" checkboxes for all your installed themes.
do i have to do that as well? or that file you gave included those changes?

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,569
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #614 on: October 27, 2016, 02:27:41 PM »
not really, I'm using the same file I attached, do it if you care a bout mod's versions and all that stuff, otherwise no.
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 The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 153
    • The QE2 Story
Re: Ohara YouTube Embed
« Reply #615 on: October 30, 2016, 10:08:54 AM »
A new version has been released:

1.2.8 - Oct 25, 2016
- Improve regex for gifv and youtube urls.
- Pass the ID when using url auto parsing, prevents using another regex to get it.
- Use global scope inside closures..


To upgrade just uninstall any previous version and install the new one and don't forget to check the "Install in Other Themes" checkboxes for all your installed themes.

Thanks!  Upgraded on 2.0.12. with no problems.

Offline aodio

  • Semi-Newbie
  • *
  • Posts: 54
Re: Ohara YouTube Embed
« Reply #616 on: November 02, 2016, 05:08:33 AM »
lovely mate.. Very nice  ;)


cheers

Offline coltp45

  • Semi-Newbie
  • *
  • Posts: 73
    • Futbol Argento
Re: Ohara YouTube Embed
« Reply #617 on: November 07, 2016, 11:31:18 PM »
when I post a video this code appears />



Im using the last version 1.2.8

Offline Snek Dankmemes

  • Newbie
  • *
  • Posts: 7
Re: Ohara YouTube Embed
« Reply #618 on: November 09, 2016, 01:25:30 PM »
Gifv doesn't really work on my forum. 1 in 10 might work. The rest just show a black box. And is there a way you can make them just specify the height or width instead of both?

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,569
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #619 on: November 09, 2016, 04:26:17 PM »
There's no real way to fix the imgur gifv,  some of them simply do not play at all,  I don't know if there's a setting to avoid embed on external sites.

I'll look at the height and width
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.