Message Index with Board Picture YaBB2 1.0 This mod enables the display of the default board-picture at the message index page Installation --------------------------- - Mod your files (MessageIndex.pl, ModList.pl) and upload in ASCII - Add the tag "" wherever you want in the template file "MessageIndex.template" For example to show the picture left of the board description, search in "Templates/default/MessageIndex.template" for the string "" and change your template according the following example: Compatability ---------------- YaBB2 Version History ------------------ ver 1.0 - Initial release Manfred http://www.TR1.de Sources/MessageIndex.pl my $messagecount = ${$uid.$currentboard}{'messagecount'}; ### Start Message Index with Board Picture mod my $bdpic = ${$uid.$currentboard}{'pic'}; ### End Message Index with Board Picture Mod if ($template_mods) { $template_mods = qq~
$template_mods~; }
### Start Message Index with Board Picture mod if ($bdpic =~ /\//i) { $bdpic = qq~ ~; } elsif ($bdpic) { $bdpic = qq~ ~; } ### End Message Index with Board Picture Mod $messageindex_template =~ s//$template_mods/g; ### Start Message Index with Board Picture mod $messageindex_template =~ s//$bdpic/g; ### End Message Index with Board Picture Mod Admin/ModList.pl ### END BOARDMOD ANCHOR ### $miwbp_mod = "Message Index with Board Picture YaBB2|Manfred|This mod enables the display of the default board-picture at the message index page.|1.0|10/08/05"; push (@installed_mods, "$miwbp_mod");