1
dougfc
Phpkaox - change to "flat" from "threaded" of view mode initially
  • 2004/10/23 12:47

  • dougfc

  • Just popping in

  • Posts: 21

  • Since: 2004/8/17


I use Phpkaox theme that all replies of topics are in threaded of view mode initially. So readers cannot read all contents of a topic aftering clicking it. They must click one of the reply and read the content. Or they must click the buttion "flat" of view mode by themselves. It will not be so convenient for them and they do not used to it. How can I change replies from "threaded" to "flat" of view mode after clicking the topic like XOOPs website? Then readers can read all the contents of a topic after clicking the topic. I have checked the user settings but I cannot find any hints. Any ideas? Thank you in advance

Cheers,
doug

2
jakiechan
Re:Phpkaox - change to
  • 2004/11/9 3:22

  • jakiechan

  • Just popping in

  • Posts: 2

  • Since: 2004/9/5 2


Yes, its pretty simple
find the viewtopic.php file under /modules/newbb/
near the top find these strings
//use users preferences
if (is_object($xoopsUser)) {
$viewmode = $xoopsUser->getVar('umode');
$order = ($xoopsUser->getVar('uorder') == 1) ? 'DESC' : 'ASC';

and make it look like this

//use users preferences
if (is_object($xoopsUser)) {
$viewmode = $xoopsUser->getVar('flat');
$order = ($xoopsUser->getVar('ASC') == 1) ? 'DESC' : 'ASC';

and bam, instant flat for all

Login

Who's Online

155 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 155


more...

Donat-O-Meter

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

Latest GitHub Commits