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

NC for Hire

Hi all,

UPDATED 10th Jan 2015 and now compatible with v2 themes, and supported here.

Inspired by the conversation going on over here, I have spent today writing a hack so that members of your Ning 3.0 network can include YouTube, Vimeo, ReverbNation, SoundCloud etc embeds on their profile pages (like they can in text boxes on Ning 2.0).

This places an embed below the member profile cover area, like so:

The script assumes that the embed code is iFrame based, as those eagle-eyed in the code stakes will soon see, and works by asking members to insert the embed code into a profile question.

Here is a step-by-step guide:

1) Add a Profile Question to your Ning 3.0 site. Make it a "Website Address" answer and you MUST include the word 'embed' in your question. In this instance the question is

Include a video or music player on your profile page by inserting embed code below

You might want to change the wording but make sure that embed is in there.

2) Go to the Custom Code section of your Ning 3.0 site and add the following script to the End of Page Code box.


<!-- PROFILE PAGE EMBED www.SweetPotato.me.uk -->
<script>
x$(document).ready(function() {
if (x$('.aboutTab-question:contains("embed")').length > 0) {
x$('.module-body.aboutMember').append('<div class="SP_Profile_Embed_Wrap"><div class="SP_Profile_Embed"></div></div>');
}
x$('.aboutTab-question:contains("embed")').remove();
var embed = x$('.aboutTab-questionAndAnswer:contains("iframe")').text();
x$('.SP_Profile_Embed').html(embed);
x$('.SP_Profile_Embed').contents().filter(function(){ return this.nodeType != 1; }).remove();
x$('.aboutTab-questionAndAnswer:contains("iframe")').remove();
});

</script>


3) Now add this css to the Design Studio:

.SP_Profile_Embed {
text-align: center;
width: 100%;
margin-top:20px;
}


Members will now be able to add embeddable vids and music players via their profile update screen.

Here is a working example.

All seem to be responsive if you select the right embed options.

The css ninjas among you will want to tweak the look and feel of the .SP_Profile_Embed wrap, so by all means go ahead.

For now I've gone for simplicity. The embed is below the cover area but it can of course be modified to sit anywhere on the page, just drop me a PM.

Enjoy!

SP

More Tips Here

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

Join Ning Creators Social Network

Votes: 0
Email me when people reply –

Replies

  • You are the MAN SP! I am still working on it but knowing you're here thrills my soul. Mine is a Music Network, so this rather assuages my angst in relation to 3.0. Thank you from the heart.

    • NC for Hire

      Edie2k2, you're welcome. I have a version of it for V2 themes too if needed.

      Be sure to check out for more tips on my site.

      SP

  • Perfect tip and very useful for my network, thank you so much

  • NC for Hire

    4970126?profile=RESIZE_180x180 NC for Hire

    I can't get it to work ... and can get help with precise photos also for the reason that we do not know if the codes must be placed below or above the codes of my theme thanks

  • From what I can tell even with Georges updated code it just won't work done properly, with Ning changing codes it disables this code like it did for AnGellas background CSS code.  I no longer have a Ning community because I found a better option still I have friends here so I am trying to help but it seems we are limited.

  •  It doesn't seem the code is working for me anymore. Can you please help me. 

    • Hi there!

      I have checked the code and it works fine, are you sure you have installed everything right and have followed the instructions properly? Could you please describe what you have done and how you have tested the work of the code?

      Looking forward to hearing from you.

      Best regards,

      Ning Team.

      • Hey there Kyryl Never mind I fixed it Thank you for the help though. :) 

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

⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion
Style Hack: How to Have Different Backgrounds for Different Groups
"still love this hack"
4 hours ago
Alina Langley replied to Suzie Nielsen's discussion
Ning 2.0 For Sale
"Do you atill have a NING 2.0 site? I am looking for one, please DM me :)"
Apr 12
Alina Langley updated their profile photo
Apr 12
Alina Langley updated their profile
Apr 12
LEO Mobile App Builder updated their profile
Mar 26
Aase Lillian replied to Aase Lillian's discussion
Community - activity page
"Ok, thank you. Please send me details as I have no idea on how to do it. "
Mar 19
Aase Lillian and ⚡JFarrow⌁ are now friends
NC for Hire
Mar 19
⚡JFarrow⌁ updated their profile photo
Mar 18
⚡JFarrow⌁ replied to Aase Lillian's discussion
Community - activity page
"Yes you can add emojis to your community pretty much anywhere you like.
If you need some help…"
Mar 18
Aase Lillian updated their profile
Mar 18
Aase Lillian posted a discussion
Hi all. Is it possible to add emojis to the community? I also wish the activity page to include…
Mar 18
Donna MacShoe updated their profile photo
Mar 6
More…

Meanwhile, you can check our social media channels