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

Anam replied to Alyce Keegan's discussion Problems reverting to old site theme
"No response so far. I hope others are submitting tickets on this issue as it is platform wide."
10 hours ago
⚡JFarrow⌁ replied to Shelli Poole's discussion Facebook sign-in app gives a clue to Ning 2.1 coming?
"not sure i follow how this is an indicator of Ning 2.1  can you elaborate?  thanks"
16 hours ago
⚡JFarrow⌁ replied to Alyce Keegan's discussion Problems reverting to old site theme
"yes,,, the reversion back to a previous theme is a huge problem.  and there are others. forexample…"
16 hours ago
Fire-Tech replied to Alyce Keegan's discussion Problems reverting to old site theme
"I appreciate it. My biggest concern is reliability. I've heard that mixing up between different plu…"
17 hours ago
Shelli Poole replied to Shelli Poole's discussion Facebook sign-in app gives a clue to Ning 2.1 coming?
"Sighhhh no one cares. I'm secure."
19 hours ago
James Gatlin is now a member of USA NING CREATORS
20 hours ago
Just Asking replied to Alyce Keegan's discussion Problems reverting to old site theme
"I had to get addons from just about every company out there to make it do everything I wanted. and…"
yesterday
Fire-Tech replied to Alyce Keegan's discussion Problems reverting to old site theme
"Yeah, SE with all of the SEAO addons look to be best for me. I can handle the code part.. just hear…"
yesterday
CocteauBoy replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"Which links takes you to that? I don't get that warning for either link. I can only guess that the…"
Wednesday
Jamie Baker replied to Nancy Gruver's discussion Migration from Ning to WordPress
"Hi Nancy,
I've migrated a few sites to Wordpress/Buddypress and strongly advise it. Fortunalty with…"
Wednesday
Peter Denio, James Gatlin and CALIPSO joined Ning Creators Network
Tuesday
Anam replied to Alyce Keegan's discussion Problems reverting to old site theme
"I have been having this very issue for over a week. I put in a ticket, and included many other issu…"
Tuesday
Chazz replied to The Ning Team's discussion Notice of 2016 Storage Limit and Pricing Plan Changes
"I too have to admit that I am a customer who feels abused. Our Network Platform service continues t…"
Tuesday
Kos replied to Alyce Keegan's discussion Problems reverting to old site theme
"Ning definitely needs to 'clear' your back end it seems.  Filing a ticket on a Friday, you won't re…"
Tuesday
Katy Blagg replied to Katy Blagg's discussion Resizing Group Icons
"Thank you to all of you who have helped!!!
Just what I wanted. Thank you so much :)
Is working just…"
Tuesday
Kos replied to Nancy Gruver's discussion Migration from Ning to WordPress
"Alyce yes, Groups and their members migrate over.  Sadly no content does; they're empty but yes, th…"
Tuesday
Just Asking replied to Alyce Keegan's discussion Problems reverting to old site theme
"I think the two biggest contenders for alternatives are Jamroom and SocialEngine PHP, though some h…"
Tuesday
Alyce Keegan replied to Nancy Gruver's discussion Migration from Ning to WordPress
"Hello! Kos are you able to migrate groups? :( I have all of my classes listed as groups on my ning…"
Tuesday
Mandy replied to Nancy Gruver's discussion Migration from Ning to WordPress
"Hi Kos I'm in the same boat; would you mind sending me  PM with the link to check out as well! Than…"
Sunday
⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion Tip: For Those Who Need a Personal Site
"no problem bud... definitely cool... one thing that distinguishes this from the rest is the ability…"
Sunday
More…