Current time: 04-24-2014, 06:44 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] How to set all users to the same thread view mode
07-06-2011, 10:50 PM (This post was last modified: 08-09-2011 10:47 PM by Fábio Maia.)
Post: #1
[Tutorial] How to set all users to the same thread view mode
INTRODUCTION

If you don't feel comfortable knowing that various users are using a different Thread View mode, and therefore a different user experience, and want to set all users to the same thread view mode, as well as stop them from changing it in the future, then that is exactly what this tutorial will tell you how to do. Note: This tutorial is not for changing the postbit style. If that's what you're looking for, please read this instead:

http://community.mybb.com/thread-40093.html

TUTORIAL

1. Go to Admin CP > Configuration > Settings > Show Thread Options.

2. Select Yes from Usenet Style Thread View if you want to use the Threaded Mode, or No if you want to use the Linear Mode.

3. Go to Admin CP > Templates & Style > Templates > Your Template Set > User Control Panel Templates > usercp_options.

4. Find and delete:

Code:
<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>

5. Go to Admin CP > Templates & Style > Templates > Your Template Set > Show Thread Templates > showthread.

6. Find and delete:

Code:
<div style="float: right;">
<span class="smalltext"><strong><a href="showthread.php?mode=threaded&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span>
</div>

7. If in step 2 you set Usenet Style Thread View to Yes, execute this SQL query:

PHP Code:
UPDATE `mybb_usersSET  `threadmode` =  'threaded'

7. If in step 2 you set Usenet Style Thread View to No, execute this SQL query:

PHP Code:
UPDATE `mybb_usersSET  `threadmode` =  'linear'

CONCLUSION

If you followed these steps precisely, all users should now have the same thread view mode, and will be unable from changing it. Either from the User CP or directly in a thread. See the examples below:

       
Find all posts by this user
Quote this message in a reply
07-11-2011, 10:33 AM
Post: #2
RE: [Tutorial] How to set all users to the same thread view mode
This user has been denied support. This user has been denied support.
Thanks a lot for all your tutorials posted. I really appreciate it bro.
Anyway, if i implement this. Is their way i can revert this back? how? Thanks.
Find all posts by this user
Quote this message in a reply
07-11-2011, 10:39 AM
Post: #3
RE: [Tutorial] How to set all users to the same thread view mode
Just put the small pieces of code back in their templates. In other words, do the opposite of the tutorial.
Find all posts by this user
Quote this message in a reply
08-08-2011, 12:32 PM
Post: #4
RE: [Tutorial] How to set all users to the same thread view mode
Thanks a lot for this tutorial! Smile

If you like to play FIFA - CLICK HERE!
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication