Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
  #12  
Old 07-10-2005, 12:13 AM
pimpery pimpery is offline
 
Join Date: Nov 2004
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eagle Creek
Owh, sorry for the reply then. I will take a look!
They are..It's just that he saved the thumbnails from the other thread by accident (instead of the actual images) then uploaded them.
Reply With Quote
  #13  
Old 07-10-2005, 12:57 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pimpery
They are..It's just that he saved the thumbnails from the other thread by accident (instead of the actual images) then uploaded them.
Doh! She's (me) not that bright, you know

I'll fix it.
Reply With Quote
  #14  
Old 07-10-2005, 06:51 AM
MentaL's Avatar
MentaL MentaL is offline
 
Join Date: Jan 2003
Posts: 550
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screens work for me, nice idea btw
Reply With Quote
  #15  
Old 07-12-2005, 07:49 AM
Milchi Milchi is offline
 
Join Date: Jun 2005
Location: Nueremberg
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by Milchi
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 ...
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.
Reply With Quote
  #17  
Old 07-13-2005, 01:40 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea amy

Will use this for an upcoming project

Satan
Reply With Quote
  #18  
Old 07-19-2005, 12:57 AM
jesus likes pie jesus likes pie is offline
 
Join Date: Apr 2005
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by jesus likes pie
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?
Possible. You would need to do the check for the user having signed the contract on forumdisplay.php and showthread.php instead of where it is now.

Amy
Reply With Quote
  #20  
Old 07-19-2005, 06:34 PM
jesus likes pie jesus likes pie is offline
 
Join Date: Apr 2005
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

erm nevermind i got it by adding the plugin/hook to forumdisplay or something.
Reply With Quote
  #21  
Old 07-26-2005, 06:31 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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
Reply With Quote
Reply

Thread Tools

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 04:53 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.08108 seconds
  • Memory Usage 2,303KB
  • 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
  • (4)bbcode_code
  • (4)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
  • (3)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