2011-05-07, 05:23 AM
Go to: ACP > Templates > Showthread Templates > showthread > find the following and remove;
This'll remove the link from Showthread Pages.
Now go to: ACP > Templates > User Control Panel Templates > usercp_options > find the following and remove;
Now to make all Users with Linear Mode, Run the following query in phpmyadmin;
In this way, your all users have Linear Mode by default and now they are not able to Change it
<a href="showthread.php?mode=threaded&tid={$tid}&pid={$pid}#pid{$pid}">{$lang->threaded}</a> |
This'll remove the link from Showthread Pages.
Now go to: ACP > Templates > User Control Panel Templates > usercp_options > find the following and remove;
<tr>
<td colspan="2"><span class="smalltext">{$lang->thread_mode}</span></td>
</tr>
<tr>
<td colspan="2"><select name="threadmode"><option value="">{$lang->use_default}</option><option value="linear" {$threadview['linear']}>{$lang->linear}</option><option value="threaded" {$threadview['threaded']}>{$lang->threaded}</option></select></td>
</tr>
Now to make all Users with Linear Mode, Run the following query in phpmyadmin;
UPDATE mybb_users SET threadmode = 'linear'
In this way, your all users have Linear Mode by default and now they are not able to Change it