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: 1301

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

Gary Lefko replied to Allison Leahy's discussion 'General feedback'
"I'm on the $24.95/plan with 800+ members--moving to Ning 3.0 what is cost of site at 1,001…"
6 minutes ago
soaringeagle replied to soaringeagle's discussion 'ning/glam ads in 3.0 suggestions/concerns'
"since it has 1st look ..without a min bid noones going to use it unless tyhey had been banned from…"
20 minutes ago
soaringeagle replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"wow although i would have fixed a few of my high priority bugs before doing this im pretty…"
29 minutes ago
soaringeagle replied to soaringeagle's discussion '3.0 priority fix list'
"thnx really appreciate it from an seo perspective some are criticly important (h1 tags being unique…"
34 minutes ago
soaringeagle replied to soaringeagle's discussion '3.0 priority fix list'
"get rid of wysiwyg? are u kidding? u realize most networks would fail instantly the momment you…"
37 minutes ago
Patrick Renald JOSSET replied to kid k's discussion 'Poster ici vos adresses de reseaux NING !' in the group Ning French Networks
"http://i-deal.ning.com/ bonjour ;) j'ai créé cette plateforme de partage…"
41 minutes ago
Patrick Renald JOSSET commented on kid k's group 'Ning French Networks'
"Bonjour à tous et merci de m'accueillir ;) "
45 minutes ago
Profile IconPatrick Renald JOSSET and DAvid Cordina joined kid k's group
Thumbnail

Ning French Networks

A group for french network creators!See More
47 minutes ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service