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

Paul Corona replied to Donna MacShoe's discussion
Ning Support phone number for my 20 yr old site
"NING support is useless anymore...I have respnded three times asking questins to a message they…"
Wednesday
Alex - Rosas † Negras posted a discussion
due to personal problems I have not been online anymore, I apologize so much and I am happy to be…
Tuesday
Alex - Rosas † Negras replied to Kos's discussion
Help w/Chat. Ning Support A No Go
"IL PROBLEMA È SEMPRE LO STESSO, NING GLI OPERATORI... DEVONO ELIMINARE I COOKIE SUL VOSTRO SITO"
Tuesday
Vlada replied to Kos's discussion
Help w/Chat. Ning Support A No Go
"I'm no IT expert by any means, but out of curiosity have you tried entering the chat room from the…"
Jan 8
Vlada replied to Eva Libre's discussion
Update, Merry Christmas
"Then add the recent price hike email that Ning has notified to be taking effect soon, I'm not…"
Jan 8
Kos posted a discussion
In November we began to notice Chat "freezing up" and when we would refresh the page, it would…
Dec 27, 2024
Eva Libre posted a discussion
UpdateMerry ChristmasToday I woke up totally frustrated and determined to do something.At the end…
Dec 26, 2024
Eva Libre liked Eva Libre's discussion Ning 3.0 is antisocial!
Dec 25, 2024
Eva Libre updated their profile
Dec 25, 2024
Eva Libre replied to Eva Libre's discussion
Ning 3.0 is antisocial!
"Update
Merry Christmas
Today I woke up totally frustrated and determined to do something.
At the…"
Dec 25, 2024
Pam Givens replied to Pam Givens's discussion
Landing Page
"What I meant to say, if I could spell:
I've attempted to create a landing page and have't had much…"
Dec 12, 2024
Pam Givens posted a discussion
I've attempted to crate a landing page and have't had much success.  I'd rather have one on my…
Dec 12, 2024
More…

Meanwhile, you can check our social media channels