Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TuT] [MyBB] How To Make A Custom Rule Page
#1
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.
[Image: pp0iE.png]
Reply
#2
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.
Reply
#3
Yeah i agree making a rule thread is easy but a rule page makes the website look more professional.
[Image: pp0iE.png]
Reply
#4
(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

Chase your dreams, and if it doesn't work, dream a new dream. -Louis “Coach” Presutti
Reply
#5
(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.
Reply
#6
This is a great tut. Thanks for the share. I might use this tut for my new mybb forum! Big Grin
[Image: logo.png]
xSexy.org | The New Sexy Forum ! [Erotic Pics & Videos]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [TuT]Setting Up Your Own Forum-Fast-Free-Easy[TuT] Vorfin 119 48,300 08-05-2013, 04:05 AM
Last Post: Uzi
  Usergroup Styles Mybb [tut] BannedPoop 26 4,683 08-10-2011, 02:31 PM
Last Post: BannedPoop
  [TUT] How to make a MyCode [MyBB] Laughynose 10 4,131 07-30-2011, 04:36 PM
Last Post: Kewlz
  How To Make A MyBB Forum From SCRATCH--Step by STEP Instructions with pictures! MasterZuFu 12 9,135 07-20-2011, 08:39 AM
Last Post: Drakon
  Add Icon to Forum Mybb [tut] BannedPoop 15 6,476 07-13-2011, 04:47 PM
Last Post: Don Corleone

Forum Jump:


Users browsing this thread: 1 Guest(s)