![]() |
Require Users to Sign a Contract Before Posting in an Individual Forum
This is a port of this mod:
https://vborg.vbsupport.ru/showthread.php?t=76835 This little mod forces users to read and sign a "contract" before it allows them to post in certain forums of your choosing. It also allows you to "ticket" users who break your forum rules. After 3 tickets, the user can no longer post in the forum. You may define a different contract for each of your forums if you so choose. ------------------------------- YOU may easily extend this idea to make readers sign a contract before reading a certain forum. I do not need this feature and will not be adding it at this time. ------------- Template Conditionals You May Like to Use for the Ticket System: Code:
<if condition="$post[reqcontract]"> Code:
<if condition="$post[ticket]"> Code:
<if condition="is_member_of($bbuserinfo,5,6)"> Putting it all together, an example way to use the tickets in the postbit: Code:
<if condition="$post[reqcontract]"> A huge thank you to LiveWire, Boofo and HellSatan for testing this out. Installation on 3.5 RC1 is as simple as importing the product, changing two existing phrases and making one template change. ------------------------------ This hack will always be free, however your donations are kindly accepted and will help towards further development. If you donate, please leave me some info (either your forum site or username at vB.org) so that I can thank you. :) https://vborg.vbsupport.ru/external/2010/02/12.gif Amy |
My Mods are going to be thrilled. :D
For some reason, your attachment images aren't working though (or it is my browser?) Elementary question -- I assume this would require signature from installation forward, but if we change the wording, will it somehow trigger people to have to sign a new wording? |
Quote:
2. No. If you change the wording and want users to resign, you'll need to clear out everybody's contract. Maybe at some point I'll write a script to do it. If you only have one forum that has a contract, it's easy to do though. Just clear the contracts column in the user table. |
(Removed and built into the new version)
|
Easy enough! I can just put a clear script in the admin notes in the ACP for each one and use as needed.
Thanks for sharing this -- will get it loaded this weekend. :D |
One nice thing to note. Let's say you want the users to sign a contract before they start a new thread, but don't need them to sign it when they reply to an existing thread. Simply deactivate the 'sign contract before posting a reply' plugin and don't do the code change in showthread.php.
|
Oh -- the team wants me to go for full boar on this after I told them I was going to test it.
They want all of the pinned-thread-ignoring, FAQ-ignoring, forum-description-ignoring, rules-ignoring, announcements-ignoring (and everywhere else they cross post the rules) members to have to sign in blood, give a saliva sample and submit to a retina scan signifying that they comprehend what will and will not fly before even thinking of entering certain forums. For now, a contract will do. :p [off to check out the ticket system now....] :D |
Screenshots aren't working??
|
Quote:
|
Quote:
|
Quote:
|
Quote:
I'll fix it. |
screens work for me, nice idea btw
|
Would it be possible to force one contract for multiple forums? We have "trade" forums which need a contract to post. All have the same contract i don't want the users to read and agree the same contract 6 times ...
|
Quote:
|
Nice idea amy :)
Will use this for an upcoming project :) Satan |
Is there any way to make this show up before vieweing the forum? So instead of making them sign it when posting, they sign it when they view the forum.
Possible? |
Quote:
Amy |
erm nevermind i got it by adding the plugin/hook to forumdisplay or something.
|
@amykhar
I think this Hack could be implemented without File Edits in RC1 by using Hooks forumadmin_edit_form, showthread_post_start and forumdata_start. Sou you might want to update it :) |
I''ve had this Hack installed, and it is showing up in the "Posting Options" in the Forum Manager,.. but when I select "Require users to sign a contract before being allowed to post?" and then Save, and then go directly back in to check it out, it is set to off.
I cannot make it stick,..Anyone know what is happening? thanks Phil |
Make sure you made every file change and ran the queries.
|
I will be updating this soon for RC1. Under RC1, as of right now, only one file edit is required. I'm trying to figure out a way to make that file edit not necessary either.
|
Quote:
PHP Code:
|
Yep. That's the last one I was playing with. :)
Amy |
How did you get it to update class_dm_forum.php? :)
I can't for the life of me figure out how... Satan |
It's easy. forumdata_start
Code:
$this->validfields['mystrfield'] = array(TYPE_STR, REQ_NO); |
Quote:
In my defence, it is 2:40am :p Satan |
Don't thank me. Kirby taught me :D
|
Quote:
Satan |
Unfortunately, products are not working properly for me; so I can't export this for my beta testers to try out. But, I have it down to simply importing the product to install this puppy. I'm hoping Jelsoft resolves my product issue quickly so I can get this stuff released.
|
<a href="http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=811" target="_blank">This Bug?</a>
Odd - It doesn't affect me o_O Satan |
yep. that bug. I feel so left out cause I can't play with products. :(
Amy |
Product ID must not be longer then 15 characters
|
Quote:
Amy |
I am going to give this to my beta testing team and once it's approved by them, will post the RC1 version here.
|
Great hack, Amy. I know a few of our super mods of a couple dicey forums are going to love you! This is perfect for them.
Thanks! |
Quote:
|
Quote:
|
It's working on RC2 as well. At least from what I can see.
|
All times are GMT. The time now is 12:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|