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

3.0 Hide Items When Signed In

What if you have items on your 3.0 site which are there to attract and entice a new visitor, but you don't need/want them to show to an existing member?  Things like a testimonial, "about us" video, other banners or sliders?  You can hide them all to a signed in member (which allows more true content to be viewed)..........by inserting a "class" in each and using one custom code to hide them all.  Note:  This only works if the items are in a HTML/text box - not if in the above-header area.

Place the following in front of your HTML code.  It gives a "class name" to whatever content is placed between the <div>


<div class="hideit">
YOUR CONTENT OR BANNER CODE GOES HERE
</div>


Place this in your Custom Code area.  It will hide anything that has the "hideit" class:


<!-- Hidden areas when signed in -->
<script type="text/javascript">
if (ning.CurrentProfile != null)
x$('.grid-frame.sheet.section-html:has(.hideit)').hide();
</script>
<!-- end hidden areas when signed in -->

I have learned soooo much since being with Ning and I cannot thank all the generous Ning Creators enough.  I try to pay it forward in whatever small way I can.  Hat tip on this one to SweetPotato when he helped me "hide" my slider when a member is signed in.  This has opened up many more ideas for me (and believe me, I'm not a coder!)  I don't think this is any big design secret that I'm giving away here but to a schlep like me, it's gold!  *lol*

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

  • Great tip Kos! We're working on a visibility option that will let you do this and other things easily; we're hoping to release that next week.

    • Awesomeness!!!3229942?profile=original

    • +1

  • I personally love this hack!

  • NC for Hire

    Nice tip, Kos.

    =)

    • It's a simple tidbit but I was excited.  LOL  Miss seeing your smiling avatar Jen!  Hope you had a wonderful holiday season - and all of the best in 2014.

      • NC for Hire

        Thanks, Kos. And to you, too! I regret not being able to help out much these days, family illness and work. But, always moving forward...

        =)

  • Awesome Tip Kos, thanks for sharing :)

  • Great tip Kos. Blessings.

  • Will this work in Ning 2.0 ? Or is there anything similar i can do for ning 2.0? 

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

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
Adul Rodri is now friends with ANGE.L LUAR and Margarida Maria Madruga
Feb 14
More…

Meanwhile, you can check our social media channels