bBBOARDv2 About UsOrderingTerms/PrivacyManualsSupportFeaturesDemo
Client Login
Welcome to bbBOARD!

NAME

Backend/Func/AForum.pm - Display a forum


DESCRIPTION

This function returns the HTML to display a single forum, as seen on the main board page. Note that you should print a beginning TABLE tag before printing from this function, and print a closing TABLE tag afterwards.


USAGE

    ($lastcat, $html) = $self->AForum($fid, $forum_object, $lastcat_placehold [, $folded_hashref [, $active_num [, $ignores_hashref [, $markreed_bool [, $showactive_bool ]]]]] );

Example

    my $fid = $self->_param('fid');
    my $forums = $self->{db}->listforums();
    my $lastcat;
    ($lastcat, my $html) = $self->AForum($fid, $forums, $lastcat);
    $ret .= $html;

The $lastcat is needed to track forum category spacing. Here's another example displaying several forums in a loop:

    my $forums = $self->{db}->listforums();
    my $lastcat;
    foreach (1..5) {
        ($lastcat, my $html) = $self->AForum($_, $forums, $lastcat);
        $ret .= $html;
    }
 
bbBOARD
© Copyright 2003-2004 bbNetwork Ltd