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

TJ @ jQueryHelp replied to Mateo O'Reilly's discussion Resizing profile picture.
"By the way, if anyone else would like to discuss this, I invite you to this…"
12 minutes ago
Anant Garg replied to Mary Jane Peterson's discussion CometChat
"Please create a support ticket and the team will help you out with the login information."
1 hour ago
TJ @ jQueryHelp replied to Mateo O'Reilly's discussion Resizing profile picture.
"Thanks, George!"
2 hours ago
Anam replied to John Bizley's discussion How to get your Network Logo AND Your Network Name Both Showing Up ( Updated )
"Thanks John. You were perfectly right...I had no logo uploaded..i remember now I took it out…"
2 hours ago
Lea Scott replied to Lea Scott's discussion Problem with uploading multiple photos and descrptions at once
"Mine is having trouble with just two!"
3 hours ago
Kos replied to JFarrow's discussion Community Compass: Reimagining Getting Started Guides for Online Communities
"JF The link in the initial email notification didn't work (tried 3x) but I'm glad I…"
4 hours ago
Jeffrey Haskins replied to Baller's discussion Ads Showing up in the middle of blogs
"Are you sure you do not have a virus...these type of viruses used to show up on Facebook pages a…"
5 hours ago
Jeffrey Haskins replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"I will say this...that Ning does communicate well on questions posted on the Facebook page, at…"
5 hours ago
Jeffrey Haskins replied to Lea Scott's discussion Problem with uploading multiple photos and descrptions at once
"I think you can upload up to 25 at once.  If you try to add more then that, it kicks them out"
5 hours ago
marshall blake replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"Friends Only Feed"
6 hours ago
Kos replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"I've set my expectation bar very low, hoping I won't be disappointed.  Secretly,…"
7 hours ago
Fire-Tech replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"+1"
7 hours ago
NC for Hire Garfield Creator replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"All that has been mentioned here already. + Video embed+ Automatic scroll+ Friends Only…"
8 hours ago
Zachary Moonshine replied to Mary Jane Peterson's discussion CometChat
"ok so i signed up for my free trial, it took my paypal info and sent me a confirmation email and…"
8 hours ago
NC for Hire SweetPotato replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"Yeah, I know :-)"
9 hours ago
Fire-Tech replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"I have a list of things I'd like to see, but honestly just hope it's a quality release…"
9 hours ago
Matt replied to Tim's discussion Paid Groups Not Updating
"Ning feedback... "this issue appears to be coming from Paypals end. Our team is doing what…"
9 hours ago
Thiago Santos de Moraes replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"I want the same resource that we have in the 2.0 Ning labs by which I link updates in my Scooop.it…"
10 hours ago
John Bizley replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"I to am so looking forward to this. As SP said but I would like to see the feed grow automatically…"
10 hours ago
John Bizley replied to Jords's discussion What Are Your Expectations For The New Latest Activity Feed?
"SP you can get those avatars to show up if they don't add that for the avatars in the skinny…"
10 hours ago