MyBB Community Forums

Full Version: making linear mode the only mode?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to make that the only mode people can use?

when i set it in my profile options it doesnt show the classical post view anymore.

I did this to make people only use classical mode. http://community.mybb.com/thread-40093-page-4.html

And when I click Linear Mode in my profile options it makes it show up with the new mode I cant remember whats its called now lol but yeah is there a way I can make that the default without effecting the posting mode?
Go to: ACP > Templates > Showthread Templates > showthread > find the following and remove;
<a href="showthread.php?mode=threaded&amp;tid={$tid}&amp;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 Wink
(2011-05-07, 06:27 AM)prabu Wrote: [ -> ]It is a interesting sharing.......

Most welcome Wink
thank you so much! ^.^
Most welcome Smile
Its still coming up with the threaded mode for me and other people on the forum. =/ Even after editing the templates and running the update.
Check the templates to make sure you saved them and the changes are still there. Then run the query again.