If profile module is enabled you have probably some more sub tabs when editing the form.
If a tab different from "account settings" is submitted, the user's usernode guestbook will be deactivated (set to 0).

Comments

marcor’s picture

Assigned: Unassigned » marcor
Status: Active » Reviewed & tested by the community

We need to check if $edit['comment'] is part of the sent form. Will be fixed in next dev version.

/**
 * Implementation of hook_user().
 *
 * Let's have a guestbook section in the user profile.
 */
function usernode_guestbook_user($type, &$edit, &$user, $category = NULL) {
  switch ($type) {
      // .... 
      case 'submit':
        if (isset($edit['comment'])) {
          // Save usernode options and delete values from form array
          // before usernode gets saved
          $node = usernode_get_node($user);
          $node->comment = $edit['comment'];
          node_save($node);
          unset($edit['comment']);
        }
      break;
  }
}
marcor’s picture

Title: A user's questbook will be deactivated if user updates other profile tabs » A user's guestbook will be deactivated if user updates other profile tabs
Status: Reviewed & tested by the community » Fixed

committed into latest dev version.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.