Current status of the Ning Platform is always available on the Ning Status Blog.

Forum

NC for Hire

Hi all

Here is a simple tip to insert a "You Might Be Interested In ... " (call it whatever you like really) section at the bottom of all blog posts, sort of like we have Related Videos on the video module.

Here's how it looks:


What does it do? It pulls in the middle column modules from the blog page, e.g. Latest Blog Posts, Most Popular Blog Posts etc. In the example above it is pulling in the Latest Featured Blogs from the Featured blog posts page.

How to install it:

  • Add this script to your Custom Code box (also attached as a text file):
<!-- SP You Might Be Interested In -->
<script type="text/javascript">

x$(document).ready(function() {
x$('.xg_widget_profiles_blog_show .xg_module_with_dialog').append('<h2 class="interested">You Might Be Interested In ... </h2><div id="SPmoreblogs"></div>');
x$('.xg_widget_profiles_blog_show .xg_module_with_dialog #SPmoreblogs').load('/profiles/blog/list?promoted=1 .xg_widget_profiles_blog_list .xg_column.xg_span-4.xg_last .xg_module:contains("Latest Featured Blog Posts")');
});
</script>


The script looks for modules with certain headings on certain pages, so you can change the highlighted items to suit your needs.

  1. If you want the 'You Might Be Interested In ... ' to say something else then change the orange You Might Be Interested In ...
  2. If you want to load a module from the All Blogs page (rather than the Featured Blogs Page as I am using) then change /profiles/blog/list?promoted=1 to /profiles/blog/list
  3. If you want to load a box other than Latest Featured Blog Posts change it to whatever you want, e.g. Most Popular Blog Posts

 

  • Add this CSS to your Advanced CSS section in Design Studio, tweaking the bits that you need to

/*You might be interested font*/
.interested{

font-family:georgia!important;
font-style:italic!important;
font-size:24px;
color:#a10227!important;
margin-left:10px;
}

/*List items*/
#SPmoreblogs li {

background: #F9F9F9;
border: 1px solid #E4E4E4;
display: block;
float: left;
margin-right: 3px;
min-height: 58px;
padding: 5px;
width: 168px;
border-radius:3px;
-moz-border-radius:3px;
-webkit-border-radius:3px;
}

/*Removes border from module*/
#SPmoreblogs .xg_module{
margin-top:10px;
border:none;
}

/*Removes module header*/
#SPmoreblogs .xg_module_head{
display:none;
}

I hope this is of use. YOu can check out a live demo here.
Enjoy
SP

ps. this is for blogs only for now. Not had time to do the forum. Might get round to it at some point if no one else hacks it in the meantime.

You need to be a member of Ning Creators Network to add comments!

Join Ning Creators Network

Replies

  • NC for Hire

    Another neat and clean tip. Thanks for sharing it SP.

  • Awesome Sp! thanks for sharing!! is it possible to use this trick on photos SP?

    • NC for Hire

      possibly, I might get round to it at some point, but not at the moment.

      SP

      • Ok i will try if i can get this right, please let me know if you get it right on photos :) thanks SP!

        • This reply was deleted.
          • NC for Hire

            if no one comes up with a hack then pm me next week :-)

        • NC for Hire
          Not tried to be honest. Might eventually ;-)
  • WONDERFUL!!

    Many thanks,

    Jords

  • This reply was deleted.
This reply was deleted.

Search the Creators Network

Latest Activity

Robert Spencer replied to Brandon Owens's discussion 3 essential back-end changes that Ning could make to increase Everyone's traffic
"...maybe minutes, sometimes seconds.."
1 hour ago
Ofelia B.G. replied to Ofelia B.G.'s discussion Error 500
"I never had that problem before untill now, but yeah i see there is some issues in the server of 2.…"
9 hours ago
ONE HAPPY FAMILY replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"http://zbijadek.ning.com my web no works what is problem I see:
500: Unexpected Error
Please try re…"
10 hours ago
George H. Compton IV replied to Saurabh's discussion link for facebook sign up
"Hello Saurabh. :-) Here's the link you're using but shortened. I'm not quite sure if that's what yo…"
10 hours ago
TJ @ jQueryHelp replied to Chris Pileggi's discussion Counting Likes and Comments with PHP? (Ning 2.0)
"That's pretty much most of what I've done all these years - interface Ning sites with external serv…"
10 hours ago
George H. Compton IV replied to Mary Jane Peterson's discussion Activity Box
"Hi Mary, all fixed... You had it set to only show on profiles."
11 hours ago
George H. Compton IV replied to George H. Compton IV's discussion A tip all Ning3 networks can benefit from. "fluid YouTube & Vimeo Videos" N2 & N3
"I'm sorry Shelly!!!   I've changed the wording in this discussion to make it clearer on what this c…"
11 hours ago
Andrzej Góralczyk replied to Ofelia B.G.'s discussion Error 500
"My network also suffers this error, repeating every few days.Business Dialog, Poland."
11 hours ago
Gina Krupsky replied to Ofelia B.G.'s discussion Error 500
"I have it too. Ugh."
12 hours ago
Vincent Granville replied to Ofelia B.G.'s discussion Error 500
"Yes, two of my Ning networks (one with 40,000 members) experience this for hours pretty much twice…"
12 hours ago
John Bizley replied to Mary Jane Peterson's discussion Activity Box
"You need to add to your homepage, go to your site & pages then click on your homepage in the list,…"
13 hours ago
Kos replied to Ofelia B.G.'s discussion Error 500
"Yes, intermittently on 2.0 (not on 3.0)  Ning needs to fix that server........."
13 hours ago
Shelly Begarowicz replied to George H. Compton IV's discussion A tip all Ning3 networks can benefit from. "fluid YouTube & Vimeo Videos" N2 & N3
"For all us CODE CHALLENGED individuals.  This code makes the videos resize themselves according to…"
14 hours ago
o.d. brooks replied to Ofelia B.G.'s discussion Error 500
"The Error 500 message has been happening on and off for the past month or two on the Ning 2 network…"
14 hours ago
soaringeagle replied to Brandon Owens's discussion 3 essential back-end changes that Ning could make to increase Everyone's traffic
"haha yea true and jamroom guys are just absolutely amazing and give u absolutely everthing u ask fo…"
15 hours ago
Strumelia replied to Brandon Owens's discussion 3 essential back-end changes that Ning could make to increase Everyone's traffic
"This thread with suggestions is almost three years old now.  You guys keep on dreamin' that happy d…"
15 hours ago
soaringeagle replied to Brandon Owens's discussion 3 essential back-end changes that Ning could make to increase Everyone's traffic
"you know i8t took me a year to get them to fix the meta description tags so it didnrt  inckude the…"
17 hours ago
soaringeagle replied to Brandon Owens's discussion 3 essential back-end changes that Ning could make to increase Everyone's traffic
"u know nings never going to bother
im moving to jamroom (wich is freaking awesome)
they already hav…"
17 hours ago
George H. Compton IV replied to George H. Compton IV's discussion A tip all Ning3 networks can benefit from. "fluid YouTube & Vimeo Videos" N2 & N3
"Thank you Fire-Tech :-)"
17 hours ago
George H. Compton IV replied to George H. Compton IV's discussion A Christmas gift for all Christian/Religious networks, A Dramatized audio Bible!!!
"Thank you Jim, blessings.."
17 hours ago
More…