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

Kos replied to Bryce Rubio's discussion A Follow-Up Message from our CEO
"Bryce chat, please, please, I'm grovelling, get chat released.........."
13 hours ago
David replied to David's discussion When are cancelled sites deleted?
"Thanks for the update, it's good to know it will eventually vanish."
13 hours ago
Kevin Acosta replied to Bryce Rubio's discussion A Follow-Up Message from our CEO
"Thank you for this venue to voice our issues and concerns as you plan and strategize upcoming enhan…"
15 hours ago
Kos replied to Hugh's discussion Latest on Ning and iframes?
"Absolutely they should.  File a ticket and get them on it.  Must be a new glitch"
16 hours ago
Kyryl_Ning_Support replied to Robert Sheen's discussion why is my Ning site unavailable?
"Hi there,
We have replied to you on the ticket that you have sent.
Best regards,
Ning Creators"
16 hours ago
Kos replied to Robert Sheen's discussion why is my Ning site unavailable?
"Sounds like they've deactivated you for some reason.  Contact them here.  Hope they get you up soon…"
16 hours ago
Carrie Robinson, Anthea Variend and Maureen Jansen joined Ning Creators Network
16 hours ago
Paul Corona replied to Robert Sheen's discussion why is my Ning site unavailable?
"we are having an issue with our site as well thought we're just getting and Unavailable message....…"
18 hours ago
Bizz ( John ) replied to Bizz ( John )'s discussion How To Add A Popular Blogs Module ( ver1 )
"Thanks Kos
I will add one for forums and articles as well as it works virtually the same."
yesterday
Kos replied to Bizz ( John )'s discussion How To Add A Popular Blogs Module ( ver1 )
"I think there are a lot of people who will love this tip.  Displaying the most popular 'anything' i…"
yesterday
Kos replied to Bizz ( John )'s discussion Enhance Your Social Channels Player ( All code I have used on my site )
"I wonder if Ning is taking notes.  *lol*   Thanks John!"
yesterday
Kyryl_Ning_Support replied to David's discussion When are cancelled sites deleted?
"Hi David,
Your network right now is on pending cancellation. The page that you can see at the momen…"
yesterday
Kos replied to Diane Chojnowski's discussion Need help using CSS to change group owner
"That's fantastic!  That's the nice thing a/b having Creators here.  Sometimes it helps to just brai…"
yesterday
Thisisbully replied to Bizz ( John )'s discussion Why I Have Been Adding A Lot Of Photos To My Site
"Nice finally"
yesterday
Diane Chojnowski replied to Diane Chojnowski's discussion Need help using CSS to change group owner
"Thanks Jen for your brainstorming. We were able to fix the problem with a work-around.
We had the o…"
yesterday
Tommy Gene and Kirsten Izatt joined Ning Creators Network
yesterday
Porter Davis is now a member of Tips and advice.
Sunday
Porter Davis is now a member of Ning Creators Network
Sunday
Kate Ning Support replied to complience's discussion Ning Woahs.. My events have vanished
"Hi!We are sorry for delayed reply!This issue is still being investigated,our tech team is fighting…"
Sunday
complience replied to complience's discussion Ning Woahs.. My events have vanished
"I raised a support ticket with Ning about this, got precisely nowhere so recreated my events.
Howev…"
Sunday
More…