InterOcean Designs
« YouTube Thumbnail Links in Posts »

Welcome Guest. Please Login or Register.
May 22, 2013, 9:03pm




InterOcean Designs :: ProBoards Codes :: ProBoard Code Database :: YouTube Thumbnail Links in Posts
« Page 2 of 3 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]
 AuthorTopic: YouTube Thumbnail Links in Posts (Read 1,693 times)
OJ
Moderator
member is offline

[avatar]

[yim] [msn]
[homepage]

Joined: Nov 2010
Gender: Male
Posts: 976
Location: California
Karma: 53
 Re: YouTube Thumbnail Links in Posts
« Reply #15 on Aug 15, 2011, 9:37am »

Yes! It looks alot better now. Just one more question and I'll leave you alone with this (hopefully :P)

Would it be possible to mod the code so that it makes all the video images the same size? I ask because I noticed that when you told me to change the top value in the .youtube_thumb img to 18px to get the nice even borders, that with one video the image would cover the Xtreme Elites Text, but with others it wouldn't. I changed it back to 10px, and none of the vids cover the text, but they don't have those nice even borders they had. So I was wondering if this was possible?

Take a look at what I mean: Clicky
Link to Post - Back to Top  IP: Logged

[image]
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: YouTube Thumbnail Links in Posts
« Reply #16 on Aug 15, 2011, 10:25am »

The image is the same size for all vids. Some of the thumbnails will have the black bars above and below just like on dvds, movies if they are in widescreen format. Test with a "full screen" video like the one in my first post. Or that vid on the top right is full screen.

The red border is the outline of the actual thumbnails.

[image]
« Last Edit: Aug 15, 2011, 10:36am by SubDevo »Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
OJ
Moderator
member is offline

[avatar]

[yim] [msn]
[homepage]

Joined: Nov 2010
Gender: Male
Posts: 976
Location: California
Karma: 53
 Re: YouTube Thumbnail Links in Posts
« Reply #17 on Aug 15, 2011, 10:39am »

Ahh I see. Hmm, but then there would be no way for me to control what type of video I get right? It would depend on how the hoster uploaded that vid. Would there be anything else I could do?
Link to Post - Back to Top  IP: Logged

[image]
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: YouTube Thumbnail Links in Posts
« Reply #18 on Aug 15, 2011, 10:54am »

The thumbnail image is created by YouTube. I'm not adding the black bars. The only thing I did is change the height which sets the width proportionaly (keeps the aspect ratio). So no. You have no control over it. The only way is for you to make your own thumbnail and manually put it in a post as an image link to the vid. lol
Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
OJ
Moderator
member is offline

[avatar]

[yim] [msn]
[homepage]

Joined: Nov 2010
Gender: Male
Posts: 976
Location: California
Karma: 53
 Re: YouTube Thumbnail Links in Posts
« Reply #19 on Aug 15, 2011, 11:00am »

Aww, that sucks. :(

But oh well. Thanks for everything Sub. Awesome code, quality like always. :)
Link to Post - Back to Top  IP: Logged

[image]
aRMY83
Elite Member
IOD Supporter
member is offline

[avatar]

It's me!


[homepage]

Joined: Mar 2010
Gender: Male
Posts: 1,077
Location: Just a Stone's Throw Away!
Karma: 40
 Re: YouTube Thumbnail Links in Posts
« Reply #20 on Aug 15, 2011, 4:59pm »

SubDevo...

When you say "You may add a border to the CSS without any issues.", where, if I may ask, where is it? I've tried it and it shows nothing.

Note: Is the border suppose to go all the way around the thumbnail image?
Link to Post - Back to Top  IP: Logged

[image]

[image]
OJ
Moderator
member is offline

[avatar]

[yim] [msn]
[homepage]

Joined: Nov 2010
Gender: Male
Posts: 976
Location: California
Karma: 53
 Re: YouTube Thumbnail Links in Posts
« Reply #21 on Aug 15, 2011, 6:09pm »


Aug 15, 2011, 10:25am, SubDevo wrote:

[image]

I could be wrong, but I think the CSS is for those border Sub is pointing out. But like I said, I could be wrong. ;D
Link to Post - Back to Top  IP: Logged

[image]
aRMY83
Elite Member
IOD Supporter
member is offline

[avatar]

It's me!


[homepage]

Joined: Mar 2010
Gender: Male
Posts: 1,077
Location: Just a Stone's Throw Away!
Karma: 40
 Re: YouTube Thumbnail Links in Posts
« Reply #22 on Aug 15, 2011, 7:30pm »

Thanks OJ for the input, but tried that with a light background with no affect of seeing any kind of border. Was looking for a border tho, that is somewhat like yours, and if I may add, SHARP it is!

Cheers....
« Last Edit: Aug 15, 2011, 7:34pm by aRMY83 »Link to Post - Back to Top  IP: Logged

[image]

[image]
OJ
Moderator
member is offline

[avatar]

[yim] [msn]
[homepage]

Joined: Nov 2010
Gender: Male
Posts: 976
Location: California
Karma: 53
 Re: YouTube Thumbnail Links in Posts
« Reply #23 on Aug 15, 2011, 7:59pm »

Oh no see, those red borders aren't really there. Sub took a ss of my thread where HE put the borders to show me where the borders are supposed to be. But who knows, you might be able to put borders like that. ;)
Link to Post - Back to Top  IP: Logged

[image]
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: YouTube Thumbnail Links in Posts
« Reply #24 on Aug 16, 2011, 1:42am »

Ok folks, since, it seems everyone wants it more customizable, I TOTALLY changed the code. Now, you can specify the small logo image URL and with the new CSS you can position, size, add borders etc to the actual thumbnail image and the logo image. If you replace your current code (if you have it default), you will not see any visual differences. But, it will be ready if you wish to customize it in the future.
« Last Edit: Aug 16, 2011, 1:45am by SubDevo »Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
aRMY83
Elite Member
IOD Supporter
member is offline

[avatar]

It's me!


[homepage]

Joined: Mar 2010
Gender: Male
Posts: 1,077
Location: Just a Stone's Throw Away!
Karma: 40
 Re: YouTube Thumbnail Links in Posts
« Reply #25 on Aug 16, 2011, 3:38pm »

Oh yeah Sub, no complaints on the change, and again, one nice code, indeed!

Cheers [image] to ya buddy....
« Last Edit: Aug 16, 2011, 3:39pm by aRMY83 »Link to Post - Back to Top  IP: Logged

[image]

[image]
LunyRed
Senior Member
member is offline

[avatar]


[homepage]

Joined: Sept 2009
Gender: Male
Posts: 542
Location: An archipelago in SE Asia
Karma: 14
 Re: YouTube Thumbnail Links in Posts
« Reply #26 on Aug 16, 2011, 10:12pm »

I missed what the fuss is about. ;D

It seems this code has been customized even more than the original. I like how this has turned out, judging from the screenshot samples OJ has posted. :)
Link to Post - Back to Top  IP: Logged

[image]
[ME] and I are best buddies~ Unlike me, [ME] is obsessed with Justin Bieber.. o_o'
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: YouTube Thumbnail Links in Posts
« Reply #27 on Aug 16, 2011, 11:30pm »

Yes Luny. Replace the code I gave you with this one. It will look exactly the same but it is more customizable. I updated the code post with new instructions and a second "black" background image as another option (at the bottom of the post). 8-)
Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
LunyRed
Senior Member
member is offline

[avatar]


[homepage]

Joined: Sept 2009
Gender: Male
Posts: 542
Location: An archipelago in SE Asia
Karma: 14
 Re: YouTube Thumbnail Links in Posts
« Reply #28 on Aug 16, 2011, 11:47pm »

Excellent! 8-) Can't wait to update! You're awesome, Sub! X3
Link to Post - Back to Top  IP: Logged

[image]
[ME] and I are best buddies~ Unlike me, [ME] is obsessed with Justin Bieber.. o_o'
LunyRed
Senior Member
member is offline

[avatar]


[homepage]

Joined: Sept 2009
Gender: Male
Posts: 542
Location: An archipelago in SE Asia
Karma: 14
 Re: YouTube Thumbnail Links in Posts
« Reply #29 on Nov 8, 2011, 7:45pm »

Bump!

Sub isn't around.. Now that the background for the YouTube player has been more customizable, I've thought of something to push it further to the next level. So I'd like to ask this:

If the forum is using different skins, which parts of the code should the If-Else statements be applied? (the entire part)

To anyone who knows, thank you in advance! :)
Link to Post - Back to Top  IP: Logged

[image]
[ME] and I are best buddies~ Unlike me, [ME] is obsessed with Justin Bieber.. o_o'
« Page 2 of 3 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile