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

J.Ayvar replied to Kyryl_Ning_Support's discussion Paid Access demo version
"I totally agree with with Jords and Alex ! 
Our company has managed 15 Ning projects on the last fo…"
11 minutes ago
Ceddy J replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"So it just dawned on me that you're a CSS Maestro! Impressed by your chops."
5 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"Hi there!
Here is what I have been able to do. all the following code sould be put in custom CSS fi…"
6 hours ago
Ning via Facebook

#Ning #search #news The long-awaited Search Option on Ning 3.0 is here! We are happy to…

Kos replied to Kyryl_Ning_Support's discussion The long-awaited Search Option is now at your fingertips!
"We've been waiting for years................Thank you (new) Ning!  Keep those improvements coming. "
7 hours ago
Kos replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"YAYYYYY!  It's back!  The small chat in the corner is entirely too small for us - nothing is better…"
7 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"IMPORTANT UPDATE!
If you are using the domain mapping it's necessary to use the custom domain name…"
7 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"Hi Kos!
Regarding the Url to embed. Please check the third page with comments under this post. I ha…"
7 hours ago
Ceddy J replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"Oh yes I love it the bubble! I live my life in a bubble lol."
7 hours ago
Kos replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"Kyryl you must be the magic charm because low and behold......the sound began working today.  *lol*…"
7 hours ago
Ceddy J replied to Kyryl_Ning_Support's discussion The long-awaited Search Option is now at your fingertips!
"One recommendation is the advanced search filter like 2.0. This will allow for a great compliment t…"
8 hours ago
Jords replied to Kyryl_Ning_Support's discussion Paid Access demo version
"Thanks for passing this on Kyryl. :)"
8 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion Free Groups and Events Features for Ning 2.0 Mini plan!
"Hi Thiago,
I see that you have posted this suggestion everywhere you've been able to :-)
No worries…"
8 hours ago
Jords replied to Kyryl_Ning_Support's discussion The long-awaited Search Option is now at your fingertips!
"Excellent! To bad it's not July, because with these updates, it feels like Christmas!"
8 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion Paid Access demo version
"Hi there!
The paid access will be granting the access to the certain content for the paid members,…"
8 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion Paid Access demo version
"Hi Dan,
I'm sorry to say this but we already have necessary amount of beta testers :-(
But anyway t…"
8 hours ago
Kyryl_Ning_Support replied to Yana Ning Support's discussion Product Plan Update
"Hi there!
We have just run the test and chat seems to be working fine. Please try clear cache and c…"
8 hours ago
Kyryl_Ning_Support replied to Yana Ning Support's discussion Product Plan Update
"Hi there!
I have posted your suggestion to change the layout of the chat and left the same function…"
8 hours ago
Paul Corona replied to Dr. Krishna Kumari Challa's discussion I am unable to find discussions on my network when I search. Any solutions?
"I have this code on our main page as a search function that works well:
<form target="_new" action=…"
8 hours ago
Writer Chick {Diane} replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"Okay, thanks for responding! "
9 hours ago
More…