Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
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
Version: 1.00, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.5.0 RC1 Rating:
Released: 07-08-2005 Last Update: 08-18-2005 Installs: 62
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

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.


Amy

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 08-19-2005, 02:41 PM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amykhar
It will have this in it.

Code:
 	   		$db->query_write("
			UPDATE " . TABLE_PREFIX . "user
			SET contracts = '$contractlist'
			WHERE userid = " . $vbulletin->userinfo['userid']."
		");
Yeah, this time it had it. And now it works. You're the best. Sorry to have bothered you with this.
Reply With Quote
  #63  
Old 08-20-2005, 09:15 PM
jlaine jlaine is offline
 
Join Date: Nov 2001
Location: Morris, MN
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amykhar
Yes. That fix resolves the problem. I though it was included in the lastest download?

Amy
I grabbed/installed it the same day so it must not have been present at that time.

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.
Reply With Quote
  #64  
Old 08-21-2005, 06:46 AM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jlaine
I grabbed/installed it the same day so it must not have been present at that time.

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.
It has happened to me several times, too. lol I will work on a conditional for it soon. See if I can do it that way.
Reply With Quote
  #65  
Old 08-22-2005, 06:10 AM
CMilne CMilne is offline
 
Join Date: Oct 2004
Location: Melbourne, Australia
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amykhar
Yes, you could do it. If you go to the code in contract.php that writes the contract signature to the database, you could have it write the contract for all 6 forums when the user agrees to any of the group. The easiest way would be for you to hard code the forum ids into the code.
Any way to make this so a user cant even view posts in the forum unless they agree to terms? I am making a new board with a few 18+ only sections which includes content that I would get into serious trouble if people under 18 where able to easily view.
Reply With Quote
  #66  
Old 08-22-2005, 01:49 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #67  
Old 09-09-2005, 06:39 PM
jlaine jlaine is offline
 
Join Date: Nov 2001
Location: Morris, MN
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bad Bunny
It has happened to me several times, too. lol I will work on a conditional for it soon. See if I can do it that way.
You ever find a way to make a conditional?

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
Reply With Quote
  #68  
Old 10-06-2005, 01:36 AM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #69  
Old 10-06-2005, 02:35 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Create your own product until I have time to redo it. Then you can have the phrases in your product and no conflict worries.
Reply With Quote
  #70  
Old 10-06-2005, 03:57 AM
vbtester33 vbtester33 is offline
 
Join Date: Dec 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any way to make it so after 3 tickets the user can't even view the forum at all?
Reply With Quote
  #71  
Old 11-12-2005, 04:31 AM
silurius silurius is offline
 
Join Date: Oct 2004
Posts: 404
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love this. Any idea why it might collide with Abe's form hack?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:17 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
  • Page Generation 0.08329 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete