Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Youtube video links embedding to large
Avatar
Daniel Reed
Member
Free Members
sp_UserOfflineSmall Offline
Dec 30, 2012 - 9:01 pm

Hello..

 

I was wonder if i am over looking something.. on our forum it seems that i had this working.. at one point.. but i went to components > file upload and was able to set the max size of the youtube video that is linked into a forum post.

 

as of now.. the it links as it should but about a little less that about 1/3 of the video is cut off from the the right edge of the post that is made..

-Dan

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 30, 2012 - 10:33 pm

are you using jetpack? a common error caused in wp pages by jetpack unless you disable the shortcode module of jetpack... unfortunately, a lot of this in WP support forum since wp removed the oembed max size settings in the wp admin...

if not using jetpack, please elaborate..

Avatar
Daniel Reed
Member
Free Members
sp_UserOfflineSmall Offline
Dec 30, 2012 - 11:25 pm

not using jet pack..

 

as far as elaborating.. i am not sure what else to add.. 

the youtube links seem to self embed when a poster posts them.. they do not have to go through the add media button on the editor.. they simply put the url of the youtube video they want to show.. and it appears..

if there is any other information you might need .. let me know and ill do my best to provide that.. you can go to my forum.. 

its at http://www.rchelination.com/forum

i have a generic account your welcome to use..

user name is testuser

pw is testuser

the forum is pw protected until we are ready to go live with it.. and the pw to get on the site is   werock  

your welcome to head over.. in the main forum youll see a topic called RC heli videos  you will see examples of what i am talking about there

 

-Dan

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 31, 2012 - 5:44 am

The problem has started because the WordPress dev team have removed the option to set a max width in the WP settings > media admin panel that was available before and are now adding in a width value dynamically - something which I personally think is a mistake and ypu are not alone in being caught out by it. Am I also right in thinking you are using some sort of third-party plugin to render the videos? That might also be in need of an update f this is the case.

As a temp measure try adding to your Wp theme CSS this and see if it helps:

.player-container {
    max-width: 82%;
}

Might be enough...

andy-signature.png
YELLOW
SWORDFISH
Avatar
FidoSysop
Clearwater Florida
Member

VIP
sp_UserOfflineSmall Offline
Dec 31, 2012 - 10:22 am

Hanna Code Insert is another option for adding YouTube, PayPal Buttons, Etc. Copy / Paste your content then past the short code in your post. Especially useful if you want to add a video that is in an iframe where SP will not allow it. WordPress puts an add code button on it's tiny mce editor making it easy to enter short codes easily.

 

  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
Daniel Reed
Member
Free Members
sp_UserOfflineSmall Offline
Jan 5, 2013 - 4:04 am

Ok, I'm back and still haven't been able to solve the problem. Unfortunately, the max-width code didn't work, YS. :(

Here's an example of my problem on my actual forum: http://www.rchelination.com/fo.....-snow-day/

I am unable to find anything in the css stylesheet or any of the other theme files that will allow me to force the embedded video frame width to some value less than the 730px that my forum is set at.

I want my forum users to be able to simply copy and paste a YouTube or Vimeo link into the editor and get a video that doesn't overflow the forum width. Ideally, it would look like this: http://demo.simple-press.com/f.....ube-embed/

I don't want to have short code or HTML editting enabled for my forum users to access, so I need a solution that changes the global default. Thanks again for your help!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 5, 2013 - 10:06 am

try this instead:

.spPostContent iframe {max-width: 730px;}

Avatar
Daniel Reed
Member
Free Members
sp_UserOfflineSmall Offline
Jan 5, 2013 - 1:09 pm

Mr Papa,

That looks like it worked! Thanks a ton! :D

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 5, 2013 - 1:54 pm

Good news. Thanks for the update.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Carlos
Spain
Member
Free Members
sp_UserOfflineSmall Offline
Apr 23, 2013 - 8:22 am

Mr Papa said
try this instead:

.spPostContent iframe {max-width: 730px;}

sorry i lost something... where do i have to put this code?

 

thanks in advance

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625