vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Require Users to Sign a Contract Before Posting in an Individual Forum (https://vborg.vbsupport.ru/showthread.php?t=91867)

amykhar 07-08-2005 10:00 PM

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]">
- In the postbit, this lets you see if tickets are required in the forum.
Code:

<if condition="$post[ticket]">
- Check to see if the user has a ticket. This way, you don't have to show the number of tickets for people who don't have any.
Code:

<if condition="is_member_of($bbuserinfo,5,6)">
- use this to see if the person reading the post is an admin or supermod. If they are, you can show them the links that will ticket users.

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. :)
https://vborg.vbsupport.ru/external/2010/02/12.gif

Amy

Christine 07-09-2005 02:41 PM

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?

amykhar 07-09-2005 03:27 PM

Quote:

Originally Posted by Christine
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?

1. The images aren't working for me either. I don't know why. They are the same screenshots from the original thread.

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.

amykhar 07-09-2005 03:31 PM

(Removed and built into the new version)

Christine 07-09-2005 03:38 PM

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

amykhar 07-09-2005 07:57 PM

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.

Christine 07-09-2005 08:11 PM

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

Eagle Creek 07-09-2005 09:52 PM

Screenshots aren't working??

amykhar 07-09-2005 10:15 PM

Quote:

Originally Posted by Eagle Creek
Screenshots aren't working??

As noted in post #3, no they aren't. And I don't know why. But, you can see them in the original mod's thread.

Eagle Creek 07-09-2005 10:40 PM

Quote:

Originally Posted by amykhar
As noted in post #3, no they aren't. And I don't know why. But, you can see them in the original mod's thread.

Owh, sorry for the reply then. I will take a look!


All times are GMT. The time now is 07:48 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.01222 seconds
  • Memory Usage 1,742KB
  • 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_code_printable
  • (3)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