PDA

View Full Version : Cyb - Advanced Forum Rules


Valter
10-05-2005, 10:00 PM
=======
Release of this hack for vB v3.6:
https://vborg.vbsupport.ru/showthread.php?t=122998
=======


Info:
Advanced Forum Rules system for vBulletin.

Main Features:
-Rules shown on separate page (no file uploads required)
-BB codes enabled
-Options to force users to accept Forum Rules before can view forums, post, send PMs,...

See screenshots.


Installation:
1. Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]
2. OPTIONAL (for some customized styles)
Open template "navbar" and add "$cyb_frules_link" after "vbphrase[faq]</a></td>".
3. OPTIONAL (to add 'reset acceptance status' to different place than default one)
Open template "MEMBERINFO" and add "$cyb_frules_force" wherever you wish.


To set options:
Go to: AdminCP > vBulletin Options > Cyb - Advanced Forum Rules


NOTE: You can check which users are (not) accepted Forum Rules by running db queries:
(Run queries through: AdminCP > Execute SQL Query)
List users who had accepted Rules:
SELECT * FROM `user` WHERE cfrules_read_status > 0;
List users who hadn't accepted Rules:
SELECT * FROM `user` WHERE cfrules_read_status = 0;


Versions:
v1.0 - Oct 06. 2005.
-First version
v1.5 - Apr 22. 2006.
-Navbar link is added automatically now (one installation step less)
-Navbar "Forum Rules" link can be disabled in hack settings
-"Manage Rules" link is on settings page now (no need for .xml menu file anymore - one file less to upload when installing)
-"Unknown Location" fixed
-Added function to enable/disable whole hack (predefined error message is displayed instead)
-Templates now goes to "Cybernetec" group in Style Manager
To upgrade from 1.0 to 1.5:
-Import product XML through AdminCP > Plugin System > Manage Products > [Add/Import Product] (Be sure "overwrite" is checked). Upload cfrules.php and cfrulesadmin.php (replace old files). Delete file \includes\xml\cpnav_cfrulesadmin.xml.
v1.6 - Aug 04. 2006.
-Release of this hack for vB v3.6
v1.7 - Aug 05. 2006.
-Uncached template bug fixed
v2.0 - Aug 07. 2006.
-Completely changed way this hack works. No more queries, no more file uploads. Now Rules can be exported because it's part of vB settings. Now you can use BB Codes, which means you can use all standard text formatting functions, smilies, etc. To upgrade: Uninstall old version > Import XML as product > Delete "cfrules.php" from your forums root > Delete "cfrulesadmin.php" from "admincp" folder of your forums
v2.1 - Aug 07. 2006.
-Fixed "Edit Forum Rules" link (didn't worked for some users)
v2.2 - Aug 25. 2006.
-If your forum's index.php file was renamed, for any reason, now you can enter new filename in ACP hack options to have this hack working properly
-Added "Product Version Checking" - https://vborg.vbsupport.ru/showthread.php?t=124679
v2.3 - Aug 26. 2006.
-New: User must accept Rules to be able to post on Forums (option can be disabled/enabled)
-Look improved (see screenshots)
-Codes improved
-Hack name changed to "Cyb - Advanced Forum Rules"
v2.4 - Aug 27. 2006.
-Fixed small javascript bug
-Removed redirection to forum index after Rules acceptance
-Note 1/2 lines replaced by boxes in hack settings
-Removed navbar link HTML Markup options
-Separate phrase created for navbar link
v2.5 - Aug 31. 2006.
-Added ability to reset read status for all users. After this they will need to accept the Forum Rules again
-Added note at the top of Forum Rules when user need to accept it to be able to post on forums
-Added explanation on how to check which users had (not) accepted Rules
v2.6 - Aug 31. 2006.
-Fixed bug (index file location/name setting doesn't work)
-Fixed bug (if user who haven't accepted Rules try to post via quick reply in IE he gets undefined error)
-Fixed bug (resetting the accepts doesn't work if index file was renamed)
-Added: Guests now also need to accept Forum Rules to be able to post (cookie-based)
-Added: redirection message for user who try to post but haven't accepted Rules
v2.6.1 - Aug 31. 2006.
-Fixed bug (if user has no permissions to post he will get standard "no permission" message, not redirection to Forum Rules)
v2.7 - Sep 11. 2006.
-After acceptance users are redirected to the page they were previously viewing
-No more need to set filename for "index.php" if it was renamed. Now misc.php is used, which nobody has need to rename.
NOTE: Don't forget to update the links to the Rules you were posted on your site - change it to YOURFORUMS/misc.php?do=cfrules
-Added confirmation dialog for resetting acceptance status for all registered users
v2.8 - Sep 14. 2006.
-Added option to exclude usergroups from accepting Rules
-Navbar link title moved from phrases to settings for easier translation/make-up
v2.9 - Sep 24. 2006.
-Added option to reset acceptance status for individual member
v3.0 - Oct 30. 2006.
-Whole code is now valid XHTML 1.0 Transitional
v3.1 - Nov 13. 2006.
-Option to force user to accept rules again in member profile can be turned off
-Added variable for above function that you can place it to another place in MEMBERINFO template ($cyb_frules_force)
-Bug fixed (if some user knows exact link for resetting acceptance status he can do it)
-Several other improvements/fixes
v3.2 - Mar 06. 2007.
-New: User must accept Rules before can send PMs
-New: Options to choose what user can't do before accepting Rules
-New: Option to replace Registration Rules with this hack's one
-New: Better counter (with miliseconds, improved browser compatibility)
-Fixed some "invisible" bugs in code and improved compatibility with the latest vB releases
v3.3 - Apr 21. 2007.
-New: Option to force user to accept Rules before can view forums
-Fixed bug where three queries are executed on places where not needed
-Fixed bug where blank rows are shown twice on registration rules page
-New in registration rules options (disable completely)
-Better redirection after Rules acceptance
-Some other optimizations in codes...
v3.4 - Apr 22. 2007.
-Fixed bug where PMs can not be sent even Rules are accepted
-Fixed bug where Quick Reply does not work even Rules are accepted
-Improved counter and added ability to completely disable it (tested and worked on IE, Firefox, and Opera)
-Improved compatibility with right-to-left styles (note: in Rules use [right] tags anyway)
-Fixed navbar link
v3.5 - Jul 22. 2007.
-Fixed bug (MySQL injection vulnerability - attacker can trick admin to reset rules acceptance status for all members)
-Group membership checking works now for supplementary usergroups too
-Several code improvements
v3.5.1 - Jul 22. 2007.
-Fixed bug (XSS Vulnerability)
v3.5.2 - Jul 23. 2007.
-Another security exploit fixed
v3.5.3 - Jul 25. 2007.
-Fixed bug where user is not properly redirected after accepting rules
v3.5.4 - Jul 25. 2007.
-Bug fixed where username info is not shown when going to reset acceptance status
v3.6 - Oct 14. 2007.
-Fixed bug where some mods are not able to reset acceptance status
-Improved javascript code to fix problems with the counter some users reported
-Minor bug fixes


If you like this hack please click INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=97763).


Cybernetec

Glovebox
10-06-2005, 10:01 PM
Works great thanks

In your info.txt:
-------------

Cybernetec
December 06. 2005.

You coding in the future? Impressive! Lol

Good stuff.

Valter
10-06-2005, 10:21 PM
Works great thanks

In your info.txt:
-------------

Cybernetec
December 06. 2005.

You coding in the future? Impressive! Lol

Good stuff.
hahahahahaha this is great LOL

I'm going to edit this hahahahaha :D

Lea Verou
10-07-2005, 12:56 AM
Oh I needed this! Only one thing that prevents me from installing:
Can you pleeeease add categories??? (eg in my site I have gallery, forum, links etc and I'd like to have rules for all) I'll thank you for the rest of my life as an admin if you do so! :p

Lea Verou
10-07-2005, 01:04 AM
Oh I needed this! Only one thing that prevents me from installing:
Can you pleeeease add categories??? (eg in my site I have gallery, forum, links etc and I'd like to have rules for all) I'll thank you for the rest of my life as an admin if you do so! :p

Well I'll install it just for the forum as I saw it in Glovebox's site and absolutely loved it so I couldn't resist :P But pleaaaase make categories! It would also be great if you could add usergroup permissions to categories so I could post there the mod rules as well, but I don't need it that badly :)

Anyway, thanks a lot for a great hack!! :)

PS: Does it support HTML in the rules?
PS2: Goodnight, I'm now going to have a good night's sleep as it's 5 in the morning here and install when I wake up. But I'll click the button install from now :)

Lea Verou
10-07-2005, 02:29 AM
Finally I couldn't sleep :p

I have some feature suggestions that I thought while in bed (marked in green the ones I think are very useful/important/needed):





Categories
Usergroup permissions per category
Display last update date somewhere. Escpecially new forums tend to update the rules regularly.
Add the option in each rule to contain no "punishment" field in its row. That would be useful for delarations, statements, guidelines etc
The ability to write text that will be contained in a block above the rule so somebody can write there something that explains to n00bs what they are reading. :p
WYSIWG editor in admincp (am I asking for too much??? :p)
at least an editor that accepts bbcode would be nice (so we can copy-paste from the vb editor :p)
Export/Import rules to various filetypes
These for now! Hope you find them useful! :)

Ramsesx
10-07-2005, 06:24 AM
Thank you, good idea *installed*

Valter
10-08-2005, 11:16 AM
Loukrhtia,

Nice ideas but to be honest I think I'm not yet good enough to make that. Will see later if I can do something.

Lea Verou
10-08-2005, 11:18 AM
3,4,5,8 must be quite easy I think.

Oh, maybe you'd like to see how I made it in my site: http://www.e-steki.com/forum/cfrules.php?
I changed the template a bit :)

gsm4arab1
10-25-2005, 01:44 AM
Thank you, good job
yes Install

kurtbarker
01-25-2006, 01:16 PM
great hack mate... I was looking for a simple rules edit, some of the others are just way to complecated...

Just 1 question... When I got to view who's online, if anyone is viewing the rules, it says:
Unknown Location
/forums/cfrules.php?

Is there something I can edit so it says:
Viewing Thread:
Forum Rules

so something similar?

Thanks mate, Kurt

Valter
04-22-2006, 01:30 PM
v1.5 - Apr 22. 2006.
-Navbar link is added automatically now (one installation step less)
-Navbar "Forum Rules" link can be disabled in hack settings
-"Manage Rules" link is on settings page now (no need for .xml menu file anymore - one file less to upload when installing)
-"Unknown Location" fixed
-Added function to enable/disable whole hack (predefined error message is displayed instead)
-Templates now goes to "Cybernetec" group in Style Manager

Valter
08-04-2006, 08:34 AM
vB 3.6 version:
https://vborg.vbsupport.ru/showthread.php?t=122998

kashem
10-09-2006, 06:23 AM
hi, installed here http://www.webmasternetworks.com/ , but error when clicking on forum rules.

please check and advise

Valter
07-28-2007, 08:03 AM
v3.5.4
-See version history for changes...

Scandal
08-06-2007, 09:05 PM
OMG, its great!
Installed and + Excellent :)

Valter
08-06-2007, 09:21 PM
Hi philos2,

Also check vB 3.6.x version thread:
https://vborg.vbsupport.ru/showthread.php?t=122998

Your profile says you are currently using vB 3.6.8. :)

Scandal
08-06-2007, 10:12 PM
Hi philos2,

Also check vB 3.6.x version thread:
https://vborg.vbsupport.ru/showthread.php?t=122998

Your profile says you are currently using vB 3.6.8. :)

wow yes, i saw it after :D
it works great. :cool:
thanks!

revmitchell
08-09-2007, 02:40 PM
I down loaded file and recieved this error:XML Error: not well-formed (invalid token) at Line 1

bada_bing
10-09-2007, 06:24 PM
Can someone please help me here I have recently upgrade to version 3.5.4 of this hack and ever since I did this I cant reset the members rules from the memberinfo (user Profile page)
Does not matter if I place the $cyb_frules_force in memberinfo manually or I check to allow the hack to do so , the link will not show up. I have applied it to the correct style as it was working before I upgraded to 3.5.4. I asked for help several times and no luck not even from the coder of this hack.. I really need this link to appear again can I please get some help on this please.

Valter
10-14-2007, 02:16 AM
v3.6 - Oct 14. 2007.
-Fixed bug where some mods are not able to reset acceptance status
-Improved javascript code to fix problems with the counter some users reported
-Minor bug fixes

To upgrade: Import product XML, allow overwrite.

Ingress
12-05-2007, 06:24 AM
Hi there,

i noticed a bug in this hack (installed on 3.5.8):

1. forced user to accept forum rules again
2. logged in as this user
3. tried to open a thread
4. the page where user has to accept the rules is opens
5. user can post even if he didn't tick the checkbox. It's enough just to tick the submit-button

As a quick fix I will remove the checkbox since it's useless right now and can even render contraproductive.Kind regards,

Ingress