Many thanks!! Just a few quick questions as I haven't done any code-removing before...

I understand that there are three files to edit and one MySQL query to run:
1. postlist.php What should I remove from this file? I see a few references to threaded in this file:
// Do we link to showthreaded or showflat <br />if (!$mode) { <br /> $mode = $theme['postlist']; <br />} <br />$mode = "show$mode";
-----
// If $view isn't set then it gets set to the default view <br />if ( (empty($view)) && ($userview) ) { <br /> $view = $user['U_View']; <br />} <br />elseif ( (empty($view)) && (!$userview) ) { <br /> $view = $theme['threaded']; <br />}
-----
// If $postlist is threaded then we need to give them the proper <br />// button to expand or collapse the threads <br />$changestart = ""; <br />$changestop = ""; <br />$changealt = ""; <br />if ($view == "collapsed") { <br /> $changestart = "<a href=\"{$config['phpurl']}/postlist.php?Cat=$Cat&Board=$Board&page=$page&view=expanded\">"; <br /> $changestop = "</a>"; <br /> $changeoption = "expand.gif"; <br /> $changetext = $ubbt_lang['EXP_ICON']; <br /> $changealt = $ubbt_lang['TEXT_EXP']; <br />} <br />else { <br /> $changestart = "<a href=\"{$config['phpurl']}/postlist.php?Cat=$Cat&Board=$Board&page=$page&view=collapsed\">"; <br /> $changestop = "</a>"; <br /> $changeoption = "collapse.gif"; <br /> $changetext = $ubbt_lang['COL_ICON']; <br /> $changealt = $ubbt_lang['TEXT_COLL']; <br />} <br /> <br />if ( ($config['dateslip']) && ($view != "expanded") ){ <br /> $datecolumn = $ubbt_lang['LAST_POST']; <br />} <br />else { <br /> $datecolumn = $ubbt_lang['POSTON_TEXT']; <br />}
-----
And lastly the section that starts with:
// If we are not doing flat posts and the view is expanded then we
// will list all the replies out in a threaded format
2. showflat.php I see one reference to showthreaded.php here but wouldn't want to start slicing stuff out without getting the green light as to exactly what needs to be removed:
<br />} <br /> $postrow[$rownum]['replyto'] = "[Re: <a href=\"{$config['phpurl']}/showthreaded.php{$var_start}Cat{$var_eq}$Cat{$var_sep}Number{$var_eq}{$postrow[$rownum]['ParentPost']}{$var_sep}page{$var_eq}$page{$var_sep}vc{$var_eq}1\" target=\"_new\" title=\"[Re: #{$postrow[$rownum]['ParentPost']}]\" alt=\"[Re: #{$postrow[$rownum]['ParentPost']}]\"> {$parentarray[$rowparent]}</a>]"; <br /> } <br />
3. editdisplay.php // Predefine some variables <br />$defselected = ""; <br />$nopictureview = ""; $yespictureview = ""; <br />$categories = ""; $mi = ""; $cp = ""; <br />$default = ""; $d1 = ""; $d2 = ""; $w1 = ""; $w2 = ""; $w3 = ""; $m1 = ""; $m3 = ""; $m6 = ""; $y1 = ""; $allofthem = ""; <br />$DS = ""; $AS = ""; $DP = ""; $AP = ""; $AD = ""; $DD = ""; <br />$flat = ""; $threaded = ""; <br />$expanded = ""; $collapsed = "";
-----
// Find out if they already have a display preference
if($Display == "flat") { $flat = "selected="selected""; };
if($Display == "threaded") { $threaded = "selected="selected""; }
-----
// Find out if they have a view preference
if($View == "collapsed") { $collapsed = "selected="selected""; }
if($View == "expanded") { $expanded = "selected="selected""; }
I'd like to set the preferences to a) flat -and- b) collapsed, what MySQL queries need to be run to set those for all users? Also, what should I remove from this file beforehand so that people can't alter these settings - should I simply erase all these lines completely (the last two parts that is) before/after running the queries?
On a side not, I'd also like to get rid of the Expand option from the templates, maybe once I cut out 'threaded mode' then someone could kindly help me get rid of 'expanded view' as well?
