How to add a custom block to newBB2 forum

Requested and Answered by Carnuke on 2004/12/13 23:06:25

How to add a custom block to newBB2 forum

With NewBB 2.0 you can add blocks on-fly as following.

1 Enter 'Administration Menu'=>"block admin"=>"Add new block"

2 In the "Add a new block":

2.1 Block Type: choose anyone as you prefer
2.2 Weight: input any valid value as you prefer
2.3 Visible: select any one as you prefer
2.4 Visible in: set any one as you prefer
2.5 Title: input any valid text as you prefer
2.6 Content:

include_once(XOOPS_ROOT_PATH '/modules/newbb/blocks/newbb_block.php');
$options "10|0|time|0";
b_newbb_custom($options);


//$options = "TheNumberToDisplay|ViewMode(0?1?2?)|time_Or_reviews_Or_replies|ForumId1,ForumId2,ForumId3";
2.7 Content Type: MUST BE "PHP Script"
2.8 Cache lifetime: choose any one as you prefer
2.9 Preview first, or Submit to save your new block

This Q&A was found on XOOPS Web Application System : https://xoops.org/modules/smartfaq/faq.php?faqid=308