1
sudhaker
newbb - 'flat', 'thread' and 'nest' confusion !!
  • 2004/4/11 7:19

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2



I have a problem related to strange behavior of newbb (forums) module. Out of possible three mode 'flat', 'thread' and 'nest' my site is picking them randomly for different users

2
sudhaker
Re: newbb - 'flat', 'thread' and 'nest' confusion !!
  • 2004/4/11 7:21

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


Did search on site, other people are also facing the same problem

3
longhair
Re: newbb - 'flat', 'thread' and 'nest' confusion !!
  • 2004/4/11 8:58

  • longhair

  • Friend of XOOPS

  • Posts: 70

  • Since: 2004/3/29



On a smiliar note, is there a way to activate 'flat' newbb forum viewing for all members as default.

We've found many of our members are confused by the threaded / nested view, and would prefer all members begin with a flat view to begin with.

We're aware they are able to edit their account information to acheive this, but where do we modify the setting to enable 'flat' as the default option.

4
jurgis
Re: newbb - 'flat', 'thread' and 'nest' confusion !!
  • 2004/4/11 9:40

  • jurgis

  • Just popping in

  • Posts: 72

  • Since: 2003/3/20


admin->system->Preferences : comments view (or sth like that)

again I want to have Nested in comments and flat in newbb
I guess I'll have to hack
modules/newbb/viewtopic.php
where it sais
// newbb does not have nested mode
if ($viewmode == 'nest') {
   
$viewmode 'thread';
}


and comments are made by
/include/commentrenderrer.php

5
sudhaker
Re: newbb - 'flat', 'thread' and 'nest' confusion !!
  • 2004/4/11 16:42

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


Thanks guys. I figured it out.

The column 'umode' from xoops_users table controls that. And this value is configurable from "User Menu".

The default value when some user is newly created gets controlled by line:200 of register.php
$newuser->setVar('umode',$xoopsConfig['com_mode']);


---

To get flat view for all user execute SQL
update xoops_users set umode 'flat'


and for new users getting 'flat' as default value, user "Admin Panel" and Preferences >> Generals - and set flat as comment order. This will be copied to any new user's setting.

Login

Who's Online

248 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 248


more...

Donat-O-Meter

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

Latest GitHub Commits