MyBB Tutorials

Change the postbit style and force it on users

Submitted by Mr_Joker, , Thread ID: 4840

Thread Closed
15-06-2015, 12:26 PM
#1
Goto ACP > Configuration > Showthread Options > Postbit Layout and choose the desired postbit style. This will set the default but to change existing users you will need to run a SQL query via phpadmin.

For classic postbit:
Code:
UPDATE `mybb_users` SET `classicpostbit` = '1' WHERE `classicpostbit` = '0'
For horizontal postbit:
Code:
UPDATE `mybb_users` SET `classicpostbit` = '0' WHERE `classicpostbit` = '1'

(replace mybb_users with the table prefix if you changed itand you should have)

To remove the option for members to change it from UserCP: Goto ACP >Templates & Style >Templates >your current theme > User Control Panel Templates > usercp_options
and search for the following code:
Code:
<tr>
<td valign="top" width="1"><input type="checkbox" class="checkbox" name="classicpostbit" id="classicpostbit" value="1" {$classicpostbitcheck} /></td>
<td><span class="smalltext"><label for="classicpostbit">{$lang->show_classic_postbit}</label></span></td>
</tr>

If you want to force the classic postbit, replace it with this:
Code:
<input type="hidden" name="classicpostbit" id="classicpostbit" value="1" />

If you want to force the horizontal postbit, replace it with this:
Code:
<input type="hidden" name="classicpostbit" id="classicpostbit" value="0" />

Users browsing this thread: 2 Guest(s)