1
tittelba
Forum module....how to keep "flat" option as default
  • 2004/7/10 13:23

  • tittelba

  • Just popping in

  • Posts: 15

  • Since: 2004/7/9 2


I'm using the Forum module that comes with Xoops2. Is there a way I can have the forum view set to "flat" by default. Right now, all the member have to hit the "flat" option in order to see all the replys to a post at once.

Thanks!!!
Tom

2
Mithrandir
Re: Forum module....how to keep "flat" option as default

The standard newbb uses the comments ordering in the user's profile, so tell your users to set the mode they want for comments and it'll carry over to forums as well.

3
Bender
Re: Forum module....how to keep "flat" option as default
  • 2004/7/10 13:35

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Mithrandir do you know how to make a new registering user have flat as default value?

Would changing the order in line 91 of userform.php influence this? (Xoops 2.0.7)

$umode_select->addOptionArray(array("nest"=>_NESTED"flat"=>_FLAT"thread"=>_THREADED));


to

[code]$umode_select->addOptionArray(array("flat"=>_FLAT,"nest"=>_NESTED, "thread"=>_THREADED));

4
Mithrandir
Re: Forum module....how to keep "flat" option as default

Nope

userform.php is used for editing registered users or adding new users through the administration menu.

For registrations, only username, password, email and timezone are set.

But try this in kernel/user.php
line 95:
$this->initVar('umode'XOBJ_DTYPE_OTHERnullfalse);
change to
$this
->initVar('umode'XOBJ_DTYPE_OTHER_FLATfalse);

5
Bender
Re: Forum module....how to keep "flat" option as default
  • 2004/7/10 13:48

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Thank you. I will try.

Just tested what i suggested before and it broke the edit user function. Even after restoring the original file, clearing templates and updating system module.

But its one of the testing sites so it doesn´t matter.

Just to anyone: DON´T TRY WHAT I SUGGESTED

6
damjam
Re: Forum module....how to keep "flat" option as default
  • 2004/7/10 14:04

  • damjam

  • Just popping in

  • Posts: 63

  • Since: 2004/3/30


Take this as one guy's experience only...

I had the same trouble and if you search the site for "flat" or "threaded" you'll find that several others have posted on this topic too. Then this week I updated my system module through admin and now my forum view displays as I want.

7
Bender
Re: Forum module....how to keep "flat" option as default
  • 2004/7/10 14:26

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


You are right about the other postings concerning this but i are you saying what i suggested is correct? Because that warning concerned only my suggestion in the first posting.

Appology to Mithrandir also as it seems i failed in searching this time.

https://xoops.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=17191&forum=17

Would have given me all i need.

8
royco
Re: Forum module....how to keep "flat" option as default
  • 2004/7/10 16:26

  • royco

  • Just popping in

  • Posts: 21

  • Since: 2004/6/9 7


Here's what I did, worked with registered users.

Check this thread here

hope that helps

9
damjam
Re: Forum module....how to keep "flat" option as default
  • 2004/7/11 19:12

  • damjam

  • Just popping in

  • Posts: 63

  • Since: 2004/3/30


I have a Very Basic question. I thought I knew but now I'm confused... What exactly is meant by "flat" and "threaded"?

In other words, when all the posts in a thread are expanded or opened for viewing, is it flat or threaded?

10
CheChen
Re: Forum module....how to keep "flat" option as default
  • 2004/7/11 19:17

  • CheChen

  • Just popping in

  • Posts: 23

  • Since: 2004/6/7 1


More as 20 posts and don't know what is flat and threaded style?
When it is expanded, its flat style.

Login

Who's Online

274 user(s) are online (215 user(s) are browsing Support Forums)


Members: 0


Guests: 274


more...

Donat-O-Meter

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

Latest GitHub Commits