SmartFAQ is developed by The SmartFactory (https://www.smartfactory.ca), a division of InBox Solutions (https://www.inboxsolutions.net)

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


The comments are owned by the author. We aren't responsible for their content.


Login

Who's Online

217 user(s) are online (2 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 217


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Did you know ?

XOOPS 2.0.x requires PHP version 4.1.0 or higher
XOOPS 2.2.x requires PHP version 4.2.0 or higher

Random question

How to set a block underneath a module?