![]() |
Rules and User Agreement Hack
This modification currently contains a vulnerability. You are hereby advised to disable this modification until such time that the author provides a fix.
- vBulletin.org Staff Rules and User Agreement Hack------------------------------------- Hack Version: 1.1.5 vB-version: 3.5 Developer: WwW.UAEWEB.CoM Install-difficulty: Easy Port of: https://vborg.vbsupport.ru/showt...threadid=77666 Introduction: Rules and User Agreement Hack Is an agreement rules systems, that requires user to agree to each individual forum or/and pages rules within the whole board community ?if applicable? prior to permission them to different action (Viewing a Forum, Posting New Thread for the first time, Posting New Thread, Posting Reply). This will limit the forum breaches that occur often due to unawareness of the rules and agreement. This shall automate the manual procedures that are followed by users to read the ?rules and agreement? and will enforce to some extent the users to be aware of rules in place. Moreover this will eliminate the options of any denial by certain users of not being aware of ?rules and agreements? being in place for the desired forum. This can also be used as alerts, broadcasts, messages and tutorials? etc to certain individual, multi users or groups. Features:
- User's Additional Usergroups is Y. - User's User Id is X. - User's User Name is XXX. - User's first time posting a new thread in this forum. - User's has posts greater than x posts. - User's has posts less than x posts. - User's Join Date is After (yyyy-mm-dd). - User's Join Date is Befor (yyyy-mm-dd). - User's Last Activiy is After (yyyy-mm-dd). - User's Last Activiy is Befor (yyyy-mm-dd). - User's Last Post is After (yyyy-mm-dd). - User's Last Post is Befor (yyyy-mm-dd). * Can Use Conditionals.
See attachments. Hack Installation Details: 1 Product XML with 3 Plugins, and 45 Phrases New files for this Hack: 3 /admincp/rulesagreement.php /includes/cron/cron_ruleshack.php /includes/xml/cpnav_rulesagreement.xml New templates for this Hack: 2 ruleshack_rules ruleshack_rulesbit File-edits: 0 Template-edits: 1 MEMBERINFO New DB tables for this Hack: 1 ruleshack DB Tables modified for this Hack: 1 user How to Install: To install this hack, simply download the zip file, Unzip it to a directory on your computer and follow the steps from README.txt History: 1.0.0 Initial Version for vBulletin 3.5 1.1.0 Added Rule(s) from URL Fixed typo in Phrase 1.1.1 Fixed bug with new registration -> to upgrade, import product-rulesagreement.xml and set Allow Overwrite to yes 1.1.2 Fixed bug with Reseting Rules every 12 hours -> to upgrade, import product-rulesagreement.xml and set Allow Overwrite to yes 1.1.3 Fixed bug with with TABLE_PREFIX missing -> to upgrade, import product-rulesagreement.xml and set Allow Overwrite to yes 1.1.4 Fixed bug with with Template / memberinfo Agreed Rules List -> to upgrade, import product-rulesagreement.xml and set Allow Overwrite to yes 1.1.5 Fixed bug with this & this -> to upgrade, import product-rulesagreement.xml and set Allow Overwrite to yes PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack, please be kind and click on https://vborg.vbsupport.ru/ :) |
WOW this looks great, i will give this a try. Thanks for your efforts :)
|
Ive been looking for something like this for quite a while. Thanks!
There is just one rule hack I need, and that is a quiz hack when you register for the forum to quiz you if you have read the rules. |
VERY interesting hack... problem is when I try to import the product I get this error and I have no clue what is wrong (already installed more products, without problems :S)
Fatal error: Cannot use object of type mysqli_result as array in admincp\plugin.php(1226) : eval()'d code on line 35 |
Can this be edited so it records the people who have signed the contract and when.
|
Quote:
|
/me installs
|
Quote:
|
Quote:
For the date of when the user has signed, I think that can be easly added, I'll need some time tho. |
wow this one has it all
installed here :) |
AWESOME hack, thanks!
|
great hack thank just what i needed :)
|
will this hack allow you to set the rules to show before they enter the specific forum rather than when they try to post etc?
on the VB 3.0 version you did there was a addon which done this, is this standard now? regards dean |
Quote:
|
great will be installing this then :D
|
Found a typo :)
"When Viewing Froum" under Rules Options |
Quote:
|
what an absolutely amazing bloody ****ing brilliant hack
well done uae *INSTALLED* |
would this mod have anything kind of modification to the registration process... When a user tries to register on my site and they click on the sites rules box and hit ok it gives them this error
You have chosen not to accept the forum rules, so registration can not continue. Click here to return to the main forums page, or click the 'Back' button on your browser if you now want to agree with the forum rules |
One problem I have found, on my custom skin when I add
<!-- [START HACK='Rules and User Agreement' AUTHOR='WwW.UAEWEB.COM' VERSION='1.1.0' CHANGEID= 1 ] --> <if condition="$agreedrules"> <fieldset class="fieldset"> <legend>$vbphrase[ruleshack_agreed]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td> <phrase 1="$userinfo[username]">$vbphrase[ruleshack_x_has_agreed_to_the_following_rules]</phrase> </td> </tr> $agreedrules </table> </fieldset> </if> <!-- [END HACK='Rules and User Agreement' AUTHOR='WwW.UAEWEB.COM' VERSION='1.1.0' CHANGEID= 1 ] --> To the member info it doesnt show above the referrals at all. I have my agreement to reset every 12 hours too if that helps |
Quote:
|
I uninstalled this mod so now i can have users register again, so there is definitially some kind of issue there
Quote:
|
@hbalagh1 url to what exactly? a file, txt file......
|
url to your rules page (from what i understand) im not using that feature
|
errr do you mean the forum url or an outside page?
|
this isn't my mod so i really don't know, im guessing it would be something like yourdomain.com/rules.php
|
have you checked to see if you can have new registrations after adding this hack, cause i had to uninstall it
|
just checked & yes i have the same problem, damn :(
|
glad it wasn't just me :(
Hope it gets fixed soon so i can add it back :) |
This is really great hack. I'll try it when uae fix bugs mentioned above. Thanks bro.
|
Sorry for that,
Problem been fixed, just import the latest product-rulesagreement.xml from the zip file and set Allow Overwrite to YES. |
When I attempt to reset a rule I get the following error message:
Warning: Cannot modify header information - headers already sent by (output started at /data/websites/forums.freddyshouse.com/includes/adminfunctions.php:236) in /includes/functions.php on line 2346 Warning: Cannot modify header information - headers already sent by (output started at /data/websites/forums.freddyshouse.com/includes/adminfunctions.php:236) in /includes/functions.php on line 2349 but the rule IS reset. Also, can you explain the following option and provide an example (I'm confused, just can't get the rule listed in memberinfo) Rule's Page URL (Optional) If you leave it empty, Rule will not be listed in MEMBRIFNO. Many thanks. |
Quote:
Regarding Rules Page URL Now, if you add a url in that field, and a user submit to agree on the rule, you will be able to see the rule tilte with a link to the rules page if there was one in his/her profile page. The idea behind this is that you may want to add a rule but you don't want others to see what poeple has agreed on unless you use the url field. |
Is the rules url meant to be the forums URL or a url to a php/html rules page?
|
Quote:
Leaving that field empty, will not list the rules in the member profile page even if they submit to agree on the rules. Think of it as an option weather you want others to see what rules a specific user has agreed on when viewing their profile page. But if you were talking about the from File URL field which is at the very end of the Add New Rule Page in ADMINCP, then that would be the page you want to show the rules at whenever a user try to view it. |
Thank you... all works perfectly now!
Great job uae! :) |
Seems to be a problem with the 12 hour reset now, after the 12 hours it asks you again to sign the rules, you agree... then instead of letting you continue viewing threads it keeps asking for you to sign the rules again. Any ideas? To me it seems to be a cron issue.
|
Quote:
|
yes i did
|
hi people,
i get this MySQL error while trying to add the product XML Quote:
|
All times are GMT. The time now is 04:52 PM. |
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:
|