Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Rules and User Agreement Hack Details »»
Rules and User Agreement Hack
Version: 1.1.5, by uae uae is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.5.4 Rating:
Released: 10-05-2005 Last Update: 11-08-2005 Installs: 278
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

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:
  • 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 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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #162  
Old 06-01-2006, 03:30 PM
webgroup webgroup is offline
 
Join Date: May 2006
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just by installing the product I got this error in the whole forum:

Fatal error: Cannot redeclare check_rulesneeded() (previously declared in /home/xxxx/public_html/xxxxx/global.php(503) : eval()'d code:80) in /home/xxxxxx/public_html/xxxxxx/global.php(503) : eval()'d code on line 548

PLUS, i got this error message on my email:

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT * FROM vbnewruleshack
WHERE (fileurl LIKE 'http://www.xxxxxxx.net/xxxxxx/member.php?s=&u=10538' AND exactmatch = 1 )
OR (fileurl LIKE 'http://www.xxxxxx.net/xxxxxxx/member.php%' AND exactmatch = 0 ) AND active = 1 ORDER BY ruleid;

MySQL Error : Table 'XXXX.vbnewruleshack' doesn't exist Error Number : 1146
Date : Thursday, June 1st 2006 @ 12:25:58 PM
Script : http://www.xxxxxxxxx.net/xxxx/member.php?s=&u=10538



I'm running 3.5.4, any ideas???
Reply With Quote
  #163  
Old 06-04-2006, 10:06 AM
imranbaig imranbaig is offline
 
Join Date: Sep 2005
Location: India
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a Great Hack!
Thank you very much m8
Reply With Quote
  #164  
Old 06-04-2006, 03:01 PM
webgroup webgroup is offline
 
Join Date: May 2006
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webgroup
Just by installing the product I got this error in the whole forum:

Fatal error: Cannot redeclare check_rulesneeded() (previously declared in /home/xxxx/public_html/xxxxx/global.php(503) : eval()'d code:80) in /home/xxxxxx/public_html/xxxxxx/global.php(503) : eval()'d code on line 548

PLUS, i got this error message on my email:

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT * FROM vbnewruleshack
WHERE (fileurl LIKE 'http://www.xxxxxxx.net/xxxxxx/member.php?s=&u=10538' AND exactmatch = 1 )
OR (fileurl LIKE 'http://www.xxxxxx.net/xxxxxxx/member.php%' AND exactmatch = 0 ) AND active = 1 ORDER BY ruleid;

MySQL Error : Table 'XXXX.vbnewruleshack' doesn't exist Error Number : 1146
Date : Thursday, June 1st 2006 @ 12:25:58 PM
Script : http://www.xxxxxxxxx.net/xxxx/member.php?s=&u=10538



I'm running 3.5.4, any ideas???
anybody?
Reply With Quote
  #165  
Old 06-05-2006, 08:44 PM
Essam Essam is offline
 
Join Date: Aug 2003
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there way or script to see who agreed for the rule in individual page ?
Reply With Quote
  #166  
Old 06-05-2006, 10:19 PM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Essam
is there way or script to see who agreed for the rule in individual page ?
Everyone who can access that forum has agreed to it. A list wouldn't be needed as that would be redundant :bunny:
Reply With Quote
  #167  
Old 06-08-2006, 04:13 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will it work in the Future with vBulletin 3.6 ?
Reply With Quote
  #168  
Old 06-09-2006, 12:06 AM
TheHeartSmasher TheHeartSmasher is offline
 
Join Date: Feb 2006
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT * FROM vbruleshack 
			WHERE (fileurl LIKE 'http://www.teamcronus.net/' AND exactmatch = 1 ) 
			OR (fileurl LIKE 'http://www.teamcronus.net/%' AND exactmatch = 0 ) AND active = 1 ORDER BY ruleid;

MySQL Error  : Table 'xxxxxxx.vbruleshack' doesn't exist
Error Number : 1146
Date         : Thursday, June 8th 2006 @ 05:54:56 PM
Script       : http://www.teamcronus.net/
Referrer     : http://www.teamcronus.net/forums/mem...name&order=asc
IP Address   : xxxxxxxxxxx
Username     : TheHeartSmasher
Classname    : vb_database
This is the error I get

Do you have a sql statment that I can use to create the table, or if anyone has one please post it.for the vbruleshack table.

I see two versions this one and a version 1.1.1 that always comes back even after I uninstall.
Reply With Quote
  #169  
Old 06-09-2006, 08:36 PM
webgroup webgroup is offline
 
Join Date: May 2006
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webgroup
Just by installing the product I got this error in the whole forum:

Fatal error: Cannot redeclare check_rulesneeded() (previously declared in /home/xxxx/public_html/xxxxx/global.php(503) : eval()'d code:80) in /home/xxxxxx/public_html/xxxxxx/global.php(503) : eval()'d code on line 548

PLUS, i got this error message on my email:

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT * FROM vbnewruleshack
WHERE (fileurl LIKE 'http://www.xxxxxxx.net/xxxxxx/member.php?s=&u=10538' AND exactmatch = 1 )
OR (fileurl LIKE 'http://www.xxxxxx.net/xxxxxxx/member.php%' AND exactmatch = 0 ) AND active = 1 ORDER BY ruleid;

MySQL Error : Table 'XXXX.vbnewruleshack' doesn't exist Error Number : 1146
Date : Thursday, June 1st 2006 @ 12:25:58 PM
Script : http://www.xxxxxxxxx.net/xxxx/member.php?s=&u=10538



I'm running 3.5.4, any ideas???

Anybody?
Reply With Quote
  #170  
Old 06-12-2006, 03:52 AM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Strange new error on my website.... Trying to figure out is this mod is related...

Today I reformated my forums so that all my forums are now children under one form and the main reason I did this was to allow me to use this rules hack on all of my forums when I update my Code Of Conduct....

Well, I made the change this morning and I created a new rule for my "Updated Code" and I applied it to my new parent forum and all children (ALL FORUMS ON MY WEBSITE).

Well, after doing this I have got more then a few complaints about the following error:

Fatal error: Call to undefined function: preg_replace() in /home/MYSERVER/public_html/includes/class_core.php on line 1871

Following is the code from the includes file:


PHP Code:
    function strip_sessionhash(&$string)
    {
        
$string preg_replace('/(s|sessionhash)=[a-z0-9]{32}?&?/'''$string);
        return 
$string;
    } 
I have not turned off the rule yet as I am trying to see if there is any pattern to who is getting the error. I am also curious if there would be a problem if I have a rule that affects the parent and childern if one of the children has a second rule that also applies to it?

I have tried to reproduce the error on my computers with no luck but I have heard from half a dozen people that have had issues... Several of those are on AOL of all places so who knows...
Reply With Quote
  #171  
Old 06-17-2006, 09:45 PM
SupremeWeapon SupremeWeapon is offline
 
Join Date: Jan 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesnt work for me. doesnt pull up any type of rules page when the selected area is reached.
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 04:48 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05112 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete