jQueryHelp

Help with jQuery Mods and Hacks for your Ning Network!

Hi all! Is there any way to hide discussions, blogs, groups etc from a members's profile?

I had a problem recently where members were upset that friends could see their blog posts when they visited their profile.

Is there a way to Hide some of these fields?  I saw a similar post from TJ here but it does not seem to be working.  Ultimately, it would be great if Ning were able to make these an option in the privacy settings but for now, I am scratching my head trying to figure this out.

Thanks!

Views: 117

Reply to This

Replies to This Discussion

Hi Tyler,

This works for me here.  Put it in your Custom Code box and see if it works for you.

<script type="text/javascript" language="javascript">

// Remove User Summary Links, by TJ @ jQueryHelp.ning.com

x$('.module_user_summary a:contains("Blog Posts")').parent().remove();

x$('.module_user_summary a:contains("Discussions")').parent().remove();

x$('.module_user_summary a:contains("Events")').parent().remove();

x$('.module_user_summary a:contains("Groups")').parent().remove();

x$('.module_user_summary a:contains("My Likes")').parent().remove();

</script>

I have just the Blog Posts link turned off here, so you can see it working.  I'll take the code out in a few days because I don't want that link removed on my site.

Keep in mind that the links will load and then the jQuery will remove them.  It should happen fast but they may still flash on, then off. 

There may be a pure CSS way to remove these links too.  Might be something like

.module_user_summary .xg_module_body ul.nobullets li:nth-of-type(1) { display: none; }

I tried that here but it didn't work.  That's why I am the jQuery guy and not the CSS guy.

There's more info on :nth-of-type here: http://css-tricks.com/the-difference-between-nth-child-and-nth-of-t...

Best wishes!

"TJ"

'TJ' is the Owner of jQueryHelp.
Please Visit http://YouTubeStars.com - Thanks!

TJ...once again...You Da Man!   That worked perfectly!

Thank you!

You're welcome Tyler, glad that worked for ya!

'TJ' is the Owner of jQueryHelp.
Please Visit http://YouTubeStars.com - Thanks!

Reply to Discussion

RSS

Notifications

Temporarily Offline

Friends of Friends

© 2017   Created by TJ @ jQueryHelp.   Powered by

Badges  |  Report an Issue  |  Terms of Service

EOP
EOP2