Support Forums
[TuT] [MyBB] How To Make A Custom Rule Page - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36)
+---- Forum: Forum Software Help (https://www.supportforums.net/forumdisplay.php?fid=49)
+---- Thread: [TuT] [MyBB] How To Make A Custom Rule Page (/showthread.php?tid=21841)



[TuT] [MyBB] How To Make A Custom Rule Page - Hei - 08-31-2011

Tutorial - How to make a custom Rule's Page in MyBB.

Step 1 : Download Page Manager Plugin - http://mods.mybb.com/view/page-manager
Step 2 : Activate it through Admin CP.
Step 3 : In Admin CP > Configuration > On left side at bottom you should see "Page Manager" , Click on it.
Step 4 : Click on "Add New Page" , Put in name - Rules , URI parameter - rules , and tick "yes" on Use MyBB Template?
Step 5 : Now here the part where you will write the rules for your forum. You can use mybb tags and html.
Step 6 : Tick yes on "Show in "Who is Online"?" and on "Page enabled?" and click Save and Return to Listing.
Step 7 : Go Admin CP > Templates & Style > Select Templates on Left side > Select your current theme > Select Header Templates > Select Header > Find
Code:
<div class="menu">
<ul>
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
</ul>
</div>
And at below the last <li> line put

Code:
<li><a href="{$mybb->settings['bburl']}/misc.php?page=rules">Rules</a></li>

Note :- It might show some problem with some themes so here's a fix relace the above lines with

Code:
<div class="menu">
<ul>
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />Search</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />Member List</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />Calendar</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />Help</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?page=rules">Rules</a></li>
</ul>
</div>

A sample Rules Page
Code:
<table width="100%" border="0">
<tr>
<td valign="top" width="80%">
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr><td class="thead"><strong>Rules</strong></td></tr>
<tr>
<td class="trow1" valign="top">
<table width="100%">
<tr>
<td>
<div id="pid_" style="padding: 5px 0 5px 0;"><br />
By registering on <a href="{$mybb->settings['bburl']}">{$mybb->settings['bbname']}</a> you abide to agree by the following rules.We the staff's of {$mybb->settings['bbname']} - Moderators , SuperModerators and
Administrators does not take any responsibility of the action's of the users. In any circumstance user will be held responsible for their own action.
<strong>General Rules</strong>
<ol type="1">
<li>Don't post images, videos, or links containing pornographic or nude pics / child porn or suggestive pics / jailbait of anyone who does not look at least 18 or killings, mutilations or excessive blood or guts.</li>
<li>Don't post spam or advertisements, or links to:<br />
<ul>
<li>Sites containing malware;</li>
<li>Pay sites, money making, or referral schemes;</li>
<li>Direct downloads and torrent links containing fakes, malware, illegal material / warez or scams.<br />
</li></ul></li>
<li>Don't post in languages other than English.</li>
<li>Don't cross-post or post on inappropriate boards.</li>
<li>Don't bump or double post.</li>
<li>Don't post off-topic.</li>
<li>Don't troll or flame.</li>
<li>Don't edit, argue with, ignore, or spoof modcalls. <br />
If you disagree with a call then PM the mod, a supermod, or an administrator.</li>
<li>Don't use puppet accounts to break rules or evade bans--you will be held fully accountable.<br />
</li>
</ol><br /><br />
Please note that we can't predict every possible scenario. We're not out looking for ways to warn or ban people but, in cases of outright obnoxiousness, or obvious stupidity or carelessness, we reserve the right to do so.
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

Tutotrial made by - ShadowKage.


RE: [TuT] [MyBB] How To Make A Custom Rule Page - AceInfinity - 08-31-2011

Pretty decent. I'll take a look at your Html later, it's too late here for me to check to see if you can improve it lol. But you could also just link the rules menu item to your rules forum thread if you created one. That's what i've done...

Much easier to update that way. The link never changes, and I can edit the content without opening an ftp client or my admincp.


RE: [TuT] [MyBB] How To Make A Custom Rule Page - Hei - 08-31-2011

Yeah i agree making a rule thread is easy but a rule page makes the website look more professional.


RE: [TuT] [MyBB] How To Make A Custom Rule Page - Mark Zuckerberg - 08-31-2011

(08-31-2011, 12:39 AM)ShadowKage Wrote: Yeah i agree making a rule thread is easy but a rule page makes the website look more professional.
I agree with you there.

Makes the website look better as a whole instead of linking to the page.

Nice tutorial, gonna try it out later.

Thanks Smile




RE: [TuT] [MyBB] How To Make A Custom Rule Page - AceInfinity - 08-31-2011

(08-31-2011, 12:39 AM)ShadowKage Wrote: Yeah i agree making a rule thread is easy but a rule page makes the website look more professional.

Possibly, but even the most professional forums that i've seen still use a forum thread method. It's better for the forum community too because now they have somewhere to give feedback about the rules.

Also - I wouldn't use a plugin for this to take up space in the database. It would be easy enough to just create a page of your own using the basic template of the forum as a guideline.


RE: [TuT] [MyBB] How To Make A Custom Rule Page - JesusOfSuburbia - 09-13-2011

This is a great tut. Thanks for the share. I might use this tut for my new mybb forum! Big Grin