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

FORUM

UPDATED

Note this is now the new code as the uploaded videos are not in an iframe the first part was affecting the layout slightly for the uploaded videos. This code now checks to see if the video is in an iframe and if so adds a class for the css.

Here is some code to make the videos added to the new video feature responsive in size. This will especially help those videos that have been embeded rather than a link just added.

You can see a demo here: Demo Of Responsive Video

Add some custom code to your site and pages custom code to add a class if iframe exists

<script>
x$(document).ready(function() {
if (x$('.videoDetailPage-video iframe').length > 0) {
x$('.videoDetailPage-video').addClass('iframed');
}
});
</script>

Now add the updated CSS

/* 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;
}

Enjoy

John :-)

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

Join Ning Creators Social Network

Email me when people reply –

Replies

  • Nice John.  Thank you!

    • Your most welcome Kos :-)

  • Just updated this code 30-03-17

  • NC for Hire

    great tip John!

    • Thanks JF, now this is possible for the videos I have added an interesting feature for the activity feed if you want to check it out, still a work in progress but it's getting there. Go to my site and click on a video in the activity feed to try it out.

      http://bizzssite.ning.com/

      John :-)

      Bizzs Site
      Tips for Ning 3.0 sites
  • Thank you #JohnTheMan. :-)
  • Does it automatically adjust for mobile phones?
    • I fix it. I had to remove other CSS code.
    • Yes it does :-)

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

Naveen Jain replied to Naveen Jain's discussion
Members cannot login using Linkedin Single-signon
"Just asked my Community Manager to send the video of the issue. So far, the issue persists."
7 hours ago
Ning via Facebook

Look for new challenges to help all your dreams, plans and projects come true. Do you believe…

George H. Compton IV replied to George H. Compton IV's discussion
(TIP N3.0 & N2.0) Nonmembers/visitors redirect scripts
"Hello Petra, the code would go in your "NC custom code box", If you're the network owner you would…"
Friday
Dan Lee replied to Kyryl_Ning_Support's discussion
North Pole, Express delivery - Members Ranking System 3.0
"Right not the player."
Friday
Ning via Facebook

Use crowdfunding as a new efficient way to earn money for your project! How to organize it?…

Petra Haarman replied to George H. Compton IV's discussion
(TIP N3.0 & N2.0) Nonmembers/visitors redirect scripts
"Hello, i have a ning 2.0 website. where can i add this redirect script? on which page?"
Friday
Kyryl_Ning_Support replied to Naveen Jain's discussion
Members cannot login using Linkedin Single-signon
"Hi there!
In such case could you please make some screenshots so I could see the error message that…"
Friday
Kyryl_Ning_Support replied to Fabricio Giugni's discussion
How to make Rewards look better?
"Hi Gerard,
I can see that you have set up the points for different activities on your network, howe…"
Friday
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion
North Pole, Express delivery - Members Ranking System 3.0
"Hi Dan,
I guess something like this could be done with a bunch of custom code, but I'm not sure abo…"
Friday
Wilkin, Otoniel , Paul Morrant and 8 more joined Ning Creators Social Network
Friday
Jennifer Peterson left a comment on
"It is saying that this plug in is not supported and won't me let me download the different digests.…"
Friday
Naveen Jain replied to Naveen Jain's discussion
Members cannot login using Linkedin Single-signon
"Hi Kyryl,
I am not sure, why you did not encounter the issue. I just tried myself - ( I am the only…"
Friday
More…

Meanwhile, you can check our social media channels