MyBB Community Forums

Full Version: Turn Forum into page?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Guys I want to add forum rules and I am thinking how can I show only the forum rules, and how can I add <style type="text/css"> to forum rules?
To get a different background for your forum rules open the template Forum Display Templates-->forumdisplay_rules.

In the deafult theme it`look like this:
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$foruminfo['rulestitle']}</strong></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">{$foruminfo['rules']}</span></td>
</tr>
</table>
<br />

Change the trow1 to rules. Now it should be looking like this:
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$foruminfo['rulestitle']}</strong></td>
</tr>
<tr>
<td class="rules"><span class="smalltext">{$foruminfo['rules']}</span></td>
</tr>
</table>
<br />

Now open your global.css (Advaned Mode) and add at the end of it:
.rules {
background: #ff0000;
padding: 5px;
color: #fff;
}

Now your forum rules will be dispülayed with an alternative background. Here is a little screenshot to see how it works.
[attachment=30849]

PS: You can style the .rules class however you want. My sample is maybe not really pretty. Big Grin
@Real Kenny thanks very much buddy that is exactly I was looking forSmile
Glad if I could help you. Smile