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

Alex - Rosas † Negras replied to Suave's discussion
I AM LOOKING FOR DEVELOPER ASSISTANCE WITH ADDING AUTOMATIC MUSIC TO MY HOME PAGE
"if you need I'm here, if you look in my discussions you will also find the playstil"
yesterday
Alex - Rosas † Negras replied to ⚡JFarrow⌁'s discussion
What is going on with Ning? What Do We have to Look Forward To?
"Bizz ⚡JFarrow⌁ 
I'm sorry that many like us have worked so hard and given up, but at least I'm…"
yesterday
⚡JFarrow⌁ posted a discussion
Back in the day, this community was jumping with activity.   But since the Ukraine war broke out we…
yesterday
⚡JFarrow⌁ and Truebook are now friends
yesterday
Alex - Rosas † Negras replied to Alex - Rosas † Negras's discussion
I want to thank JOHN BIZLEY ( BIZZ) for his invaluable help, active icons on the Ning bar,CODES ADDED
"A thousand thanks"
Tuesday
Alex - Rosas † Negras replied to Pam Givens's discussion
Landing Page
"Pam Givens this is an example i created of an old 3.0 site"
Tuesday
Alex - Rosas † Negras replied to Pam Givens's discussion
Landing Page
""
Tuesday
Alex - Rosas † Negras replied to Alex - Rosas † Negras's discussion
Sorry for my absence
"Pam Givens hi my friend, yes everything is ok a big hug"
Monday
Alex - Rosas † Negras replied to ⚡JFarrow⌁'s discussion
Ning Creators Sound Off: Share Your Network
"⚡JFarrow⌁  hi my bro! the situation is sad, Biz and all the programmers are missing, once we all…"
Monday
Alex - Rosas † Negras and Truebook are now friends
Monday
Melissa V updated their profile
May 7
conversor de letras updated their profile
May 7
More…

Meanwhile, you can check our social media channels