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

fago’s picture

Status: Active » Fixed

you need to enable the tracker module and set the access permissions appropriate.

jbhan’s picture

if 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

Anonymous’s picture

Status: Fixed » Closed (fixed)