Let's say you have some social channel pages but you would like to add a TabContainer on another page for example and that by using the add content insert certain social channels into a tabContainer. Now that is all pretty easy to do as it's just like adding other content to tabContainer but there is an issue when playing videos from other tabs in the tabcontainer except for the first one tab.
What happens is you click on a second tab then click on a video and you will hear the video playing but not see it, if you click back on the first tab you will see the video. So there seems to be a bit of a bug in the original code that Ning has done. Maybe this is something that the New Ning team could look into so in the mean time here is some code for you to use.
The code goes in your end of page custom code box.
Here is a link so you can see the tab container working: http://bizzssite.ning.com/social-channels-tabs
By the way you may notice my video player looks a little different and this is some custom code and css I used to get them to look like that and will post all that code for you soon.
<!-- GET SOCIAL CHANNELS IN TAB CONTAINERS WORKING FIX -->
<script>
x$('.tabContainerSection-pane.section-channel ').addClass('otherpanes');
x$('.tabContainerSection-pane.section-channel:first').removeClass('otherpanes');
x$(".tabContainerSection-pane.section-channel.otherpanes .matrix-itemFluid.matrix-itemFrame.feedListPage-item").click(function(){
x$(".tabContainerSection-pane.section-channel:first").show();
x$('.tabContainerSection-pane.section-channel:first .matrix.row').hide();
x$('.tabContainerSection-pane.section-channel:first .module-footer').hide();
x$(".tabContainerSection-pane.section-channel").parents().find('li.tabContainerSection-tab:nth-child(1)').addClass('navtabOne');
x$("li.tabContainerSection-tab:nth-child(1).navtabOne").click(function(){
x$(".tabContainerSection-pane.section-channel:first .matrix.row ").show();
x$('.tabContainerSection-pane.section-channel:first .module-footer').show();
});
});
</script>
<!-- END SOCIAL CHANNELS IN TABCONTAINERS FIX -->
Replies
Hi there,
Thanks for bringing our attention for this issue. We have already passed it further to our tech team.
Thanks,
Ning Team.