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

Rosas † Negras posted a discussion
2 hours ago
Antonio Tarricone replied to Bizz's discussion
Tip: Change + Custom Achievement Badges: UPDATED 15-06-20 WITH CODE + CUSTOM IMAGES
"thank you Bizz
just sent it to you
 "
yesterday
Antonio Tarricone and Bizz are now friends
yesterday
Suzie Nielsen replied to J.Ayvar's discussion
69 Tips for your Ning 3 thanks to John Bizley
"WOW! Thanks, John Bizley and thanks for posting all of these wonderful tips!
 "
yesterday
Ian knight liked Ana Massien's profile
Monday
Garfield Archivist replied to ⚡JFarrow⌁'s discussion
Silly Simple Solutions #5: Inject Youtube Subscribe Button under Videos in Ning
"JFarrow, you're the best. Here is a pic to honor your generosity. I simply used div.left-panel on…"
Saturday
Ana Massien updated their profile photo
Saturday
Bizz replied to Bizz's discussion
Tip: Change + Custom Achievement Badges: UPDATED 15-06-20 WITH CODE + CUSTOM IMAGES
"Could you share the code you added so I can take a look, ive sent a friend request in case you…"
Friday
Antonio Tarricone replied to Bizz's discussion
Tip: Change + Custom Achievement Badges: UPDATED 15-06-20 WITH CODE + CUSTOM IMAGES
"yep, tried as per your tip and also double checked that the image was available at the link…"
Friday
Cindy Dean Mccoy replied to Anastasia_Ning_Support's discussion
Members online feature
"Well poo!  Sometimes it does not work.  I get "There are currently no logged-in members." and I…"
Friday
Cindy Dean Mccoy replied to Anastasia_Ning_Support's discussion
Members online feature
"Thank you! Thank you! Thank you!  We really need this feature."
Friday
J.Ayvar posted a discussion
 Some time ago Mr. John Bizley   kindly shared some amazing tips and every time I start a new…
Thursday
More…

Meanwhile, you can check our social media channels