MyBB Community Forums

Full Version: Miserable Users
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Tired of banning users only for them to make a new account? IP bans are also not keeping the trolls and undesirable users away? Miserable Users is a simple but lethal plugin that acts as an inhumane alternative to banning a user. This plugin gives an illusion of server difficulties (among other things) to specific usergroups or users. (Inspired by Paul M. from vB)

When classed as miserable user, a member suffers through the following each time they request a page on your forum:

1. Slow response (time delay) on every page (20 to 60 seconds default).
2. A chance they will get the "server busy" message (50% by default).
3. A chance that no search facilities will be available (75% by default).
4. A chance they will get redirected to another preset page (25% & homepage by default).
5. A chance they will simply get a blank page (25% by default).

If they luckily make it past all of this, then they will be served up their requested page.

All of these settings are customizable in the Admin CP.

Installation
To install this plugin, simply download the mod and upload the "miserable.php" file to your plugins folder, activate and configure, and you're set.

Approved. Please update the download link to the post. Smile
This seems interesting! Smile
Thanks!
Well.. there you have it Toungue
Oh wow.

Would something like #4 be possible where instead of going to a preset page, they end up in a completely random thread.
(2014-06-27, 11:22 AM)p00lz Wrote: [ -> ]Oh wow.

Would something like #4 be possible where instead of going to a preset page, they end up in a completely random thread.

Replace:

if (rand(1, 100) <= $this->settings['miserable_redirect'])
{
	header('location:' . $this->settings['miserable_redirect_url']);
	exit;
}

with:

if (rand(1, 100) <= $this->settings['miserable_redirect'])
{
	$query = $this->db->simple_select('threads', 'count(*) as "total"');
	$result = $this->db->fetch_array($query);
	$location = get_thread_link(rand(1, $result['total']));
	header('location:' . $location);
	exit;
}
That doesn't makes sure the thread exists nor does it checks for permissions. But I suppose it will work better that way here Toungue
Nice mod. Although I have no troublesome members on site, I may have to install this one (just in case).

And I like the idea of having the user be able to set it to drop them to a random topic instead. (Perhaps that could be added as a built in option in an updated version?)

Though since this random doesn't have any checks on it... Would it be possible for them to manage to get to a post screen then when they submit their post it redirects them to another topic and submits their post to that?
So potentially they could end up posting in places they have no posting privileges in?
(2014-06-28, 05:35 AM)VirusZero Wrote: [ -> ]So potentially they could end up posting in places they have no posting privileges in?

They wouldn't. With that code at least.
They can end up in disallowed topics with that code but a no permission error would be present instead of the actual content.

Moreover, an additional query isn't needed for that if done this way. You can get the value from cache:
$stats = $cache->read("stats");
$location = get_thread_link(rand(1, $stats['numthreads']));
Pages: 1 2 3