Boards

Posted by Zeno on Sat 27 Nov 2004 11:44 PM — 6 posts, 15,009 views.

USA #0
Does anyone know if the board system was finished? In the middle of making a board for a certain guild, I discover it does not seem to work fully.

Quote:
Filename: combatant.brd OVnum: 1008 Read: 1 Post: 1 Remove: 101
Maxpost: 500 Type: 0
Posts: 1
Read_group: guild of combatants
Post_group: guild of combatants
Extra_readers:
Extra_removers:
Post Message: Default Message
OPost Message: Default Message
ORead Message: Default Message
ORemove Message: Default Message
OTake Message: Default Message
OList Message: Default Message
OCopy Message: Default Message


Zofar is level 20, and not in that guild.

Quote:
Zofar glances over the notes.
Zofar reads a note.
Zofar removes a note.


Only Immortals should be able to remove notes. Only those in the guild should be able to view a note.

Or am I doing something wrong?
Smaug 1.4 FUSS
Amended on Sat 27 Nov 2004 11:55 PM by Zeno
USA #1
I think you can remove your own notes. I have vague memories of people being able to remove notes that were addressed to them, also.
USA #2
Was written by Zeno, to all. Turns out I was doing it wrong. Took a look at this, and realized why.
bool can_post( CHAR_DATA *ch, BOARD_DATA *board )
{
  /* If your trust is high enough, you can post. */
  if ( get_trust( ch ) >= board->min_post_level )
    return TRUE;

  /* Your trust wasn't high enough, so check if a post_group has been set up. */
  if ( board->post_group[0] != '\0' )
  {
    if ( ch->pcdata->clan && !str_cmp( ch->pcdata->clan->name, board->post_group ) )
      return TRUE;
    if ( ch->pcdata->council && !str_cmp( ch->pcdata->council->name, board->post_group ) )
      return TRUE;
  }
  return FALSE;
}


So the level has to be higher, pretty much in the Imm levels.
USA #3
Wait, that's can_post, is there another one for can_remove?
USA #4
I didn't see one, which strikes me as odd. I can't remove them if not in the guild though.


note remove 1
You can't make any sense of what's posted here, let alone remove anything!
USA #5
That's odd. I guess that if you can_post, then you also can_remove. :-)