News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Ohara YouTube Embed

Started by Suki, December 21, 2011, 03:04:59 PM

Previous topic - Next topic

Douglas

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?
(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 / Guru / Maven / whatever)

Suki

Quote from: Douglas on June 25, 2015, 12:24:47 PM
First, do you support (or plan on adding support for) extremely short tags?
(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.

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

Yes.

QuoteThird, 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.

Suki

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.

Douglas

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 / Guru / Maven / whatever)

yakyakyak

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?

Suki

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.

yakyakyak

Quote from: Suki 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.

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

yakyakyak

#427
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?

Suki

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.

yakyakyak

Yep. I've inboxed you Suki wit a login and url




Suki

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.

yakyakyak

Quote from: Suki 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.

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.


Suki

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.

mrkid

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?

yakyakyak

Quote from: mrkid 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?

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

mrkid

Oh, good idea. Let me try that.

But any clue why the videos show as black boxes?

yakyakyak

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


mrkid

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.

Suki

Quote from: mrkid 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?

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.

mrkid

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.

Advertisement: