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

Martin updated their profile
8 hours ago
⚡JFarrow⌁ posted a discussion
For years, I have been trying to figure out the best way to embed my Community into other…
19 hours ago
Rosas † Negras replied to Suzie Nielsen's discussion
Double billing/ Ning landing page builder and more!
"like an enthusiast holds an old car"
20 hours ago
Rosas † Negras replied to Suzie Nielsen's discussion
Double billing/ Ning landing page builder and more!
"how much money do you want for your 2.0?I would like to keep it as Ning's story"
20 hours ago
Suzie Nielsen replied to Rosas † Negras's discussion
Ning Builder-impossible to work on and it doesn't work aspect answer from ning thanks
"Ahhhh.... $250.00 ? why did I have to pay $500.00 -- I already had a tech to do all other set up- I…"
21 hours ago
Suzie Nielsen posted a discussion
Hello Ning, Why am I getting billed for both my 2.0 and the 3.0? I have had no activity on my 2.0…
21 hours ago
Rosas † Negras replied to Rosas † Negras's discussion
Ning Builder-impossible to work on and it doesn't work aspect answer from ning thanks
"⚡JFarrow⌁ right click doesn't work to paste inside"
yesterday
Rosas † Negras replied to Rosas † Negras's discussion
Ning Builder-impossible to work on and it doesn't work aspect answer from ning thanks
"thank you my dear friend"
yesterday
⚡JFarrow⌁ replied to Garfield Archivist's discussion
Ning Billing needs major improvements
"What happened buddy?
 "
yesterday
⚡JFarrow⌁ replied to Rosas † Negras's discussion
Ning Builder-impossible to work on and it doesn't work aspect answer from ning thanks
"Do this... open Notepad ++ 
Copy the entire HTML from the page into your notepad txt file..  Make…"
yesterday
Rosas † Negras replied to Rosas † Negras's discussion
Ning Builder-impossible to work on and it doesn't work aspect answer from ning thanks
"so i have to stop helping for free :) ... happy for you that you make a lot of money ... good job"
yesterday
Rosas † Negras replied to Rosas † Negras's discussion
Ning Builder-impossible to work on and it doesn't work aspect answer from ning thanks
"my problem is not to create .. the problem that it is not even possible to add a link inside"
yesterday
More…

Meanwhile, you can check our social media channels