The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Require Users to Sign a Contract Before Posting in an Individual Forum Details »» | |||||||||||||||||||||||||||
Require Users to Sign a Contract Before Posting in an Individual Forum
Developer Last Online: Nov 2013
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]"> <if condition="is_member_of($bbuserinfo,5,6)"> <if condition="$post[ticket]"> User's Tickets in this forum: $post[ticket]<br /> </if> <a href="ticket.php?do=addticket&forumid=$post[forumid]&userid=$post[userid]">Ticket User</a><br /> <if condition="$post[ticket]"> <a href="ticket.php?do=rticket&forumid=$post[forumid]&userid=$post[userid]">Remove One Ticket</a><br /> <a href="ticket.php?do=cticket&forumid=$post[forumid]&userid=$post[userid]">Clear the user's tickets</a><br /> </if> </if> </if> 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. Amy Show Your Support
|
Comments |
#42
|
||||
|
||||
Quote:
works great on my site and the mods LOVE it! our off-topic section was really getting out of hand and people were just claiming they didn't know about the rules. is there a query that i could run in case i wanna make it so that everyone has to re-agree to the rules in case i change them etc? |
#43
|
||||
|
||||
There's a query you can use if you only have one forum that requires a contract. But, if you have more than one, you're going to need a script.
|
#44
|
||||
|
||||
Do they only sign the contract only once, or every time they post in the forum?
|
#45
|
||||
|
||||
Once.
|
#46
|
||||
|
||||
i like it alot. would be cool if you could define which page to put in on
|
#47
|
|||
|
|||
Having issues with new thread redirects just going back to forum/index.php - and having multiple forums with a contract nets this db error...
Database error in vBulletin 3.5.0 Release Candidate 2: Invalid SQL: UPDATE user SET contracts = 50,45 WHERE userid = 3143; MySQL Error : You have an error in your SQL syntax near '45 WHERE userid = 3143 ' at line 3 Error Number : 1064 I've eliminated every other modification to try and isolate this - does this fix apply to the current version? As that seems to eliminate that issue, but still trying to understand why the redirects aren't working. |
#48
|
||||
|
||||
I think there is a phrase that was overlooked in the instructions. There is only two phrases that it says to turn into global phrases.
|
#49
|
||||
|
||||
The other phrases are installed by the product.
|
#50
|
||||
|
||||
Quote:
Amy |
#51
|
|||
|
|||
Is there a log file or something for when users accept the contract.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|