Thread Rating:
  • 4 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.6] Accept Terms
#1
Description:
Require users to accept a terms of service before posting in specific forums.

Screenshots:
                   

Download:
http://mods.mybb.com/view/accept-tos

Installation:
Upload the contents inside the 'Upload' folder into your forum's root directory.
Once uploaded, navigate to your Admin CP > Plugins > Find 'Accept TOS' and click Install and Activate

Usage:
After installation, navigate to Configuration > Settings > Find 'Accept TOS'. There should be three fields: enable or disable the plugin, define the body message of the terms, and a field to input forum ids respectively.

Define your terms in the respective field, and specify the forum ids you want to enable this plugin for (for multiple forums, separate the forum ids with commas).

Now, when a user attempts to reply to or create a new thread in the defined forums, they will receive an error message indicating they need to agree to the terms. A private message is also dispatched with the terms and a link to click when the user has read and agreed.

License
Creative Commons Attribution-NonCommercial 3.0

Support
Support may be requested in this thread only.
[Image: igG319dTu71gT.png]
Reply
#2
Great plugin, Spencer, looks really useful. Smile
Reply
#3
Thanks man!

Using it!
Reply
#4
To bad my plugins haven't been validated fast as yours.
How ever, nice plugin. I'm currently translating it to german.

Found a 'lil failure:
$l['terms_error_msg'] = "An unexpected error occured while attempting to approve your request. If you believe thsi is an error, please contact an administrator.";


//german translation submitted Smile
[Image: mypoke-1.png]
Reply
#5
Good Job Spencer. It worked great for us.
Reply
#6
You need to sanitize your input. It's SQLi Vulnerable. And you should always use the post key when you can to avoid XSS.

PM me if you need assistance.

In your accept_terms_thread() you should just global $fid instead of doing the input grab and query. You have code I don't think you need there. By this time in the hook $fid is established by newthread.php.

Pretty good plugin overall though. Smile





Reply
#7
great job spencer awesome
Reply
#8
This looks great, additional options I hope to see added to this:
- GID Input, so only certain groups are affected.
- A less than X Posts, so only users with less than X Posts are affected.
Reply
#9
(2011-08-26, 04:53 PM)weBex Wrote: This looks great, additional options I hope to see added to this:
- GID Input, so only certain groups are affected.
- A less than X Posts, so only users with less than X Posts are affected.

I will definitely be adding these features in the next release. Smile
[Image: igG319dTu71gT.png]
Reply
#10
thank you very much, it's a great job.
but I have a notice:
when I set the forum ids to more than one, such as ( 1,2,3 )
when I try to post to the first forum I get a PM and the plugin work correctly, but when I try to post to another forum such as 3, I get the second PM and the I should to accept terms again and again for all forum I set.

I think the user should accept the terms only one on all forum.

thank you very much
Thanks for all user who work for this great forum
------
My site is: Water Eng Forums
Bahaa Okba
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)