Actually, this tip could be used for adding related posts to Photos (example), Forum Topics (example) or Blog Posts (example).  To be honest, using this method you could probably show related posts and pages for just about any feed on the network you like.

Go to LinkWithin

           put in your email and blog link (yournetwork.com/profiles/blog/list), forum link (/forum)or photo link (/photo)

Generate your code and place it at the bottom of all other codes inside the Custom Code box.

Then add the following undernieth it inside the custom code box

For Related Photos Widget:

<script type="text/javascript">
if (typeof(x$) != 'undefined') {
x$("DIV.imgarea").after('<div class="linkwithin_div" align="center"></div>');
}
else{
}
</script>

For Related Forum Topics:

<script type="text/javascript">
if (typeof(x$) != 'undefined') {
x$("DIV.discussion").after('<div class="linkwithin_div" align="center"></div>');
}
else{
}
</script>

For Related Blog Posts:

<script type="text/javascript">
if (typeof(x$) != 'undefined') {
x$("DIV.xg_module.xg_blog.xg_blog_detail.xg_blog_mypage.xg_module_with_dialog").after('<div class="linkwithin_div" align="center"></div>');
}
else{
}
</script>

Bonus Tip:  Add Style to Your Widget

by styling the widget using CSS (in advanced CSS) you can add background image behind the links like so

DIV.linkwithin_inner {background:url('https://yourimage.png')}

For Creators Who Need Help with their Network, get one-on-one help at the top of my profile

Tags: automatic, blogs, forums, hack, javascript, linkwithin, photos, posts, related, tip, More…trick

Views: 1309

Reply to This

Replies to This Discussion

glad it worked for you

This looks beautiful! I did for my blogs, will slowly start doing it for everything else! Question: Can we put all the codes in one .js file then upload it to our file manager?

Potentially great tool I'm testing it with forum posts linked to forum posts as a starter. It plays nicely mostly except on some occasions when it either appears as a bulleted list or fails to appear at all. On limited testing I think the common denominator seems to be that this happens to posts that include hyperlinked text.

terrific..glad it worked for you

Thanks

Thanks, works for me. would love to add this to photos too.

Hi,

Will trick work on private networks or only networks with public access?

Thanks

hmmm good question Alex..i havent tried it on a private network...give it a whirl and see if it works for you...would like to know myself... thanks!

Hi, this seemed easy enough, and I followed all the steps adding both codes at the bottom of the custom code box and the widget appeared at the bottom of my sites blog posts but no related blogs are actually appearing. I can't figure out what the problem is and it's drinving me crazy. Any suggestions would be great. thanks!

I am so frustrated!  I would LOVE to add this widget to my 2 ning sites, but can't get anything to show up after following all the instructions.  I have no idea what I could be doing wrong.


Any suggestions if nothing shows up?

is your network public or private?

It's public.  http://divergentfans.com.

RSS

Latest Activity

soaringeagle replied to Rafael's discussion 'Multiple Chat rooms for Ning 3.0'
"ideally id k[like the chat to be similar to everything else as in u can have 1 network chat but…"
5 minutes ago
Jelena replied to Michael Goebel's discussion 'Where have the text boxes on the profile pages gone ?!?!'
"We need"
17 minutes ago
Liliana Parra replied to Alex's discussion 'More styling in the Design Studio'
"Any idea why profile photos in Ning 3.0 look all stretch out? It happens for both square and round…"
24 minutes ago

NC for Hire
SweetPotato replied to Michael Goebel's discussion 'Where have the text boxes on the profile pages gone ?!?!'
"It should be a profile page feature. Hopefully Ning reinstate it. Sp"
1 hour ago
Allison Leahy replied to Rafael's discussion 'Multiple Chat rooms for Ning 3.0'
"Thanks for the suggestion, Jordon. I can certainly add Skype video chat integration as a specific…"
1 hour ago
Allison Leahy replied to Rafael's discussion 'Multiple Chat rooms for Ning 3.0'
"Cool. I've never seen one of these in action. Could you share an example of a service the…"
1 hour ago
Kos replied to Michael Goebel's discussion 'Where have the text boxes on the profile pages gone ?!?!'
"TJ @ jquery was working on a hack to add a text box on profile pages in 3.0 however I believe it…"
1 hour ago
Kos replied to Mariana Paiva's discussion 'Analytics not working: How can I set up analytics correctly?'
"Mariana is *does* go in Custom Code (not custom CSS).  Did you also enter your Google code in…"
1 hour ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service