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 Crystal Walters's discussion Member list bug
"and do not forget to do a "hard refresh" when viewing changes.  It bypasses what has been stored vi…"
8 minutes ago
Strumelia replied to Luke Jones's discussion Hopefully we'll have a music player and other stuff soon :)
"I'm just about to add CometChat to my JamRoom network.  "
1 hour ago
Calico replied to Thiago Santos de Moraes's discussion Exemplos de comunidades inspiradoras usando o Ning 3.0 in Criadores Brasileiros - Brazilian Creators
"Perfect !!!!!
Consegui colocar o SKYSA mas eles cobram o Chat e a página fica um pouco pesada. Esto…"
2 hours ago
Calico replied to Thiago Santos de Moraes's discussion Exemplos de comunidades inspiradoras usando o Ning 3.0 in Criadores Brasileiros - Brazilian Creators
"OK"
2 hours ago
Luke Jones replied to Luke Jones's discussion Just a quick question
"I'm glad a Member to :)  Ah right :/ ,  Awesome, thank you :) aha ah right :)  Thank you :) best w…"
3 hours ago
Luke Jones replied to Luke Jones's discussion Another question :P
"Ye :) It's just all messy at the moment aha, It reminds me of myspace :P "
4 hours ago
Luke Jones replied to Luke Jones's discussion Another question :P
"Hm good point :) I hadn't thought about it aha"
4 hours ago
Luke Jones replied to Luke Jones's discussion please help ?
"Ah right :/ , ye I agree with you, it makes no sense at all, there's quite a few simple features th…"
4 hours ago
Luke Jones replied to George H. Compton IV's discussion Tip any network.. Graphical loader interface. Hide your ugly bounce rate.
"Ah right aha :) fair enough lolMy sister's boyfriend is called Matthew Compton see :P "
4 hours ago
ANGE.L LUAR left a comment for George H. Compton IV
"Acabei fechando  rede e abri outra espero que esta agora não de nada erado conheça participe..
http…"
4 hours ago
ANGE.L LUAR left a comment for ANGE.L LUAR
"Amigo Tiago  pus este 
https://www.spot.im/spots/new#create-top  
que vc me indicou estou fazendo t…"
4 hours ago
John Bizley replied to Crystal Walters's discussion Member list bug
"Hi Crystal, do you have a link to your site as this may help to see what the issue is. One thing th…"
4 hours ago
Thiago Santos de Moraes replied to Scott Orn's discussion Urgent - Ben's Friends Lupus Network is Down
"Scott, Ning answered you?"
7 hours ago
Thiago Santos de Moraes replied to marshall blake's discussion Ning Announcements
"Read this topic."
7 hours ago
Thiago Santos de Moraes replied to Thiago Santos de Moraes's discussion Exemplos de comunidades inspiradoras usando o Ning 3.0 in Criadores Brasileiros - Brazilian Creators
"Calico, eu coloquei o site numa caixa de HTML que já tem outras coisas na minha 3.0 e deu certo. Vo…"
8 hours ago
Thiago Santos de Moraes replied to Thiago Santos de Moraes's discussion Exemplos de comunidades inspiradoras usando o Ning 3.0 in Criadores Brasileiros - Brazilian Creators
"Calico, veja o que Zachary falou no final do tópico que indiquei sobre onde colocar o código na 3.0…"
11 hours ago
Calico replied to marshall blake's discussion Events For 3.0 Networks
"Robin B.
Thanks a lot !!!!!! Ill try both app !!! Youl be welcome to visit may page at http://reape…"
17 hours ago
Calico replied to Thiago Santos de Moraes's discussion Exemplos de comunidades inspiradoras usando o Ning 3.0 in Criadores Brasileiros - Brazilian Creators
"Prezado Thiago, desculpas por "alugá-lo" desta foma. Consegui entrar no Spot.IM e preparar meu chat…"
17 hours ago
JFarrow replied to marshall blake's discussion Ning Announcements
"Join the club. I have blog posts on creators which have been waiting for approval for a week"
19 hours ago
George H. Compton IV replied to George H. Compton IV's discussion Tip any network.. Graphical loader interface. Hide your ugly bounce rate.
"I do have a cousin named Matthew Compton but I don't know if he has ginger hair. LOL"
19 hours ago
More…