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: 189

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

Strumelia replied to Shannon's discussion 'VOTE - NING 2.0 or NING 3.0'
"Huh??  Can you elaborate on this please?  or point us to where this is stated or shown?"
1 hour ago
Cindy replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
"I coppied all the stuff you posted and I'll check a bit later when the head feels clearer. I…"
4 hours ago
Kos replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
"Sorry for that.  Sometimes they fall between the cracks during the week b/c so many have full…"
4 hours ago
Kos replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
"Yes sometimes we need to step back and let it all sink in as 3.0 is quite different from the 2.0 we…"
4 hours ago
Kos replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
"Phoron since we've gone off topic here, why don't you begin a forum post of questions and…"
4 hours ago
Kos replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
"Do you mean the background image behind your avatar?   Members can upload at the right…"
4 hours ago
Kos replied to Donna Mac's discussion '3.0 Video - can someone explain?'
"idk what else Ning (if any) Ning will be releasing with respect to videos but they way it stands a…"
4 hours ago
Crestini Activi ! replied to Rafael's discussion 'Multiple Chat rooms for Ning 3.0'
"Im loving the idea !!! I was thinking about this idea before, but I thought that if I was going to…"
4 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service