Sharing is Caring: Remove the post body from the blog post list, remove the RSVP box.

Here are a couple of JS hacks that I just put together for my network. I have very little experience with javascript, but the ever-helpful TJ from http://jqueryhelp.ning.com/ got me started with a bunch of JS snippets to alter the appearance of my network, and I used firebug to play around after that. So, if these are in any way helpful to you...here you go! :-)

1. On the blog list page, hide the images and/or first few lines of each post so just the title displays (see example here: http://vfxg.org/profiles/blog/list)

<script type="text/javascript">

// Remove post body including date and comment info from Blog List page made with Design Studio:
if (x$("div.xg_widget_profiles_blog_list").length > 0) {
x$('div.xg_module_body').find('div.postbody').remove();
x$('div.xg_module_body').find('p.small').remove();
}

</script>

2. Hide the RSVP box on the events page (see example here: http://vfxg.org/events/la-film-fest)

</script>

<script type="text/javascript">
// Remove RSVP box on Events page made with Design Studio:
if (x$("div.xg_widget_events_event_show").length > 0) {
x$('div.xg_span-14').find('div.xg_column.xg_span-4.xg_last').remove();
}
</script>

PLEASE NOTE: I have removed the middle column on the Events page of my network as well, and expanded the width of the left-hand column using the code below (courtesy of TJ from http://jqueryhelp.ning.com/)

<script type="text/javascript">
// Remove middle column on Events page made with Design Studio:
if (x$("div.xg_widget_events_event_show").length > 0) {
x$('div.xg_span-14').find('div.xg_span-4').eq(2).remove();
x$('div.xg_span-14').find('div.xg_span-12').css('width', '650px');
}
</script>

Views: 187

Reply to This

Replies to This Discussion

Thanks so much for sharing! I used the blog list one. Great tip, and great site. How did you manage to hide your blog sidebar though? I'd love to do that for my network!

Steph :)

You're welcome, Stephanie -- and thanks! :-)

Here's the code to hide the middle column on the blog list page. 

<script type="text/javascript">

// Remove middle column on Blog List page made with Design Studio:
if (x$("div.xg_widget_profiles_blog_list").length > 0) {
x$('div.xg_span-14').find('div.xg_span-4').remove();
x$('div.xg_span-14').find('div.xg_span-12').css('width', '650px');
}

</script>

Thank you :)

Shoot! It looks like adding the "RSVP-remove" code also hides the "options" button at the top of each event page. That's not cool. Be forewarned! I'll look into it. If anyone has an idea for a solution in the meantime, I'm all ears. :)

I copied the script into the blog post and the script was removed automatically when i went to publish.  Am i not posting the code in the right place?  How do i prevent the code from being removed by Ning?

Hi Nishelby :-)

Go to the "my network" page, then click "custom code." Paste the code into that box and click "save."

That should work!

Kristy

RSS

Latest Activity

Denis replied to PeruCool's discussion 'Alternatives to Ning social network'
"Great site man. Thanks for sharing the link. I am working on mine. I hope I will be done by the end…"
3 hours ago
Perrie Halpern replied to PeruCool's discussion 'Alternatives to Ning social network'
"Is there a specific code generator you use? I hope you don't mind me asking."
4 hours ago
Elshara Silverheart replied to Elshara Silverheart's discussion 'Another Feature Request For Ning 3.0'
"This would be a reason to stay on Ning if I knew I could at least have some of what is here."
4 hours ago
soaringeagle replied to James Nored's discussion 'How do I create a taller header?'
"more specific header {height:60px;}"
5 hours ago
soaringeagle replied to James Nored's discussion 'How do I create a taller header?'
"css"
5 hours ago
Larry Matthews replied to James Nored's discussion 'How do I create a taller header?'
"I apologize for my lack of clarity, and not being a mathematician? Where does the {…"
5 hours ago
soaringeagle replied to James Nored's discussion 'How do I create a taller header?'
"remove a 0 off 600? is this math class?"
5 hours ago
Elshara Silverheart replied to Elshara Silverheart's discussion 'Free Site Promotion'
"Me two, since I forget half the links I post."
5 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service