MyBB Community Forums

Full Version: Batch create forum rules?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
is there anyway to do this? I have alot of forums and this would take me most of the day lol
You mean same rules to show on each forum ?
yes at the top
You can run a sql query to do this;
UPDATE mybb_forums SET rules = 'YOUR RULES GOES HERE';
Make sure your db prefix is mybb_
Also Change YOUR RULES GOES HERE to the Rules/Text you want to show for each forum.

Now to Make it available for each forum, Run this;
UPDATE mybb_forums SET rulestype = '1'

And For each forum rule's title, Run this;
UPDATE mybb_forums SET rulestitle = 'TEXT';

Its tested and confirmed Wink
I prefer to edit the one template than update each forum. Go to ACP->Templates->Your templates->Forumdisplay->forumdisplay. Paste this code:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$foruminfo['name']} </title>
{$headerinclude}
{$rssdiscovery}
<script type="text/javascript">
<!--
	lang.no_new_posts = "{$lang->no_new_posts}";
	lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$moderatedby}
{$usersbrowsing}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>Rules</strong></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">Here paste rules.</span></td>
</tr>
</table>
<br />
{$rules}
{$subforums}
{$threadslist}
{$footer}
</body>
</html>
Yes, that's fine too.
oops is there a way to exclude a few forums?