Hi NCs,
This trick is specially for those who are running their video based networking sites. As you know there are small featured video thumbnails in video section of every network. So this trick will actually hide those small featured video thumbnails and show 2 big and clear featured video thumbnails. But you still have an option to expand more featured videos. Even you can directly use the embed code from youtube video.
How to use this code?
Step 1. Copy and paste the following code into notepad.
Step 2. Go to video section of your network and click on any one of the videos,
Step 3. Click on Get Embed Code and grab the iframe code from there and paste the iframe code within "IFRAME CODE GOES HERE". Please note there are 2 videos you are going to add so, obviously you have to copy 2 iframe codes. Be sure to change the height and width of the Iframe. The best width and height are 362 X 204/
The whole code looks like this
<script type="text/javascript">
x$(document).ready(function() {
x$(".xg_list_video_feature").after('<iframe width="362" height="204" src="https://www.youtube.com/embed/QbGo95Rvh14?fs=1&feature=oembed&wmode=opaque" frameborder="0"></iframe>, <iframe width="362" height="204" src="https://www.youtube.com/embed/ZgTG6Bz_rpg?wmode=opaque" frameborder="0"></iframe>');
x$(".xg_list.xg_list_video.xg_list_video_feature").css('display','none');
});
</script>
Step 4. After that copy the whole code and paste it into custom code area of your site and save.
You are done.
The Code
<script type="text/javascript">
x$(document).ready(function() {
x$(".xg_list_video_feature").after(' IFRAME CODE GOES HERE , IFRAME CODE GOES HERE ');
x$(".xg_list.xg_list_video.xg_list_video_feature").css('display','none');
});
</script>
Contact me for Ning network customization (bernardmax2@gmail.com)
Live Example: Here
Example:
Replies
very nice Bernard!
Thanks you Eric and Michael.
having problems, they are showing not side by side.. but one on top of the other. Maybe i change the size down a bit more. If this fails then i am not displaying inline.
318 x 180 works for me. Just be sure to change your embed size.
I added
<!-- START Featured Videos -->
to the beginning of the code, so I can easily distinguish it when making changes.
362 x 204 is the best dimension.
I love the fact it allows the featured videos to play right from there.