Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Advanced Rules and User Agreement Hack v2.0.0 Details »
Advanced Rules and User Agreement Hack v2.0.0
Mod Version: 2.0.0, by Mr_Snob (Member) Mr_Snob is offline
Developer Last Online: May 2012 I like it Show Printable Version Email this Page

This thread is in the Modification Graveyard.
vB Version: 3.6.4 Rating: (4 votes - 4.75 average) Installs: 52
Released: 01 Feb 2007 Last Update: Never Downloads: 337
Not Supported DB Changes Uses Plugins Template Edits Additional Files  

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:
  • Unlimited* Rule(s).
  • An Individual Forum can have multi rules agreement.
  • An Individual FILE within your forum can have mutli rules agreement.
  • List All Rules that user has agreed to from his/her profile page "if a url was provided".
  • Edit/Delete Rule(s).
  • Reset Rule(s) Manually or with Cron Job.
  • Rules can use bbcode.
  • Set to show a rule(s) agreement in any selected forum/page (file url) IF:
- User's Usergroup is Y.
- 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.
  • Fully "phrased" so translations are made easy.
Settings in the Admin CP:
  • List Rule(s).
  • Add New Rule(s).
  • Edit / Delete Rule(s).
  • Reset Rule(s).
  • Activate and Inactivate Rule(s)
Screenshots:

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

ABOVE ADD


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

******************************* IN MEMBERINFO TEMPLATE *******************************

FIND


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

ABOVE ADD



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

#############################################################################
############################ EDITS END #############################
#############################################################################


PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN!

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	Rules_Agreement.jpg
Views:	905
Size:	43.5 KB
ID:	59806   Click image for larger version

Name:	List_Of_Rules.jpg
Views:	796
Size:	28.8 KB
ID:	59807   Click image for larger version

Name:	Viewing_Rule.jpg
Views:	749
Size:	32.9 KB
ID:	59808   Click image for larger version

Name:	Agreed_Rules_Memberinfo.jpg
Views:	948
Size:	56.8 KB
ID:	59809  

Click image for larger version

Name:	Rules_Agreement_Admincp.jpg
Views:	617
Size:	18.9 KB
ID:	59810  

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
BLS - addon to RULES AND USER AGREEMENT HACK: rules to selected forum Bolas vBulletin 3.0 Full Releases 21 25 Nov 2006 15:16
BLS - addon to RULES AND USER AGREEMENT HACK: rules to child forum Bolas vBulletin 3.0 Full Releases 0 13 Apr 2005 23:35

  #16  
Old 03 Feb 2007, 19:41
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
More important requests.
First, is it possible to allow (and correctly display) HTML within the rules text?
Second, is it possible to have a list of forum IDs which the rule applies to?
Third, Rules Options - what does the 'Or from File URL' allow us to do and how?
__________________
AVForums.com the UK's largest audio visual home consumer electronics forums. Now using Xenforo because vB5 is not suitable for large forums and vB3 and vB4 are no longer being developed.
Reply With Quote
  #17  
Old 04 Feb 2007, 08:07
amagazi amagazi is offline
 
Join Date: Jan 2007
Uploaded and installed all files perfectly...

But there are no options in AdminCP? I logged in and out multiple times...

Disregard.. Though, you might want to mention that the options do not have their own heading...

Last edited by amagazi; 04 Feb 2007 at 08:32.
Reply With Quote
  #18  
Old 04 Feb 2007, 19:02
Mr_Snob Mr_Snob is offline
 
Join Date: Jan 2004
Real name: HASANN
Thumbs up

Originally Posted by hornstar1337 View Post
I was using the old user agreement hack from way back, and its still installed on my site, and is still working, and im on 3.6.4 was there something that should not be working with the old version that should require me to update now?
overwrite new product with old one
this new version has one feature that is Listing of Rule Pages in the /rules.php

Originally Posted by DPSR View Post
I think i need this cool now but only one question.. what about searh engines bots?? If i create rule for a forum that one have to agree if he/she want to view hacks in that forum but what about search engines?? This hack will block them?
No no!
if you are have vBSeo or Zoints Seo Installed put your Rule Page's URl put it like this www.DOMAIN.com/forum/file.html

also put your RULE PAGE URL with ending .html not .php that working

Originally Posted by Spinball View Post
Nice hack.
Couple of things, though.
First, since there tend to be a number of rules to which the user agrees in order for access to be given to a certain forum (or whatever), in the rules template, I changed the text Number of rules: to Number of rule pages:.
Also, since my rules pages are formatted, in the rulesview template, I changed
<td class="thead" width="100%" align="center">$drule
to
<td class="alt2" width="100%">$drule
thanks for your warning i'll fix it in the next version of this hack

Originally Posted by Spinball View Post
More important requests.
First, is it possible to allow (and correctly display) HTML within the rules text?
Second, is it possible to have a list of forum IDs which the rule applies to?
Third, Rules Options - what does the 'Or from File URL' allow us to do and how?
i believe in next version coming soon this requests

Originally Posted by amagazi View Post
Uploaded and installed all files perfectly...

But there are no options in AdminCP? I logged in and out multiple times...

Disregard.. Though, you might want to mention that the options do not have their own heading...
if i not wrote about settings then do not give settings in the admincp you must that unterstand
thanks all for you guys

Last edited by Mr_Snob; 04 Feb 2007 at 19:10.
Reply With Quote
  #19  
Old 05 Feb 2007, 18:59
pipin's Avatar
pipin pipin is offline
 
Join Date: Feb 2005
the hack reads still 1.1.5 in the plugin management.
and can you add the link to this thread to the title?
__________________
mfg
pipin

Planet 3DNow!
Reply With Quote
  #20  
Old 10 Feb 2007, 20:19
stwilson stwilson is offline
 
Join Date: Dec 2006
Real name: ST
Does anyone have this working with 3.6.4 running on MySQL 5.0.16? I cannot get it to work.
__________________
ST
Reply With Quote
  #21  
Old 11 Feb 2007, 00:57
dutchbb dutchbb is offline
 
Join Date: Dec 2003
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

Last edited by dutchbb; 11 Feb 2007 at 01:10.
Reply With Quote
  #22  
Old 11 Feb 2007, 03:15
DPSR's Avatar
DPSR DPSR is offline
 
Join Date: Aug 2006
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?
Reply With Quote
  #23  
Old 11 Feb 2007, 04:36
Merriweather Merriweather is offline
 
Join Date: Nov 2006
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.

Last edited by Merriweather; 11 Feb 2007 at 04:44.
Reply With Quote
  #24  
Old 11 Feb 2007, 04:47
Merriweather Merriweather is offline
 
Join Date: Nov 2006
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.
Reply With Quote
  #25  
Old 11 Feb 2007, 10:45
whitey06 whitey06 is offline
 
Join Date: Sep 2006
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
Reply With Quote
  #26  
Old 11 Feb 2007, 18:26
Black Widow's Avatar
Black Widow Black Widow is offline
 
Join Date: Mar 2005
thanks.
installed...

i have the same problems with the conditions.
Can it be fixed?
Reply With Quote
  #27  
Old 12 Feb 2007, 00:42
BobbyBig BobbyBig is offline
 
Join Date: Mar 2006
Is there any German translation yet ?

regards
Reply With Quote
  #28  
Old 19 Mar 2007, 06:29
whodah whodah is offline
 
Join Date: Feb 2004
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

in the template 'parse_templates' no matter if the user is in one of the above selected groups or not.

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:
  1. You could compare the output of Rules 1-5 in subsequent Rule checks (Like pesky Rule #14!)
  2. You could enable a 'debug' option which would spit out exactly which rule was violated. I.e. "Rules violated: 1,5,7" letting admins know a bit more while debugging their rules.
HTH!

-Who Dah?
Reply With Quote
  #29  
Old 23 Mar 2007, 10:56
pipin's Avatar
pipin pipin is offline
 
Join Date: Feb 2005
Originally Posted by stwilson View Post
Does anyone have this working with 3.6.4 running on MySQL 5.0.16? I cannot get it to work.
problem is the use of the fieldname repeat, which is a reserved word in mysql 5

http://www.vbulletin.org/forum/showp...&postcount=216
__________________
mfg
pipin

Planet 3DNow!
Reply With Quote
  #30  
Old 30 Mar 2007, 21:35
dbirosel dbirosel is offline
 
Join Date: Feb 2007
Real name: Dante
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 21:19.

Layout Options | Width: Wide Color: