Advertisement:

Author Topic: Ohara YouTube Embed  (Read 199269 times)

Offline Douglas

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,085
  • Gender: Male
  • Non sibi sed patriae
    • @BearlyDoug on Twitter
    • TheFan.net
Re: Ohara YouTube Embed
« Reply #420 on: June 25, 2015, 12:24:47 PM »
Suki, three questions... (and please understand that I haven't read all 9 pages, so please forgive me if this was answered already).

First, do you support (or plan on adding support for) extremely short tags? [youtube]{ID}[/youtube] (I'm using Karl's Youtube Mod on Hogville and need to replace it. Trying to not go the Aeva route.)

Second, does your mod intelligently handle SSL vs non SSL requests?

Youtube supports "//youtube.com/etc" (notice the absence of https: and http: there).

Third, do you have any plans on adding Vine support? I've manually added the Vine player/app onto Hogville (see this thread); can provide you with the needed info to embed Vine, as well, if you want (hit me up via PM).

Thanks!
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* Sports Photographer and Media Personality
* CFB Historian
* Tech Admin for one 1M+ post, one 2M+ post and one 10M+ post sites (last two are powered by multiple servers)
* WordPress Developer (Junkie)

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 #421 on: June 25, 2015, 01:52:01 PM »
First, do you support (or plan on adding support for) extremely short tags? [youtube]{ID}[/youtube] (I'm using Karl's Youtube Mod on Hogville and need to replace it. Trying to not go the Aeva route.)

It is planned yes.

Quote
Second, does your mod intelligently handle SSL vs non SSL requests?

Yes.

Quote
Third, do you have any plans on adding Vine support? I've manually added the Vine player/app onto Hogville (see this thread); can provide you with the needed info to embed Vine, as well, if you want (hit me up via PM).

The new version has a simple auto-load plugin which makes it quite easy to add support for other sites, just a matter of uploading a file to the plugin folder and the corresponding img too.  The problem is that this new version will only be compatible with SMF 2.1.
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 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 #422 on: June 27, 2015, 10:18:42 AM »
I uploaded a new version, should fix all the issues reported with the old version. Heres the changelog:

1.2.3 - June 26, 2015,
- Added a minified js file.
- Added support for using the youtube ID as param.
- License change to MPL 2.0.
- Added full support for protocol-less urls.
- Force loading the oharaEmbed.css file from the default theme.
- Add more options to show video preview images
- Add support for previewing a message
- Improve handling of youtube thumbnails and overall JS improvements.
- Add a setting to enable/disable the autoembed feature. This was suppose to be added a long time ago but dunno why I forgot to do it...
- Missed to check the master setting.
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 Douglas

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,085
  • Gender: Male
  • Non sibi sed patriae
    • @BearlyDoug on Twitter
    • TheFan.net
Re: Ohara YouTube Embed
« Reply #423 on: June 27, 2015, 10:34:09 AM »
Suki, if I could hug (high five?) ya, I would. Thank you!
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* Sports Photographer and Media Personality
* CFB Historian
* Tech Admin for one 1M+ post, one 2M+ post and one 10M+ post sites (last two are powered by multiple servers)
* WordPress Developer (Junkie)

Offline yakyakyak

  • Jr. Member
  • **
  • Posts: 303
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #424 on: June 27, 2015, 10:52:03 AM »
Just installed this on 2.0.9 and package manager showed no issues however, after install, the forum is running but the admin panel isn't

The requested URL /admin/index.php was not found on this server.

Any ideas?

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 #425 on: June 27, 2015, 11:08:56 AM »
Do you have a "pretty urls" mod installed?  admin/index.php is not a vanilla SMF url.

Is it only the admin panel?  for some reason this mod likes to annoy crappy hostings by setting files to 777 which some host may see as "too much" and inmediatly show a 500 error. Reverting the permissions to the file solves the issue.
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 yakyakyak

  • Jr. Member
  • **
  • Posts: 303
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #426 on: June 27, 2015, 02:01:03 PM »
Do you have a "pretty urls" mod installed?  admin/index.php is not a vanilla SMF url.

Is it only the admin panel?  for some reason this mod likes to annoy crappy hostings by setting files to 777 which some host may see as "too much" and inmediatly show a 500 error. Reverting the permissions to the file solves the issue.

ha ha, spot on with Pretty. It was just the admin panel and you were correct with the permissions. Thanks for the prompt reply.

Offline yakyakyak

  • Jr. Member
  • **
  • Posts: 303
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #427 on: June 28, 2015, 07:21:02 AM »
Vimeo working, Youtube not, on the same topic or individual topics. Presented with a black box for YouTube

Anything glaringly obvious you can think of please?
« Last Edit: June 28, 2015, 07:43:57 AM by yakyakyak »

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 #428 on: June 28, 2015, 10:06:21 AM »
This is the kind of bugs this new version was supposed to fix...

Can you post a link to a post with a youtube 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 yakyakyak

  • Jr. Member
  • **
  • Posts: 303
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #429 on: June 28, 2015, 10:49:43 AM »
Yep. I've inboxed you Suki wit a login and url




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 #430 on: June 28, 2015, 10:53:38 AM »
You are using another mod which uses jquery with "jQuery" as the variable name, this mod (and SMF 2.1 too) uses "$".

You need to either change the other mod to use $ or replace all instance of $ with jQuery on the Themes/default/scripts/ohyoutube.min.js file file.
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 yakyakyak

  • Jr. Member
  • **
  • Posts: 303
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #431 on: June 28, 2015, 11:18:08 AM »
You are using another mod which uses jquery with "jQuery" as the variable name, this mod (and SMF 2.1 too) uses "$".

You need to either change the other mod to use $ or replace all instance of $ with jQuery on the Themes/default/scripts/ohyoutube.min.js file file.

Thank you for the prompt reply Suki. I am partially sighted so will let you know how it goes when i can get a friend to make the edits.


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 #432 on: June 28, 2015, 12:34:22 PM »
Yes, this has happen before, unfortunately there isn't much I can do since each mod author uses different name conventions and even different jquery versions.

Hopefully SMF 2.1 will terminate this kind of behavior, at least for new mods released for that particular version since 2.1 now includes jquery by default and we can now have more control over which jquery version a mod uses and the variable name a mod should use too.
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 mrkid

  • Semi-Newbie
  • *
  • Posts: 64
    • https://www.facebook.com/HauntersNation/ on Facebook
    • @@Haunters_Nation on Twitter
    • Haunter's Nation
Re: Ohara YouTube Embed
« Reply #433 on: June 28, 2015, 12:59:00 PM »
Suki, I was using Aeva for all pics and videos. Youtube obviously stopped allowing this. I loaded your mod, and the links changed to black boxes. I even disable Aeva, and still only get boxes. If I drop the "s" from https, Aeva works fine, but don't feel like editing 1000's of old posts. Is Aeva causing a conflict?

Offline yakyakyak

  • Jr. Member
  • **
  • Posts: 303
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #434 on: June 28, 2015, 01:27:11 PM »
Suki, I was using Aeva for all pics and videos. Youtube obviously stopped allowing this. I loaded your mod, and the links changed to black boxes. I even disable Aeva, and still only get boxes. If I drop the "s" from https, Aeva works fine, but don't feel like editing 1000's of old posts. Is Aeva causing a conflict?

could you not use censor word to change just part of the url on https youtube links to cure your problem?

from https://youtube.com
to:
http://youtube.com

Offline mrkid

  • Semi-Newbie
  • *
  • Posts: 64
    • https://www.facebook.com/HauntersNation/ on Facebook
    • @@Haunters_Nation on Twitter
    • Haunter's Nation
Re: Ohara YouTube Embed
« Reply #435 on: June 28, 2015, 01:29:05 PM »
Oh, good idea. Let me try that.

But any clue why the videos show as black boxes?

Offline yakyakyak

  • Jr. Member
  • **
  • Posts: 303
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #436 on: June 28, 2015, 01:32:17 PM »
I am in the same boat but am removing the mod in favour of another solution. But i think your issue just may be sorted  ;D

Good luck


Offline mrkid

  • Semi-Newbie
  • *
  • Posts: 64
    • https://www.facebook.com/HauntersNation/ on Facebook
    • @@Haunters_Nation on Twitter
    • Haunter's Nation
Re: Ohara YouTube Embed
« Reply #437 on: June 28, 2015, 01:39:23 PM »
Yes, the censoring replace repaired all of the links, but I had to turn off this mod. It's a shame, because this mod would be much safer in the long run. I now can't post secure links.

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 #438 on: June 28, 2015, 01:48:20 PM »
Suki, I was using Aeva for all pics and videos. Youtube obviously stopped allowing this. I loaded your mod, and the links changed to black boxes. I even disable Aeva, and still only get boxes. If I drop the "s" from https, Aeva works fine, but don't feel like editing 1000's of old posts. Is Aeva causing a conflict?

Can I have a link to a post showing the problem?

This mod and aeva will not play nice if you allow both mods to parse youtube videos, I believe aeva allows you to disable the autoembed feature while keeping it as a gallery only.
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 mrkid

  • Semi-Newbie
  • *
  • Posts: 64
    • https://www.facebook.com/HauntersNation/ on Facebook
    • @@Haunters_Nation on Twitter
    • Haunter's Nation
Re: Ohara YouTube Embed
« Reply #439 on: June 30, 2015, 07:19:30 PM »
I have it working with Aeva by censoring https http as you recommended. If I disabled Aeva with the master disable, the videos would show as black boxes. They were not clickable, even though it gave you a cursor. I imagine if I got rid of aeva altogether, the code would not conflict, but I have a ton of Youtube videos.