Yii Framework Forum: Multiple Forums With Separate Accessibility - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Multiple Forums With Separate Accessibility Rate Topic: -----

#1 User is offline   Mike W 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 25-August 14

Posted 25 August 2014 - 08:15 PM

In my app, I would like to have 2 separate forums: a public forum and a private forum. The public forum would be readable by any user (even if not logged in) and writeable by any logged-in user. The private forum area would be both readable and writeable only to users who have a particular role.

Is it possible to do this with bbii? If so, how would I set up and configure this? Would it work to register the module twice, like this? --

'modules'=>array(
    'public_forum'=>array(
        'class'=>'application.modules.bbii.BbiiModule',
        'adminId'=>1,
        'userClass'=>'User',
        'userIdColumn'=>'id',
        'userNameColumn'=>'username',
    ),
    'private_forum'=>array(
        'class'=>'application.modules.bbii.BbiiModule',
        'adminId'=>1,
        'userClass'=>'User',
        'userIdColumn'=>'id',
        'userNameColumn'=>'username',
    ),
),

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users