# Blocks

The module comes with these blocks :

- Recent Topics
- Most Viewed Topics
- Most Active Topics

In this area you can of course edit the options for each block :

- Block Type : Side Block left or right, center block
- visible : yes - no
- Visible in Top page, All Pages... (depends of installed modules)
- You can of course modify the title
- SOme other parameters :
  - Number of posts to be displayed
  - Display mode (Full, compact, lite)
  - possibility to choose the different forums where take posts
  - Cache lifetime

#### Rights

The second part of this area is about the rights for the blocks. In a single action you can give access for each group :

- module admin rights
- module access rights
- acces for each block

#### Create new blocks 'on the fly'

It's possible to create personalized blocks on the forum :

- "System Admin"=>"Blocks"=>"Add a new block"
- content type : php script
- weight : give the value you want
- visible : yes - no
- visible in Top page, All Pages, Forum xxx...
- title : give a name to your block
- content :
  - include_once(XOOPS_ROOT_PATH . '/modules/newbb/blocks/newbb_block.php');
  - $options = "10|0|time|0";
  - b_newbb_custom($options);