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!

        • Hey Mat, it would be really really cool to have this for friends! You may be interested in...and then it shows 3-4 members on random! This I would actually pay for if someone could tweak this

          • 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.

Search the Creators Network

Latest Activity

Ken Rich replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
"Thanks for the tip. The programmer is writing some sort of "check" into his tool so that it rejects…"
31 minutes ago
United Spirits replied to Martin de Goede's discussion Customizing the standard layout for profile pages
"I have a friend who owns a Ning 2.0 layout. I asked him if it would be possible to have a fixed def…"
46 minutes ago
Neil Norton replied to Neil Norton's discussion I miss the Twitter Share
"Wait, it is on this network, so I must have missed its installation. Now I see it but not working o…"
1 hour ago
United Spirits replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
"What you could try is redownload everything the following day and then save everything to the same…"
1 hour ago
Jamie Baker (Vision) replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"sorry to hear that's awful."
2 hours ago
Neil Norton replied to Bernard Lama's discussion Killer Tip : How to add seach bar to your ning 3.0 network ?
"Muchas Gracias, I like it!"
2 hours ago
Alison Frane replied to Martin de Goede's discussion Customizing the standard layout for profile pages
"Anyone?  Anyone?"
2 hours ago
Neil Norton replied to James Nored's discussion Why is the HTML box so incredibly small!
"It would be nice if the HTML box was Wysiwig design editor. Save time from designing in one program…"
3 hours ago
John Bizley replied to Niche Networkers's discussion Hide header but show navigation
"It's because you are hiding the site header which includes the Navbar. Also in the other part you a…"
3 hours ago
James Higginson replied to Gerry Regan's discussion Alternatives to Apps.IO's Listings App
"That's a shame, I had about 5000 member pins on my io Map, don't suppose there any way to grab that…"
13 hours ago
SweetPotato replied to Gerry Regan's discussion Alternatives to Apps.IO's Listings App
13 hours ago
James Higginson replied to Gerry Regan's discussion Alternatives to Apps.IO's Listings App
"Is apps.io still in business? No reply to my support requests and the map broke, how do I contact t…"
14 hours ago
Cautious replied to PeruCool's discussion Alternatives to Ning social network
"Way to go Jen!  I'm at Spruz and you know me with questions, lol. 
Unfortunately, some owners aren'…"
19 hours ago
Garfield Creator replied to PeruCool's discussion Alternatives to Ning social network
"Thanks Jen"
20 hours ago
Ken Rich replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
"Thank-you Steve. Ning support actually responded today to a "new" support ticket that had been sit…"
20 hours ago
steve replied to Ken Rich's discussion Ning Lied To Us - Your Content is Not Safe
"I see these new topics are still not showing in the feed unless somebody replies, so i will just do…"
20 hours ago
Alyce Keegan replied to Alyce Keegan's discussion Trying to make my sidebar padding smaller
"Hey Kos! Thanks for your reply. I'm using one of the older themes so I don't have this option. I sh…"
21 hours ago
Lora replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"My 3.0 has just about cut my business in half.
DO NOT MAKE THE SAME MISTAKE I DID and migrate to 3.…"
23 hours ago
Robert Druse replied to PeruCool's discussion Alternatives to Ning social network
"I will stand corrected if anything I say is not correct..."
yesterday
Jen replied to PeruCool's discussion Alternatives to Ning social network
"Unless they sold their company, Spruz is located in Tennessee.
And seriously, I'm going to have to…"
yesterday
More…