News:

Wondering if this will always be free?  See why free is better.

Main Menu

Ohara YouTube Embed

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

Previous topic - Next topic

Obcy

Nothing create .

This happens when the option is($context['aeva_disable'] = true;), and there is no option.

And should ?








Suki

I don't really understand what you are trying to do here.

That code is for preventing links been parsed as videos on your shoutbox. If you put a link there and it doesn't get converted to a video then the mod is working as it should.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Obcy

Sorry for my english. Its feature not bug ok.

Its posible to  parsed

Suki

So, do you want the actual videos to appear in your shoutbox?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Obcy

Now it is empty if you paste the youtube link.  I want to be like the other links in shoutbox.


karavan2

Probably on this matter follows will address to the author of a shoutbox mod but not Mr. Suki.

willyvmm

Hi.
Does i missed something or this mod does not display Thumbnails for YT videos ?

Suki

Some youtube videos does not have a generic thumbnail, specially old ones.

The only way to make every video to display a thumbnail would be to use youtube api and thats something I rather prefer to avoid because:

- Its annoying and not that many admins would know how to create their own. can't create a unique app for everyone since there are limits and people will be locked out.
- APIs from big names like facebook, twitter or google changes every now and then, I cannot keep up with that.

I can post some instructions on how to call to the API and retrieve the thumbnail but I won't be adding that feature.


It also looks like you missed to place the oharaEmbed.css file in your theme's css folder, that file is needed to render the videos correctly.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Suki

Also updated the file to fix a missing edit.

For those who downloaded the previous version and want to manually fix this:

Search for

<img><iframe>

in Sources/Post.php and replace it with:

<img><iframe><div>

on both locations.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

willyvmm

Thanks.
I put the css on place :)

I did'nt know about the mising generic thumbnail. With another video everytnhing seems to be ok.

I changed the sddefault.jpg to hqdefault.jpg and it seems to did the job

Suki

Thats a nice idea! to check for either sddefault or hqdefault, will implement it when I have some time, thanks.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

lurkalot

I seem to be getting an error in the log each time I click the new topic button, or reply button.  Using the latest version Ohara YouTube Embed 1.2.1  And the tooltip is missing from the vimeo bbc button.

http://guitaristguild.com/index.php?action=post;board=29.0
8: Undefined index: OYTE_vimeo_desc
File: /home1/camcra24/xxxxxx_xxx/Sources/OharaYTEmbed.php
Line: 107

Suki

Ah yet another thing to fix, thanks for the report.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

dave87

Hi I'm having an issue with this modification on my website. Everything installed correctly and seems to work yet when a video is posted all that appears is the default grey youtube box with play button

briggz5d

HI,
I have the same problem as willy, thumbnail does show in some videos but not all, what css was copied from where to where?
What sddefault and hqdefault - where are these edits done?

Another issue is that i replaced this mod with my previous av lite which auto-embeds youtu.be links, going to every video on my forum to add the new youtube tags would be a pain.
How can i set it to autoembed youtu.be links?

Suki

Quote from: dave87 on March 28, 2015, 06:12:44 PM
Hi I'm having an issue with this modification on my website. Everything installed correctly and seems to work yet when a video is posted all that appears is the default grey youtube box with play button

Thats the expected behavior, youtube videos are now loading on demand, that is, when you click on them. Some videos do not have a preview image thats why you see a gray play button instead. Gotta do something about it it seems.

What happen when you click on the video?

Quote from: briggz5d on March 29, 2015, 12:56:22 AM
HI,
I have the same problem as willy, thumbnail does show in some videos but not all, what css was copied from where to where?
What sddefault and hqdefault - where are these edits done?


The css file is called oharaEmbed.css and its suppose to be in your themes css folder.

The call to sddefault is located at Themes/default/scripts/ohyoutube.js  jsut search for that word and replace it with hqdefault and see if that helps, that file is minimized so its dificult to add another conditional to check for both images, will have to do that on a new release.

Quote from: briggz5d on March 29, 2015, 12:56:22 AM
Another issue is that i replaced this mod with my previous av lite which auto-embeds youtu.be links, going to every video on my forum to add the new youtube tags would be a pain.
How can i set it to autoembed youtu.be links?

Well, if you are no longer using this mod then I cannot really help you, you need to talk to whoever wrote the other mod you are using.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

420Connect.co.uk

Could you please expand further on how to use the new added $context['ohara_disable'] to have the mod disabled in SP

Using the second part of the how to, you linked to before doesn't seem to have the effect anymore with the new version  :'(




edit;


It seems using http:// doesn't display but starting www. does?
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

lurkalot

Quote from: Suki on March 28, 2015, 04:04:27 PM
Ah yet another thing to fix, thanks for the report.

No problem.  I have another one now though,

Has youtube changed something?  for some reason all my youtube vids no longer play.  Shows the image, but no play button etc. Here's an example,  http://guitaristguild.com/index.php?topic=727.0  pretty sure they were all working yesterday.

Using Ohara YouTube Embed 1.2.1

420Connect.co.uk

Quote from: lurkalot on March 30, 2015, 12:27:49 PM
Quote from: Suki on March 28, 2015, 04:04:27 PM
Ah yet another thing to fix, thanks for the report.

No problem.  I have another one now though,

Has youtube changed something?  for some reason all my youtube vids no longer play.  Shows the image, but no play button etc. Here's an example,  http://guitaristguild.com/index.php?topic=727.0  pretty sure they were all working yesterday.

Using Ohara YouTube Embed 1.2.1

You need to click the video now!
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

Advertisement: