Current status of the Ning Platform is always available on the Ning Status Blog.

NOTE: This applies to streaming videos like YouTube etc and not videos members directly upload to your site.

Resize Your Videos And Make then responsive. Applies to Video Pages And Groups Video Pages. Also Social Channels

DEMOS

Social Channels: https://jr-images.ning.com/anna-rudolf

Video Page: https://jr-images.ning.com/videos

 

CODE FOR SOCIAL CHANNELS, CSS GOES INTO YOUR DESIGN STUDIO CUSTOM CSS

/*** RESIZE THE VIDEO IN SOCIAL CHANNELS ****/
@media only screen and (min-width:979px){
.feedListPagePlayer-source .sourceContainer {
display: flex;
align-items: center;
width: 100%;
height: 70vh;
max-width: 85%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
}
@media only screen and (max-width:979px){
.feedListPagePlayer-source .sourceContainer {
top:30%;
}}

 

MAIN VIDEO PAGES CODE

This first part goes in your Social Site Builder > Custom Code > End Of Page Section ( do not include this line )

<script>
// Video And Photos Additional Classes
x$(document).ready(function(){
x$('.videoDetailPage').closest('body').addClass('isVideoDetailPage');
});
</script>
<script>
//If videos are iframed then css makes them responsive
x$(document).ready(function() {
if (x$('.videoDetailPage-video iframe').length > 0) {
x$('.videoDetailPage-video').addClass('iframed');
}
});
</script>

 

NEXT PART IS THE CSS, THIS GOES IN YOUR DESIGN STUDIO CUSTOM CSS ( DO NOT COPY THIS LINE WITH THE CODE )

 

/************** VIDEOS CODES ************/

@media only screen and (min-width:771px){
/* Adjust the Column Widths Video Detail Page */
.videoDetailPage .span8{ width:80% }
.videoDetailPage-list { margin:0px }
.videoDetailPage .span6{ width:20%}
.videoDetailPage .matrix-itemFluid { min-width: 80%;max-width:100%; float:none }
.videoDetailPage .span6 .matrix-itemFluid { width: 80%; margin: 0px auto; }
.videoDetailPage-titleList { text-align:center; font-size:1.1em }
.videoDetailPage .icon-love{display:inline;vertical-align:bottom;}
}

/* Add a title to the video description */
.videoDetailPage-mainVideo >.entry-content::before{content:"About"; display:block; margin-bottom:5px; text-decoration:underline }
.videoDetailPage-viewVideo .icon-eye{vertical-align:bottom;display:inline;margin-right:0px;}
.videoDetailPage-otherVideo .videoListPage-metaTitle{ font-size:12px!important }
.videoForm-inputTitle { height: auto;}
.videoDetailPage-mainVideo .standard-comments.entry-comments::before{content:"Comment";display:block;margin-bottom:5px; text-decoration:underline}


/* Make video Responsive */
.videoDetailPage-video.iframed{
margin-bottom: 5px;
width: 100%;
height: 0;
padding-bottom: 56.25%;
position: relative;
}
.videoDetailPage-video.iframed iframe{
max-width: 100%;
height: 100%;
width:100%;
position: absolute;
}

 

You need to be a member of Ning Creators Social Network to add comments!

Join Ning Creators Social Network

Votes: 0
Email me when people reply –

Replies

  • Do you know if this will work on N2 sites? 

    • Not this code as all the class names and layout of N3 are different than 2, it could probably be re-written to fit 2. I don't own a 2 anymore so not wrote it for 2 as not able to test it.

  • 8413087061?profile=RESIZE_930x

    into Rosas I can't get it to work, sure I did something wrong
  • my videos are uploaded, no link from yutube, maybe this is the problem?

    • Yes it will only work with youtube etc and not uploaded videos. The reason is that uploaded videos are resampled down by Ning to a certain size so when you try to make them bigger they loose quality.

  • This is cool but I just realized there's no commenting area. 

    • On social channel pages there is no option for commenting as it's just bascially streaming the list of videos from that channel page. If adding them to an actual video page by linking or embedding then there is commenting.

This reply was deleted.
 

Some interesting articles related to community management, digital marketing etc. could be found in our digest. Don't hesitate to leave a feedback so we would know that we should continue :-)

Latest Activity

Maighread Birdsong updated their profile photo
yesterday
J.Ayvar replied to Nique Stevenson's discussion
Directory Page
" hello, is there any update  idea to build a directory with ning 3 ?"
Saturday
TJ @ jQueryHelp replied to TJ @ jQueryHelp's discussion
Security Alert! Please Delete Code for my Old Apps such as Smileys IMMEDIATELY!
"Thanks! 👍"
Friday
J.Ayvar replied to TJ @ jQueryHelp's discussion
Security Alert! Please Delete Code for my Old Apps such as Smileys IMMEDIATELY!
"Thanks TJ.  welcome back !"
Friday
TJ @ jQueryHelp posted a discussion
Hi everyone! This is TJ, a Ning Apps developer for many years.  Looks like some Ning Creators are…
Friday
Rosas † Negras replied to Rosas † Negras's discussion
After many years of experience, I would like to know from you designers how I can solve this problem and a ridge
"thank you very much I come from the times of this site now I put the photo, it was hard to survive…"
Dec 1
Bizz replied to Rosas † Negras's discussion
After many years of experience, I would like to know from you designers how I can solve this problem and a ridge
"To do a border without the ridge and using dots you would just write it like this
border:13px…"
Dec 1
Steve C posted a discussion
 I want to put ads above individual groups.Jen showed me how to put text above forum categories…
Dec 1
Rosas † Negras replied to George H. Compton IV's discussion
(TIP N3.0 & N2.0) let's hang some Christmas lights..CSS.. Happy holidays :-) updated 12-04-14
"I don't use file manager for photos, so if it's a photo I'm not interested even if after I close…"
Dec 1
Rosas † Negras replied to Rosas † Negras's discussion
After many years of experience, I would like to know from you designers how I can solve this problem and a ridge
"I agree with you, but I want it rounded, on the square it gives no problem,this is an impossible…"
Nov 30
Bizz replied to Rosas † Negras's discussion
After many years of experience, I would like to know from you designers how I can solve this problem and a ridge
"It's because you are using the ridge as a border, to create the ridge the border property adds the…"
Nov 30
Rosas † Negras replied to Rosas † Negras's discussion
After many years of experience, I would like to know from you designers how I can solve this problem and a ridge
"I don't want to go below 13 px I know all would be ok but it's too logical"
Nov 30
More…

Meanwhile, you can check our social media channels