vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Advanced Rules and User Agreement Hack v2.0.0 (https://vborg.vbsupport.ru/showthread.php?t=138113)

Mr_Snob 01-31-2007 10:00 PM

Advanced Rules and User Agreement Hack v2.0.0
 
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!

Snake 02-01-2007 08:01 AM

Wow thanks for this! :D

bashy 02-01-2007 08:07 AM

Hi

I already have uae's version installed, what would you recommend to upgrade please?

redlabour 02-01-2007 08:23 AM

Attention

Ehhmmm .... uploaded all Files and if i now try to import the Product the Importsign [::::::::::::::::::::::::::::::::::::::::::::::] is growing and growing and growing and growing and does never stop .... absolutelly fantastic and never seen effect - this Product does not work.

Mr_Snob 02-01-2007 08:24 AM

Quote:

Originally Posted by bashy (Post 1171894)
Hi

I already have uae's version installed, what would you recommend to upgrade please?

if you are have been allready uae's version installed please upload into forum root directory only rules.php file then you are done hmm you must have the three templates too installed rules,rulesbit and rulesview :confused:

Quote:

Originally Posted by redlabour (Post 1171905)
Attention

Ehhmmm .... uploaded all Files and if i now try to import the Product the Importsign [::::::::::::::::::::::::::::::::::::::::::::::] is growing and growing and growing and growing and does never stop .... absolutelly fantastic and never seen effect - this Product does not work.

What vBulletin version are you trying to install this on?
what version of MySql has your server?

redlabour 02-01-2007 08:27 AM

Quote:

Originally Posted by Mr_Snob (Post 1171906)
What vBulletin version are you trying to install this on?
what version of MySql has your server?

vBulletin 3.6.4 - what else ?? :rolleyes:

mySQL - 4.1.19

Mr_Snob 02-01-2007 08:30 AM

Quote:

Originally Posted by redlabour (Post 1171905)
Attention

Ehhmmm .... uploaded all Files and if i now try to import the Product the Importsign [::::::::::::::::::::::::::::::::::::::::::::::] is growing and growing and growing and growing and does never stop .... absolutelly fantastic and never seen effect - this Product does not work.

has someone the same error???? :eek:

Paul M 02-01-2007 10:56 AM

A number of posts have been removed. Please remember that vb.org is an english only forum, esp in support threads.

Thanks.

projectego 02-01-2007 12:32 PM

Very cool hack. Thanks! ;)

Brew 02-01-2007 03:00 PM

This looks to be a great mod but I do have one question before I click install.

Would this include the rules box when someone registers?

Thanks!


All times are GMT. The time now is 02:37 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01156 seconds
  • Memory Usage 1,762KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete