and no way to add buddies (no icon displays on my buddylist page).

I'm using drupal 5.3. It's very strange because I've installed buddylist before and never had it not show up. I'm on the same server as another site that is functioning with buddylist. Is there somewhere in the table I can reset?

Thanks.

Comments

goldengirl’s picture

I too have the same problem. I can't see where you can add buddies anywhere? :(

awong’s picture

You can add buddies from /user/[uid] page. You have to go to the profile page of the user you want to add. In that page it will have a link says " Add 'username' as a buddy" something like that.

yeeloon’s picture

Status: Active » Closed (fixed)

Just in case, copy the code from the readme.txt (that comes with the module). This only adds a '(Add)' beside the username.

4. Optionally add the following theme function to your PHPTemplate's template.php file:

function phptemplate_username($object) {
  global $user;
  /* Use the default theme_username for anonymous users, nodes by this user */
  if ($user->uid == 0 || $object->uid == $user->uid || $object->uid == 0) {
    return theme_username($object);
  }
  if (!user_access('maintain buddy list')) {
  	return theme_username($object);
  }
  
  /* an array, keyed on buddy uids */
  $buddies = buddylist_get_buddies($user->uid);
  /* Find out if this buddy is in the user's buddy list */
  foreach ($buddies as $buddyuid => $buddystructure) {
    if ($buddyuid == $object->uid) {
      $output .= theme_username($object);
      $output .= ' (';
      $output .= theme('remove_from_buddylist_link', $object);
      $output .= ')';
      return $output;
    }
  }
  /* The user is not in the buddylist, give a link to add */
  $output .= theme_username($object);
  $output .= ' (';
  $output .= theme('add_to_buddylist_link', $object);
  $output .= ')';
  return $output;
}