Posted by joessoft on December 23, 2006 at 7:02pm
Jump to:
| Project: | Blog Client |
| Version: | master |
| Component: | Code |
| Category: | support request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hello,
I have tried several methods and have fallen flat on my face... Because Drupal has so many places to show recent "posts", comments, most of all, I wanted this to just print out the Bloggers Name like we have in the breadcrumb link.. but just the
bloggers handle. (ie: eddie the locks Blog - vs - Home » RedNeck Blogs » eddie the locks blog )
function blog_block($op = 'list', $delta = 0) {
global $user;
if ($op == 'list') {
$block[0]['info'] = t('RedNeck Blogers');
return $block;
}
else if ($op == 'view') {
if (user_access('access content')) {
$block['content'] = node_title_list(db_query_range(db_rewrite_sql("SELECT n.nid, n.title, n.created FROM {node} n WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC"), 0, 50));
$block['content'] .= '<div class="more-link">'. l(t('More: List All RedNeck Blogs'), 'blog', array('title' => t('List All RedNeck Blogs.'))) .'</div>';
$block['subject'] = t('RedNeck Blogers');
}
return $block;
}
}Thanks for any help on this
joessoft@yahoo.com
Comments
#1
Hm, maybe this request is filed on the wrong module?
Does not seem to have anything to do with thsi module, but correcting the title and version anyway.
I will file a request for a drupal v5 upgrade as a seprate issue.
joessoft - can you confirm that this has to do with the Blog Client module (this module is for posting to other blogs), and if this is still an "issue"? You can post a follow-up and simply set the status to closed if it is not relevant anymore. Thanks.