[For 1.6] Accept Terms - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Extensions (https://community.mybb.com/forum-201.html) +--- Forum: Plugins (https://community.mybb.com/forum-73.html) +---- Forum: Plugin Releases (https://community.mybb.com/forum-102.html) +---- Thread: [For 1.6] Accept Terms (/thread-102510.html) |
Accept Terms - Spencer - 2011-08-25 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. RE: Accept Terms - Jordan L. - 2011-08-25 Great plugin, Spencer, looks really useful. RE: Accept Terms - Djurres - 2011-08-26 Thanks man! Using it! RE: Accept Terms - Kapsonfire - 2011-08-26 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 RE: Accept Terms - soyusae - 2011-08-26 Good Job Spencer. It worked great for us. RE: Accept Terms - User 2877 - 2011-08-26 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. RE: Accept Terms - Dragonzsoul - 2011-08-26 great job spencer awesome RE: Accept Terms - weBex - 2011-08-26 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. RE: Accept Terms - Spencer - 2011-08-26 (2011-08-26, 04:53 PM)weBex Wrote: This looks great, additional options I hope to see added to this: I will definitely be adding these features in the next release. RE: Accept Terms - bahaa87 - 2011-08-27 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 |