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 Fire-Tech's discussion 3.0 Tip: Saving Your Newsletters & Other Broadcast Messages While Keeping Them White Label
"Very nice tip; thanks FT!"
5 hours ago
TJ @ jQueryHelp replied to Dixie Redmond's discussion Ning 3 - Saving photos?
"Hi Dixie,
Could you provide a link to a photo in one of your groups that I can check out?  I may be…"
8 hours ago
ceri shaw replied to Ning's discussion Update to Product Roadmap and Communication Changes
"Can't beat a bit of philosophy imho :)
I forget who it was that opined that positivism entails pass…"
8 hours ago
CocteauBoy replied to Ning's discussion Update to Product Roadmap and Communication Changes
"STEVE WROTE: "....i find that true positive thinking is accepting the negative and dealing with it…"
11 hours ago
JFarrow is now a member of Creators Dashboard
13 hours ago
JFarrow replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"No problem... i hope you get it sorted out.  Garfield is a whiz at the archiver.."
13 hours ago
steve replied to Ning's discussion Update to Product Roadmap and Communication Changes
"Being into this sort of thing myself, i find that true positive thinking is accepting the negative…"
13 hours ago
Strumelia replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"Thanks Garfield!
I just heard from Ning Support on my ticket an hour ago, and they re going to make…"
15 hours ago
Garfield Creator replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"Sorry to hear Strumelia. If it's still not working I may have a workaround solution for backing the…"
15 hours ago
Strumelia replied to Ning's discussion Update to Product Roadmap and Communication Changes
"Everyone has their own approach, including Ning and Glam.  I tend to take a simpler approach:  if I…"
17 hours ago
CocteauBoy replied to Ning's discussion Update to Product Roadmap and Communication Changes
"I like this suggestion, but there's a fine line between "positive thinking" and delusion. At this p…"
18 hours ago
Ning via Facebook

Why Ambiverts Make Great Community Managers http://ow.ly/AxrAv

Fire-Tech replied to Tyler Durbin's discussion 2.0 Sliders instructions?
"Yup. I have had / made a few in the past. They are always a pain... but their new one is painless.…"
yesterday
Tyler Durbin replied to Tyler Durbin's discussion 2.0 Sliders instructions?
"Thanks Fire, I see they are going to come out with a 2.0 version."
yesterday
Tyler Durbin replied to Tyler Durbin's discussion 2.0 Sliders instructions?
"Thanks Kos, I will look some more. "
yesterday
Tyler Durbin replied to Katie McKay's discussion I love my new slider!
"Definitely let us know!"
yesterday
Strumelia replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"I will try that next time- have to wait another 24 hrs now...   thank you!"
yesterday
JFarrow replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"i believe i set it to allow read/write permissions as it was only set to read"
yesterday
Strumelia replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"JF-  thank you , I will try this next time then!   Can you please tell me what permissions/properti…"
yesterday
JFarrow replied to Strumelia's discussion Particular issue with Ning Archiver: archiver can't access its own .json files?
"I recieved that same error the other day.  I then logged out of archiver, reset the permissions/pro…"
yesterday
More…