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.

Search the Creators Network

Latest Activity

Manuel Adame Jimenez replied to Kyryl_Ning_Support's discussion Our Efforts - Your Feedback
"Patience ... with the look in the moment that comes ... thanks
♤♡♧"
20 minutes ago
Bizz ( John ) replied to Naveen Jain's discussion How can I disable Ning Search in 3.0
"Mike can't seem to find a way yet to block the search for private groups but here is a way you can…"
36 minutes ago
⚡JFarrow⌁ replied to Bizz ( John )'s discussion Photo Albums and Video Albums ( the one thing missing that could really improve things )
"Yes I would like this"
1 hour ago
Janice D Carter replied to Kyryl_Ning_Support's discussion Network not launched yet issue
"Still no chat and no communication about when.  I can almost tolerate an issue if I am being told w…"
1 hour ago
Rosario Sarno (Saro) replied to Kyryl_Ning_Support's discussion Network not launched yet issue
"On my site, chat is no longer working, you do not see who's online
http://www.fotografiapuntodincon&hellip;"
1 hour ago
Fran replied to Marcelo Rodrigues's discussion Chat problem
"My chat,  down too :S"
2 hours ago
Bizz ( John ) replied to Alex's discussion NING 3 Groups on Home Page
"Your welcome Alex :-)"
3 hours ago
⚡JFarrow⌁ replied to Fabricio Giugni's discussion Create a member Pro. What can he do that others can't?
"You could offer access to a group or set of pages that other members can't see..."
4 hours ago
Kevin Acosta replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"FYI - some programming glitch is also affecting the old Ning 2.0 Pro sites . . . same "blank" regis…"
6 hours ago
Kevin Acosta replied to Marcelo Rodrigues's discussion Chat problem
"Apparently having the same issue here, including the timing as reported by site members while I was…"
6 hours ago
Kevin Acosta replied to Kyryl_Ning_Support's discussion Network not launched yet issue
"@ Kyryl - - thanks for these updates.  I was out of pocket traveling the past week, and several mem…"
6 hours ago
Tyler Durbin replied to Marcelo Rodrigues's discussion Chat problem
"My chat has been down for 2 days!  They are saying that it is a bug.  Ugggg...."
6 hours ago
Alex replied to Alex's discussion NING 3 Groups on Home Page
"Thank you John... works a treat.
Much obliged!
Alex"
6 hours ago
Manuel Adame Jimenez replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"Patience Kos
{[°III ♤ ♡ ♧ III°]}"
6 hours ago
Bizz ( John ) replied to Naveen Jain's discussion How can I disable Ning Search in 3.0
"Not sure, but will have to take a look to see if it's possible."
7 hours ago
Bizz ( John ) replied to Alex's discussion NING 3 Groups on Home Page
"I would write this with this code below as it would keep the groups a nice size and not to small mu…"
7 hours ago
Ning via Facebook

#Ning #radio #online Tune in to the radio, find your playmates - and have fun on…

Mike Collins replied to Naveen Jain's discussion How can I disable Ning Search in 3.0
"John is there anyway of excluding the search in private groups through code?"
8 hours ago
Naveen Jain replied to Naveen Jain's discussion How can I disable Ning Search in 3.0
"This worked. Thanks"
8 hours ago
Naveen Jain replied to Naveen Jain's discussion How can I disable Ning Search in 3.0
"culytics.com"
8 hours ago
More…