Instead of having a page of blogs from every user with recent ones being on top, how can I link to a page of links to every users blogs?
Sort of like this:

main page - click on - Blogs ---> list of users' main blog page ----> then links to their corresponding blogs

Thanks!

Comments

LateNightDesigner’s picture

I was looking for a way also and I am just going to try using Taxonomy
Browser. Hope my little idea helps you also.

//---------------------------------------
Latenightdesigners.com - Giving IMD a Fighting Chance

poisonpill’s picture

do you have an example of what you got? Thanks.

LateNightDesigner’s picture

Yeah, Taxonomy Browser didnt work. I guess you could just write a little code snippet...

Something like this I found in a search:

<?php
$result = db_query("SELECT u.uid, u.name, COUNT(0) AS num FROM {node} n LEFT JOIN {users} u ON u.uid = n.uid WHERE n.type = 'blog' GROUP BY u.uid, u.name ORDER BY u.name ASC");
while ($blog = db_fetch_object($result)) {
     $output .= '<li />'.l($blog->name. ' ('.$blog->num.')', 'blog/'.$blog->uid);
}
return '<ul>'.$output.'</ul>';
?> 

//---------------------------------------
Latenightdesigners.com - Giving IMD a Fighting Chance

poisonpill’s picture

I put that in a block and it shows up exactly what I'd want. However how would I make a link on top to link to a page with that content?

sepeck’s picture

Create a page with php type content.
paste in code.
Add a link to your menu to that page node.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

poisonpill’s picture

hmmm, I tried that and the link becomes myhost.com/node/13. However other authenticated users get an "Access denied". (I have only authenticated users can view content tho)

Also the page doesn't look like a static page ought to, I would like to hide the "by user at Mar 9 2006 etc" info at the bottom.

Thanks.

sepeck’s picture

http://beta.blkmtn.org/index.php?q=node/25
check your access control.

Choose a node type you arn't using, (story?) and turn off 'Display post information (?q=admin/themes/settings) for that content type

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

poisonpill’s picture

thanks!

celticess’s picture

or maybe it was menu on the fly. You have to make categories. Then set where they sit in the nav. It's been awhile since I had to fiddle with that so unfortunately I can't tell you off hand. The index page module also might work.

LateNightDesigner’s picture

Blog's don't count in the standard taxonomy though. Menu on the fly might work... I liked the use of the custom code though.

//---------------------------------------
Latenightdesigners.com - Giving IMD a Fighting Chance

poisonpill’s picture

Is there a way to show this userlist of blogs and have the words "NEW" display next to it if the blog is newly posted?

Or any method to quickly show someone where the new content is?

LateNightDesigner’s picture

If you enable blogs for your users you can use the Recent Blogs block included with the blog module.

Find it in admin/block scroll down and locate the "Recent blog posts" block. You can also use the code for this:
http://drupal.org/node/35736

//---------------------------------------
Latenightdesigners.com- Giving IMD a Fighting Chance