Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Advanced Rules and User Agreement Hack v2.0.0 Details »»
Advanced Rules and User Agreement Hack v2.0.0
Version: 2.0.0, by Mr_Snob Mr_Snob is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.4 Rating:
Released: 01-31-2007 Last Update: Never Installs: 52
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

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

HTML Code:
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
ABOVE ADD

HTML Code:
<td class="vbmenu_control"><a href="rules.php$session[sessionurl_q]">$vbphrase[rules]</a></td>
******************************* IN MEMBERINFO TEMPLATE *******************************

FIND

HTML Code:
            <if condition="$vboptions['usereferrer']">
ABOVE ADD


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

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

Comments
  #32  
Old 04-09-2007, 08:10 AM
dutchbb dutchbb is offline
 
Join Date: Nov 2003
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I got a database error on all pages saying there is no rules table? I followed the instructions to the letter.

Quote:
Database error in vBulletin 3.6.4:

Invalid SQL:
SELECT * FROM ruleshack
WHERE (fileurl LIKE 'http://forum.dutchbodybuilding.com/index.php' AND exactmatch = 1 )
OR (fileurl LIKE 'http://forum.dutchbodybuilding.com/index.php%' AND exactmatch = 0 ) AND active = 1 ORDER BY ruleid;

MySQL Error : Table 'tijl_forum.ruleshack' doesn't exist
Reply With Quote
  #33  
Old 05-01-2007, 02:49 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the difference between this mod and CYBs Advanced Forum Rules found here.

?
Reply With Quote
  #34  
Old 05-05-2007, 02:14 AM
stwilson stwilson is offline
 
Join Date: Dec 2006
Location: USA
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since I cannot get this working on my own, is anyone interested in installing this for me for a nominal fee??? Mr. Snob????
Reply With Quote
  #35  
Old 05-13-2007, 02:17 AM
Fearlessninja's Avatar
Fearlessninja Fearlessninja is offline
 
Join Date: Jan 2006
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Having a problem making this hack work for child forums....
Reply With Quote
  #36  
Old 05-14-2007, 12:40 PM
ElForro ElForro is offline
 
Join Date: Mar 2006
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've two problems:

- When I check "Include Child Forums", the Rules appears when an Unregistered user tries to enter that forums [and child forums]. I hadn't check that Group [unregistered] to accept the Rules, and it only happens when I turn the "Include Child Forums" option on.

- When I try to enter a forum, the rules are displayed correctly. But when I try to enter directly to a Thread, the Rules and all the page don't loads the CSS file.. It appears that the path is incorrect: Insted of "http://www.domain.com/clientscript/vbulletin_css/style-d219a5c6-00001.css" it's "/clientscript/vbulletin_css/style-d219a5c6-00001.css", that is without the domain name. (I have the CSS to load as a separate file)

Thanks in advance and sorry about my english :$
Reply With Quote
  #37  
Old 06-02-2007, 04:35 PM
pds pds is offline
 
Join Date: Apr 2003
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedGTiVR6 View Post
What is the difference between this mod and CYBs Advanced Forum Rules found here.

?
Main difference is Cyb's does not allow you to specify accepting a rule on a "per forum" basis, but forces the requirement on all forums.
Reply With Quote
  #38  
Old 06-12-2007, 03:54 PM
rmxs rmxs is offline
 
Join Date: Apr 2006
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not Working
Reply With Quote
  #39  
Old 06-12-2007, 05:55 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no info on what's not working specifically?
Reply With Quote
  #40  
Old 06-15-2007, 10:47 PM
stwilson stwilson is offline
 
Join Date: Dec 2006
Location: USA
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stwilson View Post
Since I cannot get this working on my own, is anyone interested in installing this for me for a nominal fee??? Mr. Snob????
Anyone????
Reply With Quote
  #41  
Old 06-16-2007, 04:23 AM
biggeorge's Avatar
biggeorge biggeorge is offline
 
Join Date: Feb 2007
Location: The Great State of Mass!
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfectly for me on 3.6.4

Had a little trouble finding it in the AdminCP... Forums & Moderators | Rules Manager.

I had it up and running with 6 RULES all in the proper forums in about 30-mins. This is EXACTLY what my forum needed.

5 STARS from me. Clicked Installed. Thank you!
Reply With Quote
Reply


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 08:29 AM.


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.04732 seconds
  • Memory Usage 2,324KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_html
  • (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
  • (3)pagenav_pagelink
  • (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