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 |
#62
|
||||
|
||||
Quote:
|
#63
|
|||
|
|||
Quote:
This system seems to create an inherent issue with using quick reply - is there perhaps a way to disable quick reply in forums that have a contract until it is signed? I've had new users try to post a reply with the quick reply box, then get the contract agreement page, then they get forwarded to the index page and lose the post they tried to enter. Makes for some irritated members after it happens a few times. The other situation I seem to have is that it won't pull the URL through after you sign the contract - guys get forwarded back to bburl/index.php instead of either the new reply to the thread they were going to quote, or new thread if that is what they chose to do... *edit - nevermind on the URL situation - firewall blocking referral url apparently is the issue there...* May want to find a way to disable the quick reply still though - as if a user uses it, hits submit, then agrees to the contract, they are brought to bburl/newreply.php and gets the default message of "Sorry! This forum is not accepting new posts." and sort of throws them for some confusion. |
#64
|
||||
|
||||
Quote:
|
#65
|
|||
|
|||
Quote:
|
#66
|
||||
|
||||
Yes. As posted in the very first post of the thread, there is. Basically, you just add the same code that's in the new thread and new reply hooks to the forumdisplay or showthread hooks.
I haven't tried it because I don't need it, but that's how you would go about it. |
#67
|
|||
|
|||
Quote:
If not I should start looking into it - we keep getting complaints about this. I'll send the data your way if I get a chance - I managed to forget my server login so I've got to wait before I can get started on it... hehe |
#68
|
|||
|
|||
Is there another way to handle the phrases other than changing them to global? This could cause a lot of problems down the line when people upgrade their forums and the phrases get overwritten and reverted back to where they were before, leaving this hack with no phrases
Just wondering if there is another way... |
#69
|
||||
|
||||
Create your own product until I have time to redo it. Then you can have the phrases in your product and no conflict worries.
|
#70
|
|||
|
|||
any way to make it so after 3 tickets the user can't even view the forum at all?
|
#71
|
|||
|
|||
I love this. Any idea why it might collide with Abe's form hack?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|