Closed (fixed)
Project:
Buddylist
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2007 at 21:18 UTC
Updated:
9 Mar 2007 at 17:17 UTC
With 4.7 version, user clicks more link on buddies recent post (when there are more than 7). The new page, instead of showing all recent buddy postings, shows "You are not authorized" page.
I haven't been able to solve this. It might be in the following code:
// check if a "more" link should generated by seeing if there are more buddies than the specified $upperlimit
$result = db_query(db_rewrite_sql('SELECT COUNT(n.nid) AS node_count FROM {buddylist} b LEFT JOIN {node} n ON n.uid=b.buddy LEFT JOIN {users} u ON n.uid = u.uid WHERE n.status = 1 AND b.uid=%d'), $user->uid);
$countresult = db_fetch_object($result);
if (variable_get('buddylist_posts_block', 7) < $countresult->node_count) {
$block['content'] .= '<div class="more-link">'. l(t('more'), 'buddylist/'. $user->uid .'/buddies/recent', array('title' => t('View more.'))) .'</div>';
}
return $block;
Comments
Comment #1
fagoyou need to enable the tracker module and set the access permissions appropriate.
Comment #2
jbhan commentedif you have the views module installed, you can use it to generate a block that has alot more functionality than this one. I would use it instead of the 'buddies recent posts', as with the views/buddylist integration, you can select content types to appear in the block, etc...
j
Comment #3
(not verified) commented