![]() |
Rules Page for users and moderators
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:
- 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> 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> HTML Code:
<!-- / user cp tools menu --> HTML Code:
<!-- rules menu --> You can do anything you want to this addon. :) Don't forget to click install. |
If you have any recommendations about these modification or question(s) please let me know.
|
reserved for future use
anyway interesting modification, right now i use CYB HACK, but yours include the moderating rules ... |
Our forums really don't have any rules for members.
But the option for rules for the moderator seems to be a good idea. [installed] Thanks! |
HTML Code:
<if condition="is_member_of($bbuserinfo, array('5','6','7'))"> All users see the same link. Thanks! edit: I fixed the problem....somehow... :) |
When looking at the Board Management page I get this at the top of the page:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /mods.php on line 27 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /mods.php on line 40 :) |
Are you sure that you've changed the username, password and database?
|
Yea man.
If it couldn't connect than I should be getting "Cannot connect the database.." errors. So I'm really not sure what is going on. |
The code is:
PHP Code:
|
Thanks, this will come in handy.
|
All times are GMT. The time now is 12:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|