PDA

View Full Version : Rules and User Agreement Hack


uae
03-06-2005, 10:00 PM
Rules and User Agreement Hack
-------------------------------------
Hack Version: 1.0.0
vB-version: 3.0.7
Developer: WwW.UAEWEB.CoM (http://www.uaeweb.com/)
Install-difficulty: Easy


Introduction:

Rules and User Agreement Hack Is an agreement rules systems, that requires user to agree to each individual forum rules within the whole board community ?if applicable? prior to permission them to post a new thread.
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.
List All Rules that user has agreed to from his/her profile page "if a url is provided".
Set to show a rule(s) agreement in any selected forum IF:
- User's Usergroup 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.
Installer that will install all of the templates, phrases, and all database modifications.
Uninstaller included.
Settings in the Admin CP:

List Rule(s).
Add New Rule(s).
Edit / Delete Rule(s).
Activate and Inactivate Rule(s)
Screenshots:

See attachments.


Hack Installation Details:

New files for this Hack: 2
/admincp/newthreadrules.php
/admincp/newthread_install_1_00.php (Delete After Install)
/includes/functions_threadrules.php

New templates for this Hack: 2
forum_newthreadrules
forum_newthreadrules_bit

File-edits: 3
/admincp/index.php
/member.php
/newthread.php

Template-edits: 1
MEMBERINFO

New DB tables for this Hack: 1
threadrules

DB Tables modified for this Hack: 1
user

ADD ON:
1- https://vborg.vbsupport.ru/showthread.php?t=79798
Rules will be applied to (showpost.php, newpost.php, newthread.php, forumdisplay.php, showthread.php) on a selected forum.
2- https://vborg.vbsupport.ru/showthread.php?t=79892
RULES AND USER AGREEMENT HACK so rules will be applied to selected forum and ALSO on CHILD forums.
By Bolas



PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN!


If you like this hack, please be kind and click on "Install this Modification" Link.

wwesn1
03-07-2005, 05:39 PM
can you make them agree to the rules before they can even enter the section of the forum?

uae
03-07-2005, 05:45 PM
can you make them agree to the rules before they can even enter the section of the forum?

No, they have got to click on the New Thread Button.

Basicly, it's Posting New Thread Agreement, not Viewing fourm Agreement.

Allan
03-07-2005, 05:51 PM
Nice hack :)

Red Blaze
03-07-2005, 07:00 PM
Sweet, I like this one. :) I'll install this ASAP.

ChrisBaktis
03-07-2005, 07:22 PM
I will assume that once a member accepts the rules they will no longer see them. Correct?

Polo
03-07-2005, 08:16 PM
Nice :) thanks for sharing ;)

uae
03-08-2005, 02:08 AM
I will assume that once a member accepts the rules they will no longer see them. Correct?
That is correct :smoke:

Alien
03-08-2005, 10:58 AM
Absolutely killer! I'll give this a whirl on one of my sites!

yoyoyoyo
03-08-2005, 11:46 AM
Thanks!

shadiguy1
03-08-2005, 03:04 PM
install flawlessley on Vb 3.0.3 Patche to 07

SnowBot
03-08-2005, 03:07 PM
Great hack :)

SnowBot
03-09-2005, 12:05 AM
OK installed and working as far as i can tell but can we make it so it goes for a reply also and not just a new thread?

Also i have just noticed my agreed rules dont show up in the members profile page, any idea why?

uae
03-09-2005, 06:03 AM
OK installed and working as far as i can tell but can we make it so it goes for a reply also and not just a new thread?

Also i have just noticed my agreed rules dont show up in the members profile page, any idea why?
Adding the Agreement page to the new reply link will need many modifications in files and templates, since there is a quick reply and normal reply page, and I didn't want to do that.
but maybe in a future release :)

I didn't want to have all agreed rules listed in member profile page by default unless you have included a url with that rule when you created it, cos I know there are many administrator "like myself" are going to use this hack for some other purpose, maybe an announcemnt or HowTo's, or just displaying a warning, ..etc, message to someone befor allowing them to post, and I don't think I want to list these "not reall rules" as an agreed rules in that member's profile page.

you can go around it by adding a url there, maybe your website url!

xtreme-mobile
03-09-2005, 04:57 PM
does this work onn vb 3.0.6?

cheers

dean

SilverBoy
03-09-2005, 05:40 PM
Alsalam Alikum

nice work borther ;)

I will install it in my site Inshallah

By the way I have some quesions

I wana use this hack, but want to let my users to see the main rules always maybe I will add a link to it in nave bar, so can I link to a specific rule directly? maybe it sounds like strange, but I really didn't test it yet, so maybe I'll found it stubid question :p

Good Luck brother

uae
03-11-2005, 04:23 PM
does this work onn vb 3.0.6?

cheers

dean

It should.

uae-style
03-12-2005, 10:07 AM
exactly what im looking 4

thank u bro ;)

xtreme-mobile
03-12-2005, 05:16 PM
works great cheers mate

Teegtahn
03-12-2005, 11:26 PM
I would like to see (in a future version) a link in the profile that pops up a window that reads out the rule they have agreed to... Javascript if it could be, to avoid most popup blockers.

As well as the evaluation of BB code (I'm sure its simple, i will look into it myself), as i use BBcode as a replacement for HTML on my forums. (BBCode shortcuts are simpler).

Oh, and I just installed it on 3.0.7 - Works like a dream.

Other then that... *clicks install*

red_baron2000
04-08-2005, 09:32 AM
excellent hack..thank you very much :)

xtreme-mobile
04-09-2005, 07:48 AM
can the hack be set up so...

people have to agreee to the set of rules when they click to download an attachement or if not as soon they enter a particular forum for the first time?

many thanks

dean

xtreme-mobile
04-10-2005, 12:02 PM
any one?

Bolas
04-10-2005, 12:42 PM
I modified the hack to be active in all action in a specified forum (and not only when a thread is created).

If UAE agreed me I can send him my modification to his hack.

xtreme-mobile
04-10-2005, 12:45 PM
that would be good :)

uae
04-11-2005, 07:02 AM
I modified the hack to be active in all action in a specified forum (and not only when a thread is created).

If UAE agreed me I can send him my modification to his hack.
Hey Bolas,

Sure, you can go ahead and post your modification in a new reply here, and I will link the post as an add-on to the hack in the first post.

TTG
04-11-2005, 01:09 PM
does this work onn vb 3.0.6?

cheers

dean

Works with no problems on 3.0.6

Thanks for a really useful hack.

Clicked install

Bolas
04-11-2005, 06:06 PM
Hey Bolas,

Sure, you can go ahead and post your modification in a new reply here, and I will link the post as an add-on to the hack in the first post.
I will post it tonight, after a cinema, two beers and some girls http://www.wellage.net/images/smilies/yikes10.gif

Bolas
04-12-2005, 12:21 AM
2 addon released

rules on selected forum (showthread, forumdisplay, showpost, etc..):
https://vborg.vbsupport.ru/showthread.php?t=79798

rules applied on child forum:
https://vborg.vbsupport.ru/showthread.php?t=79892



bye! https://vborg.vbsupport.ru/

akanevsky
04-13-2005, 09:12 PM
Excellent hack!
/me clicks install

spaghie
05-02-2005, 08:32 PM
Installed on 3.0.7 smoothly. Clicked install! great hack.

webmastershome
05-20-2005, 08:13 PM
hi there,

i install this hack, and add the rule url but it's not show in memberinfo area

http://www.webmastershome.com

Regards
webmastershome

Snitz
05-22-2005, 08:06 PM
so this hack will replace the agreement rules when a new users tries to register which is great
but will it add a hack page too ?

uae
05-23-2005, 03:38 AM
hi there,
i install this hack, and add the rule url but it's not show in memberinfo area
Make sure that you have applied all the modifications correct, Then go to the ADMINCP, add a new rule with "a link", select the desired forum, and make sure that users agree to that rule, then check their profile page.

uae
05-23-2005, 03:43 AM
so this hack will replace the agreement rules when a new users tries to register which is great
but will it add a hack page too ?Nope, this hack has nothing to do with the forum registration agreement.

Milchi
06-27-2005, 04:35 PM
First, sorry for my bad english, German user u know :-)

Ok first, GREAT Hack ! Congrats for this

To my suggestion:

Would it be possible to do a "accepted rule reset" if i change a rule? We have "trade forums" and change sometimes the rules so it would be nice, if they change, to automatically have the users to re-accept them.

Milchi
07-02-2005, 04:34 PM
And another Question coming. Is it possible to add One (1) rule for multiple forums which are NOT in the same Category ?

slim cutty
07-11-2005, 06:58 AM
The hack was working perfectly until I noticed it missing in my admincp...
I could not get it back so I did an uninstall and I tried to upload a fresh hack again. We'll for some reason it continues to show that the hack is still installed eventhough I uninstalled the thing. Back and forth back and forth...still the install file will not let me upload the needed queries/tables and templates..

Now I am receiving Database Errors when ever I try to enter a forum... Help Please...

thanks

slim cutty
07-11-2005, 07:50 AM
okay, I succeeded in uninstalling the hack entirely... now my problem is getting the hack back up again...

this message is what I continue to receive in admincp...

Welcome to the installer of Rules and User Agreement Hack for vBulletin 3.x.x by WwW.UAEWEB.CoM

Step 1: Insert Hack Phrases
Step 2: Insert Hack Templates
Step 3: Run Queries


Rules and User Agreement Hack already Installed. Plz Uninstall first!

ALREADY UNINSTALLED!@!#$!?

Milchi
07-11-2005, 12:27 PM
Drop the "agreedrule" column from your user table. This should make u able to install it again.

slim cutty
07-11-2005, 04:06 PM
I think that did it thanks to you, you must have had this similar problem? Was it a bug in the uninstall file? He should have updated that file. Because of it my Database crashed and gave my webhosts hell...lol (not really in a laughing matter though).

Thank you very much though

Milchi
07-11-2005, 04:13 PM
I think that did it thanks to you, you must have had this similar problem? Was it a bug in the uninstall file? He should have updated that file. Because of it my Database crashed and gave my webhosts hell...lol (not really in a laughing matter though).

Thank you very much though

Hi no problem at all.

Didn't uninstall the hack till now but i will review the uninstall script :)

Update: yes it IS a bug in uninstall Script. If the First User returned from the statement down there has already agreed rules, then it won't work:

$xx = $DB_site->query_first("select * from " . TABLE_PREFIX . "user");
if ($xx[agreedrule]=='')
$DB_site->query("ALTER TABLE " . TABLE_PREFIX . "user DROP agreedrule");

It should be a check for all columns in the table and a search vor "agreedrule" column. Sorry i am not familiar with mysql syntax for this :(

Wetcanvas!
07-11-2005, 07:29 PM
We have been up for a while and need to change our user agreement for existing users. We need all existing users who log in to re-read and agree to the new rules of the site before they can continue to do anything. Can this hack be used for this?

Milchi
07-12-2005, 07:00 AM
We have been up for a while and need to change our user agreement for existing users. We need all existing users who log in to re-read and agree to the new rules of the site before they can continue to do anything. Can this hack be used for this?

This hack isn't designed for "Forum Rules" it's for rules specific to some of your Forums.

But use search u will find something u could use ;)

dai-kun
07-14-2005, 12:57 AM
Topics are in ABC Order This forum is for Hosted LINKS only and also, it can be for other services similar to this. THIS IS HOW IT WORKS The Subject of the post MUST contain only 1 (one) subject.
This is how the rules show up.
I want it to look like this though from the screen shots:

Topics are in ABC order.

This forum is for Hosted LINKS only and also, it can be for other services similar to this.

THIS IS HOW IT WORKS The Subject of the post MUST contain only 1 (one) subject

Im using another theme, can that be a problem?

Milchi
07-14-2005, 06:06 PM
This is how the rules show up.
I want it to look like this though from the screen shots:



Im using another theme, can that be a problem?

hm ... insert "< br/ >" into the rules? (without spaces)

You have to enter them in HTML Code :)

csidlernet
07-20-2005, 09:07 AM
thankyou very much

Baylyns
08-06-2005, 08:15 AM
Hello, I installed this hack which functions very well, a thing nevertheless it is that maintaining when the profile of the members is looked at I have a white page and thus more infos. solution? Thank you

Snake
08-06-2005, 08:31 AM
Are you planning to upgrade to 3.5 RC2?

uae
08-06-2005, 09:35 AM
Are you planning to upgrade to 3.5 RC2?

Sure.

yahoooh
08-06-2005, 11:55 AM
is there a hack for using private message that make the same works like this hack for thread
when a member for a first time wanna create new private ,he should agree for custome rules and agreement
and i hope this also be for arcade and vbgallery

GoTTi
08-07-2005, 01:56 AM
is there a way to make it where this thing makes users re-validate themselves every week or XXX amount of days/time?

GoTTi
08-07-2005, 02:04 AM
i put this thing on 308 and not working. any ideas?

yahoooh
08-10-2005, 01:25 AM
is there a hack for using private message that make the same works like this hack for thread ????????????????

uae
08-10-2005, 03:55 AM
is there a hack for using private message that make the same works like this hack for thread ????????????????
I have no idea if there was something would do the same thing for PM, but maybe the next release will have such option.

GoTTi
08-21-2005, 03:34 PM
does this work with 308??

yj_enquirer
08-28-2005, 09:47 AM
Thanks uae.. just got it installed on v3.0.8 and works great...this is a wunnerful hack!!!

But yes, a useful addition would be an ability to user's to re-agree to the rules you have set out in the forum..

I would go about doing this, but just got no clue of where to start from. Would setting the "agreedrules" column to NULL in the "users" database be the thing to do?

Dennis B
09-08-2005, 11:44 PM
Very useful, thanks! Working perfectly on 3.0.8.

dethfire
09-16-2005, 08:22 PM
any update on 3.5? this hack is great!

lewisbee
09-25-2005, 09:46 AM
this doesn't work for me :(

uae
10-06-2005, 05:50 AM
for 3.5 https://vborg.vbsupport.ru/showthread.php?t=97699 :)

MajorFm.com
10-07-2005, 04:18 PM
works on 3.0.3 ok?

uae
10-07-2005, 08:46 PM
works on 3.0.3 ok?
I haven't tried it with 3.0.3 but I think it should.

taydu
11-04-2006, 05:18 PM
nice hack can this same idea be use to force user read their PM from Admin before they can continue using the forum ????

redraider
07-28-2007, 02:09 AM
Is this hack applicable for 3.6.7? Please help!

Arrangements
07-29-2007, 09:19 PM
I doesn't work for 3.6.8 - Cannot find

construct_nav_group("$vbphrase[threads] &amp; $vbphrase[posts]");

In admincp index.php

jasculs
08-13-2007, 12:46 AM
Can someone port this for 3.6.x

ColdSpirit
08-13-2007, 01:32 AM
yeah.. it would be very usefull for 3.6.8.... anyone please?

Thank you in advance!!

ColdSpirit
08-21-2007, 08:13 PM
Anyone is supporting this mod? and anyone can port this mod to vb3.6.8? thank you again!

gatman
08-25-2007, 11:39 PM
yes i agree i misss this hack

rayphua
09-12-2007, 12:40 PM
Didn't work for 3.6.7pl1...error faced while running install... Please bring this mod back, it's great!

LauraM
10-11-2007, 12:43 AM
I've just updated to 3.6.8 also, and I would love to be able to install this hack! I NEED this hack!

Alphawolf83
10-11-2007, 03:44 PM
I've just updated to 3.6.8 also, and I would love to be able to install this hack! I NEED this hack!
Same here. :(

Harley D
12-20-2007, 08:08 PM
Ditto

joe1989
04-28-2008, 09:22 PM
I'm having difficulty installing this mod...

Here's the problem...

In the README file, it instructs to upload a few PHP files, which I have done correctly to the admincp and the includes directories. The next listed step is to execute. However, when I go to the page to "execute" (http://www.mydomain.com/(yourforums)/admincp/newthread_rules_install_1_00.php), nothing happens. I know I have the address typed correctly, because I do get a page with a blueish background, and on the upper right corner, it says "Rules and User Agreement Hack" against a lighter blueish background, but there is nothing else on the page.

What happened? I even went ahead and did all the file edits as described, but still, nothing works, so I'm assuming it's because of the fact that I'm not actually installing anything...

Also, on the README file, it says "new files: 3, new templates: 2, ..." etc., but what are the new templates? Could this be the reason that it's not working quite right for me?!?

Someone please help me...I'll appreciate it!!

Thanks...

treyb
04-29-2008, 12:34 AM
I get
Fatal error: Call to a member function query_first() on a non-object in /home/arudis/public_html/gfxlounge.com/admincp/newthread_rules_install_1_00.php on line 138

Desesperao
05-05-2008, 08:45 PM
Please, can anyone update this hack?

Desesperao
10-20-2008, 08:25 PM
PLEASEEEEEEEE, I need this hack.

Can someone update it?

Thanks.

Desesperao
10-28-2008, 08:34 PM
Please, don't forget this hack.

Desesperao
11-09-2008, 09:07 AM
Well, you can see what "someone" has done with the only one who wanted to update this hack:

http://vbenhancer.com/index.html