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

Ron replied to Jan Homan's discussion How to create a video as a header?
"Hey Jan, ok instead of the part where.. html(
change it to append("
1 hour ago
Andrzej Góralczyk replied to Andrzej Góralczyk's discussion Background image in the header gone
"OK, I filed the ticket, and it has been added to the queue of similar ones. Waiting impatiently ;-)"
2 hours ago
SweetPotato replied to Ron's discussion Reactor2: Responsive Design for Ning 2.0 Networks
"Naturally. :-)"
3 hours ago
Steve C replied to Ron's discussion Reactor2: Responsive Design for Ning 2.0 Networks
"Thanks, SP. I went to the catamaran site he listed in the discussion I first got the old N2 mobile…"
3 hours ago
Philip Parker and Ethan B. joined Ning Creators Network
4 hours ago
SweetPotato replied to Ron's discussion Reactor2: Responsive Design for Ning 2.0 Networks
"Yes. I've done it for a client on a private ning 2.0 site. Fully responsive, mobile menu etc.

Here…"
4 hours ago
Martin Stratton left a comment for Martin Stratton
"Thanks John... but I cannot even add a discussion here on the Creator's site.  For some reason I am…"
4 hours ago
John Bizley left a comment for Martin Stratton
"Hi Martin, the best place to add something like this is by creating a discussion on the creators fo…"
5 hours ago
Martin Stratton left a comment for Martin Stratton
"I can use some help, I am unable to edit pages... when I click to edit, I see code on the page and…"
5 hours ago
Steve C replied to Ron's discussion Reactor2: Responsive Design for Ning 2.0 Networks
"There's a way to make Ning 2 responsive? We're losing a ton of traffic because it isn't, and on Apr…"
5 hours ago
Jan Homan replied to Jan Homan's discussion How to create a video as a header?
"Oo Ron, strange thing happened. My navigation buttons dissapeared. I see just the video in the head…"
6 hours ago
John Bizley replied to Mandy's discussion Add Text Box- Photo Upload Page
"No worries Mandy, to give you an idea of how these can be used take a look at this video for my cla…"
9 hours ago
Mandy replied to Mandy's discussion Add Text Box- Photo Upload Page
"Yup, something to definitely look into...thanks again"
11 hours ago
Mandy replied to Mandy's discussion Add Text Box- Photo Upload Page
"@John Bizley interesting, would have to look into that as an option ;) appreciate the suggestion, t…"
11 hours ago
Ron replied to Ron's discussion Reactor2: Responsive Design for Ning 2.0 Networks
"Thanks SP for the heads up. Yes, I already saw previous posts re: those method.
But this will be so…"
16 hours ago
SweetPotato replied to Urban Pulse Media's discussion RSS Feed Not working
"Is this from your activity feed by any chance?
Those xn/detail links tend to get generated by the a…"
16 hours ago
SweetPotato replied to Ron's discussion Reactor2: Responsive Design for Ning 2.0 Networks
"A few of us have already done this Ron. George Compton even posted his as a free tip. ;-)"
16 hours ago
Thiago Santos de Moraes replied to John Bizley's discussion Updated Videos Page: ( code now available )check it out and if all looks good will post the code etc
"It´s ok now. Thanks, John."
19 hours ago
Jenny Jo Bingham, Creativos Latma and Ana Vaz joined Ning Creators Network
23 hours ago
Ron replied to Urban Pulse Media's discussion RSS Feed Not working
"Hey Urban Pulse Media,
Your best option here is to contact Ning support as this is static content a…"
yesterday
More…