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
  #212  
Old 09-10-2006, 06:10 AM
heyitsjeremy heyitsjeremy is offline
 
Join Date: May 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod. but could a countdown timer be done for this as well ? so before anyone can proceed, he/she has to wait for the timer to countdown ?

and other then making it to appear in different forums/sub forums, could i make it appear for specific threads ?
Reply With Quote
  #213  
Old 09-16-2006, 12:07 PM
alfaowner alfaowner is offline
 
Join Date: Jul 2003
Location: London
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 1996 328ti
Yes it should. I use this before someone can view myforum/newthread.php?do=hpde
Also check your usergroups.
Thanks for the reply 1996 328ti,

What would I check in usergroups exactly? Sorry for being a bit dim here.
Reply With Quote
  #214  
Old 09-16-2006, 04:57 PM
Kriminal's Avatar
Kriminal Kriminal is offline
 
Join Date: Dec 2004
Location: Buenos Aires
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by moonclamp
My webhost recently upgraded our version of mySQL to 5.0.21

Ever since then I have been getting the following error email:

It doesn't seem to affect anyone, just getting loads of emails telling me about the error.

None of my rules reset themselves, is it safe to just turn off the cron?
The word repeat is reserved for MySQL 5, and cannot be used as field name
http://dev.mysql.com/doc/refman/5.0/...ved-words.html

I'm trying to bypass this error renaming the field name or doing something with the query; when I get any solution I'll post it here.
Reply With Quote
  #215  
Old 09-16-2006, 05:30 PM
Simplicity Simplicity is offline
 
Join Date: Jun 2004
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What would need to be edited for version 3.6, from what I can see the ruleshack table wouldnt be created, any other problems in the other files?
Reply With Quote
  #216  
Old 09-17-2006, 10:16 AM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working fine with 3.6.0 using https://vborg.vbsupport.ru/showpost....&postcount=208

Laters
Reply With Quote
  #217  
Old 09-18-2006, 11:22 AM
Kriminal's Avatar
Kriminal Kriminal is offline
 
Join Date: Dec 2004
Location: Buenos Aires
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simplicity
What would need to be edited for version 3.6, from what I can see the ruleshack table wouldnt be created, any other problems in the other files?
I think it wolud be the same problem: "repeat" could not be a field name in MySQL 5
I finally made a modification to original plugin, changing repeat for repeated everywhere it appears.
PLEASE, backup before using this. It's working for me, but it doesn't means that it would work for everybody.
Reply With Quote
  #218  
Old 09-18-2006, 06:13 PM
alfaowner alfaowner is offline
 
Join Date: Jul 2003
Location: London
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what can be checked if it is not protecting forum/classifieds/index.php

many thanks
Reply With Quote
  #219  
Old 09-22-2006, 09:02 AM
nimonogi nimonogi is offline
 
Join Date: Sep 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kriminal
I think it wolud be the same problem: "repeat" could not be a field name in MySQL 5
I finally made a modification to original plugin, changing repeat for repeated everywhere it appears.
PLEASE, backup before using this. It's working for me, but it doesn't means that it would work for everybody.
The installation process was successfull but when i'm trying to Add New Rule i'm getting a mysql error.

Code:
Database error in vBulletin 3.6.1:

Invalid SQL:
INSERT INTO ruleshack 
  	  			(forumid, ruletitle, ruletext, ruleurl, firstnewthread, groupids, memberids, userids,
  	  			 usernames, postmore, postless, joindateafter, joindatebefore, 
  	  			 lastactiveafter, lastactivebefore, lastpostafter, lastpostbefore, 
				 conditions, allowbbcode, active, repeated, childforum, newthread, newreply, viewforum, fileurl, exactmatch) 
  	  			 values ('6', 'Text', 'Text[/b]', '', '0', 
  	  			 '2', '', '', '', '0', 
  	  			 '10', UNIX_TIMESTAMP(''), 
  	  			 UNIX_TIMESTAMP(''), UNIX_TIMESTAMP(''), 
  	  			 UNIX_TIMESTAMP(''), UNIX_TIMESTAMP(''), 
 	  			 UNIX_TIMESTAMP(''), '1', '1', '1', '1', '1', '1', '0', '0', '', 
 	  			 '0');

MySQL Error  : Unknown column 'repeated' in 'field list'
Error Number : 1054
Date         : Friday, September 22nd 2006 @ 05:55:25 AM
Script       : http://www.domain.com/admincp/rulesagreement.php?do=submitrule
Referrer     : http://www.domain.com/login.php?do=login
IP Address   : ***
Username     : ***
Classname    : vb_database
Reply With Quote
  #220  
Old 09-22-2006, 10:46 AM
Kriminal's Avatar
Kriminal Kriminal is offline
 
Join Date: Dec 2004
Location: Buenos Aires
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nimonogi
The installation process was successfull but when i'm trying to Add New Rule i'm getting a mysql error.

Code:
Database error in vBulletin 3.6.1:

Invalid SQL:
INSERT INTO ruleshack 
  	  			(forumid, ruletitle, ruletext, ruleurl, firstnewthread, groupids, memberids, userids,
  	  			 usernames, postmore, postless, joindateafter, joindatebefore, 
  	  			 lastactiveafter, lastactivebefore, lastpostafter, lastpostbefore, 
				 conditions, allowbbcode, active, repeated, childforum, newthread, newreply, viewforum, fileurl, exactmatch) 
  	  			 values ('6', 'Text', 'Text[/b]', '', '0', 
  	  			 '2', '', '', '', '0', 
  	  			 '10', UNIX_TIMESTAMP(''), 
  	  			 UNIX_TIMESTAMP(''), UNIX_TIMESTAMP(''), 
  	  			 UNIX_TIMESTAMP(''), UNIX_TIMESTAMP(''), 
 	  			 UNIX_TIMESTAMP(''), '1', '1', '1', '1', '1', '1', '0', '0', '', 
 	  			 '0');

MySQL Error  : Unknown column 'repeated' in 'field list'
Error Number : 1054
Date         : Friday, September 22nd 2006 @ 05:55:25 AM
Script       : http://www.domain.com/admincp/rulesagreement.php?do=submitrule
Referrer     : http://www.domain.com/login.php?do=login
IP Address   : ***
Username     : ***
Classname    : vb_database
If you have installed this hack previously, yo must alter table manually and change field repeat as repeated.
You may run this query:

Code:
alter table `ruleshack` change `repeat` `repeated` smallint (1)  DEFAULT '0' NOT NULL
Reply With Quote
  #221  
Old 09-22-2006, 10:54 AM
nimonogi nimonogi is offline
 
Join Date: Sep 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot!
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 09:57 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.05447 seconds
  • Memory Usage 2,319KB
  • 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
  • (3)bbcode_code
  • (5)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
  • (1)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