>> GreenByte.info By Nick Tong (quiksilv) | Supported by: TalkWebSolutions.co.uk

Adding a 'Blogs' link to Ning.com

One of the nice hacks with ning.com is adding a little bit of javascript into the 'tracking code' feature in your manager/admin area.

Add this code:

<script type="text/javascript">
var blogTab= document.createElement('li')
blogTab.innerHTML = '<a href="/profiles/blog/list">Blogs</a>'
var referencetab = document.getElementById('xg_tab_members')
referencetab.parentNode.insertBefore(blogTab,referencetab)
</script>

The problem I've found with this is that it shows ALL blog posts and on a busy site it's a very long page. One thing you can do to limit this to one month is to add this string:

blog/list?month=12&amp;year=2007

The problem is that this means updating the tab each month which isn't great, and that one the first few days of the month it's not very busy. Oh well, I'm sure they'll add the tab soon enough.

Reference should be made to the ning network creators


 
Comments
nick tong's Gravatar Another way to do this is if you have access to your source control add:
<li id="xg_tab_blogs"><a href='/profiles/blog/list'>Blogs</a></li>

to the /widgets/index/templates/embed/header.php file
(near where it says div="xg_navigation")
# Posted By nick tong | 01/12/07 19:03 | Report abusive comment
BlogCFC was created by Raymond Camden. This blog is running version 5.5.1.