The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Advanced Rules and User Agreement Hack v2.0.0 Details »» | |||||||||||||||||||||||||||
Advanced Rules and User Agreement Hack v2.0.0
Developer Last Online: May 2012
This modification contains a security vulnerability, you are hereby advised to uninstall until further notice.
- vBulletin.org Staff Advanced Rules and User Agreement Hack v2.0.0 ------------------------------------------------------------ This Hack is Port of UAE's Rules and User Agreement Hack. And I have this one together combined with my old "Rules Hack v1.5" Hack Version: 2.0.0 vB-version: 3.6.4 Developers: UAE and Hasann Install-difficulty: Easy Port of: Rules and User Agreement Hack Requested Here: Hasann was wondering if you and uae who wrote the Rules and User Agreement Hack could get together and combine your modifications into one package? Introduction: Advanced 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. Whats New in this Port Hack?: List of all Rules shows you in /rules.php 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 5 Plugins, and 60 Phrases New files for this Hack: 4 /rules.php /admincp/rulesagreement.php /includes/cron/cron_ruleshack.php /includes/xml/cpnav_rulesagreement.xml New templates for this Hack: 5 rules rulesbit rulesview ruleshack_rules ruleshack_rulesbit File-edits: 0 Template-edits: 1 MEMBERINFO navbar 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 ################################################## ########################### ############################## TEMPLATE EDITS ############################### ################################################## ########################### ******************************* IN NAVBAR TEMPLATE ******************************* FIND HTML Code:
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td> HTML Code:
<td class="vbmenu_control"><a href="rules.php$session[sessionurl_q]">$vbphrase[rules]</a></td> FIND HTML Code:
<if condition="$vboptions['usereferrer']">
HTML Code:
<!-- [START HACK='Rules and User Agreement' by UAE AND HASANN VERSION='2.0.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' by UAE AND HASANN VERSION='2.0.0' CHANGEID= 1 ] --> ############################ EDITS END ############################# ################################################## ########################### PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! Supporters / CoAuthors Show Your Support
|
Comments |
#22
|
|||
|
|||
Nope.... I'm having database errors everywhere... did all steps including importing the product.
MySQL Error : Table 'forum.ruleshack' doesn't exist Error Number : 1146 vb 3.6.4 php 5.2.0 MySQL Version 5.0.15-standard |
#23
|
|||
|
|||
I'm having exact same error as dutchbb is facing but i get while adding a rule not during installation of the hack .. any sol?
|
#24
|
|||
|
|||
I installed this modification and haven't found it to do anything.
I set it to require agreement to a rule when posting for the first time to a particular forum. Made sure it was active, the proper forum and usergroup were set, etc. When to test it and it let me post with no mention of rules at all. The problem is when you use the conditionals, it says black fields will be ignored. However, if you don't put anything in the "posts are greater than or equal" to or the "posts are less than" fields, they are automatically set to 0. Therefore, it can't work -- no one has both posts greater than AND less than 0. Once I put a large number in the "posts are less than" field it worked, but it should allow that field to be blank. |
#25
|
|||
|
|||
Another issue -- even though I have the rule set to require agreement upon new thread or new post, it only asked the user to agree the first time. Seems if I have it set to require agreement on new post, it should be every new post, correct?
Also, in order for it to have a link in the member profile, the rules must have their own page. However, it should be able to link to a page generated with the rule content as entered, shouldn't it? We shouldn't have to maintain a separate page with the same content for the sake of linking. Finally, is it possible to make the rules that a user agreed to visible only to select usergroups, such as moderators and administrators and then the person who agreed to them? I don't think everyone needs to see that info. |
#26
|
|||
|
|||
Im getting the following error when trying to import the product:
"Fatal error: Cannot use object of type mysqli_result as array in /var/www/mysite.com/forum/admincp/plugin.php(1941) : eval()'d code on line 35" Any suggestions? Thanks |
#27
|
||||
|
||||
thanks.
installed... i have the same problems with the conditions. Can it be fixed? |
#28
|
|||
|
|||
Is there any German translation yet ?
regards |
#29
|
|||
|
|||
First off - thanks for the add-on Mr_Snob!
It appears that Rule #14 gets priority over the group tests (I.e. 1-5). For instance, I have a rule enabled for "OR from File URL" with the Forum drop down box set to "Destination Forum" and all options beneath it enabled except "URL Exact Match" which is set to "No". (Incidently, I have the URL set to http://www.mydomain.com/showthread.php) My only "User & Usergroup Options" selections are in the "Primary Usergroup" choices. Rule #14 then gets a: Code:
$flag = 1; $condflag = 1; This would explain some of the issues people were having in version 1.5 of the rules being applied to all usergroups instead of just the ones selected. I did a kludge to get by... (Basically did another check against the Anonymous usergroup.) But at first glance, a more proper fix may be to combine rule #14 w/ rule 1-5? Or another approach might be to store $flag as an array of violations rather than a boolean. If one did that, you'd have two benefits:
-Who Dah? |
#30
|
||||
|
||||
Quote:
https://vborg.vbsupport.ru/showpost....&postcount=216 |
#31
|
|||
|
|||
It works great for me and i'm using 3.6.5. Got a problem though, i want to set a category because all the forums under the category i want to have that one rule i set.
Basically, i have a classified section broken down to seperate forums. I want that one set rule i created to be applied to the sections. What do i do? Thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|