Back to vBulletin 3.6 Template Modifications

Rules Page for users and moderators
Mod Version: 1.00, by WhaLberg

This modification is in the archives.
vB Version: 3.6.4 Rating: (2 votes - 5.00 average) Installs: 10
Released: 07 Jan 2007 Last Update: Never Downloads: 44
Not Supported Template Edits Additional Files  

You want to have a page which includes the rules that must be followed by the users and moderators / admins. But they must be seperated and drop downed from the navbar link "Rules". If so, here is what you need..

You must write your own rules of users for sections, and also you must write the rules of moderators.

What you need to install?
- Upload the rules.php, modrules.php and mods.php to your home directory.
- Do not forget to change the database name, user name and password in mods.php

PHP Code:
// ######################### SQL THINGS ############################

mysql_connect('localhost''username''password') or die("Cannot connect the database..");
mysql_select_db('databasename') or die("Cannot select the database.."); 
- Go to Styles & Templates -> Style Manager -> the Style that you use
- Click to Add New Template from the right top drop down menu.
- Change the title as "userrules" and copy the codes in userrules.txt .
- Click to Add New Template again.
- Change the title as "moderatorrules" and copy the codes in moderatorrules.txt.
- Click to Add New Template again.
- Change the title as "mods" and copy the code in mods.txt.
- Click to Add New Template again.
- Change the title as "supmods" and copy the code in supmods.txt.
- Go to Styles & Templates -> Style Manager -> the Style that you use
- Open the navbar template from Navbar Templates.
- Find (in navbar):
HTML Code:
<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td> </if>
- After add:
HTML Code:
<td id="rules" class="vbmenu_control"><a href="$show[nojs_link]#rules">Board Rules</a> <script type="text/javascript"> vbmenu_register("rules"); </script></td>
- Find (in navbar):
HTML Code:
<!-- / user cp tools menu -->
</if>
- After add:
HTML Code:
<!-- rules menu -->
<if condition="$show['member']">
<div class="vbmenu_rulepopup" id="rules_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr><td class="thead">Board Rules</td></tr>		
		<tr><td class="vbmenu_option"><a href="rules.php">User Rules</a></td></tr>
		<if condition="is_member_of($bbuserinfo, array('5','6','7'))"><tr><td class="vbmenu_option"><a href="modrules.php">Moderator Rules</a></td></tr></if>
		</table>
	</div><else />
<div class="vbmenu_rulepopup" id="rules_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr><td class="thead">Board Rules</td></tr>		
		<tr><td class="vbmenu_option"><a href="rules.php">User Rules</a></td></tr>
		</table>
	</div>
	</if>	
	<!-- / rules menu -->
I hope this helps you and please don't be shy to ask any questions.

You can do anything you want to this addon.

Don't forget to click install.

Download

This modification is archived, downloads are still allowed.

File Type: %1$s Rules for Users and Mods.zip (8.0 KB, 67 downloads)

Screenshots

Click image for larger version
Name:	user-guestviewingmodrules.jpg
Views:	311
Size:	29.8 KB
ID:	58626   Click image for larger version
Name:	modrules.jpg
Views:	368
Size:	68.5 KB
ID:	58627   Click image for larger version
Name:	userrules.jpg
Views:	292
Size:	61.6 KB
ID:	58630   Click image for larger version
Name:	modnavbar.jpg
Views:	246
Size:	126.8 KB
ID:	58631  

Click image for larger version
Name:	guestnusernavbar.jpg
Views:	268
Size:	60.7 KB
ID:	58632  

Similar Mods

Make invisible users visible to Super Moderators and Moderators. vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024