Current time: 01-09-2009, 08:54 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 3 Votes - 4.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Checker - Stop users with low posts posting links or images.
10-13-2008, 09:49 PM (This post was last modified: 10-15-2008 07:05 AM by blueparukia.)
Post: #1
Post Checker - Stop users with low posts posting links or images.
I accidentally wrote this, I was just playing around with datahandlers and expanded into a full plugin. Since I normally write plugins for myself, I don't normally release them. However, I have no use for this one, so voila!

Now occasionally, you may not want people to be able to post links or images until they have achieved a certain number of posts. Post checker gives you two options - you can either replace links with text, or not allow the post to be submitted while links or images are contained in the message. You can also hide links and images from people with low postcounts.

Installation Instructions

1. Download the file from here...
2. Extract the zip file.
3. Upload the files to the approprate directories (inc/extra_plugin_stuff.php and inc/plugins/checkpost.php
4. Go to your plugin manager and activate.
5. If you wish, go to board configuration, and then to "Post Checker Settings" and mess around for as long as you wish.

Board Configuration

The board configuration is fairly extensive for such a simple plugin, with 6 visible settings:

1. Filter Links and Images - If set to yes, links and images are allowed to be posted, but will be replaced with other text.
2. Minimum Posts For Links - How many posts you need to be able to post links.
3. Text Replacement For Links - If Setting 1 is set to yes, links in posts will be replaced with this.
4. Minimum Posts For Images - How many posts you need to be able to post images.
5. Text Replacement For Images - If Setting 1 is set to yes, images in posts will be replaced with this.
6. Hide Images to Guests - If set to yes, guests will be unable to view images.
7. Hide Links to Guests - If set to yes, guests will be unable to view links.
8. Posts to See Images? - The number of posts users neet to be able to see images.
9. Posts to See Links? - The number of posts users neet to be able to see links.
10. Message for Users Who Can Not See Images - If users can't see images, what should they see?
11. Message for Users Who Can Not See Links - If users can't see links, what should they see?
12. Double Posting Setting - Records the state of the automerger when you activated the plugin.

Side Effects
1. The double post automerger will be disabled on activation due to lack of plugin hooks. It will be restored to its previous state when the plugin is deactivated. You can always reenable it, but if Filter Links and Images is set to yes, filters will not work in merged double posts.

Extras
This plugin comes with a short file which includes functions for quickly adding and removing settings and setting groups. Feel free to use it.

Licensing
Sell it, modify it, redistibute it, eat it.

I don't care.



Keep in mind this plugin was written in less than an hour, with minimal testing, so please contact me at: josh@dredgy.com or reply here for support, feature requests etc.

Official Download
http://mods.mybboard.net/view/post-check...strictions

For When The Plugin is Awaiting Validation...
http://dredgy.com/misc/mybb/CheckPost.zip
Find all posts by this user
Quote this message in a reply
10-13-2008, 09:52 PM (This post was last modified: 10-13-2008 09:53 PM by Dalton.)
Post: #2
RE: Post Checker - Stop users with low posts posting links or images.
Ooooooh, I like it. Thanks! Big Grin

EDIT: Nice licensing page.. Toungue

http://mybbtuts.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
10-13-2008, 10:01 PM
Post: #3
RE: Post Checker - Stop users with low posts posting links or images.
Thanks Toungue

And I should mention I leave for the airport in around 45 minutes, and won't be back until tomorrow night, so any supporting you may need should probably be handled within the next ten minutes Toungue
Find all posts by this user
Quote this message in a reply
10-13-2008, 11:51 PM
Post: #4
RE: Post Checker - Stop users with low posts posting links or images.
Nice mod Thanks for the job

[Image: 30shrsy.jpg]
[Image: 2i254p1.jpg]
Visit this user's website Find all posts by this user
Quote this message in a reply
10-14-2008, 12:26 AM
Post: #5
RE: Post Checker - Stop users with low posts posting links or images.
Nice. Very Useful.
Find all posts by this user
Quote this message in a reply
10-14-2008, 03:12 AM
Post: #6
RE: Post Checker - Stop users with low posts posting links or images.
thanks very nice work
Find all posts by this user
Quote this message in a reply
10-14-2008, 11:47 AM
Post: #7
RE: Post Checker - Stop users with low posts posting links or images.
Great plugin!
Find all posts by this user
Quote this message in a reply
10-14-2008, 04:12 PM
Post: #8
RE: Post Checker - Stop users with low posts posting links or images.
This is going to be very handy for some people including me. Thanks for release. Let me know if you want a free Mybb Central subscription.

btw..love the idea of your extra_plugin_stuff. I think I will use your idea to create some functions similar. Very helpful stuff. I have a couple functions I use for template edits that I like to use.

MYPS is now available for FREE!
Download over 30 exclusive plugins at Mybb Central.
[Image: mybbsig.php]
[Some plugins at Mybb Central are for paid subscribers only.]
Visit this user's website Find all posts by this user
Quote this message in a reply
10-14-2008, 05:35 PM (This post was last modified: 10-14-2008 05:37 PM by mister_don.)
Post: #9
RE: Post Checker - Stop users with low posts posting links or images.
does not work with all images and all links Undecided

[Image: 10ydisn.png]
Find all posts by this user
Quote this message in a reply
10-15-2008, 12:56 AM
Post: #10
RE: Post Checker - Stop users with low posts posting links or images.
Ahahahahahahhahahahahaa, looking through the file Labrocca was talking about, and saw this..
Quote:if(!defined('IN_MYBB')) die('Failed. Suck on that.');
Cracked me up. Big Grin

http://mybbtuts.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: