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

339 user(s) are online (1 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 339


more...

Donat-O-Meter

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

Did you know ?

Myths about autologin + email hack.

Random question

How do I set the default view mode to 'flat' in newbb and how to change that for existing users