Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Arantor on October 22, 2009, 01:51:42 AM

Title: Annoy User
Post by: Arantor on October 22, 2009, 01:51:42 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2232)

This mod allows the admin to pick trouble users and apply what amounts to a passive-aggressive method to encourage them to leave, by applying various 'problems' to them, for example a percentage chance of them seeing 'this has been disabled' error messages.

Current features:
* blank screen
* database too busy
* forum too busy
* redirect user to another page
* adds variable 1-100 second delay (configurable by admin, setting 1-100 second range)
* optionally disable search, unread replies, all unread
* Javascript popup message, configurable by admin, default is:
Quote{membername}, you are not immune to anything that I have the power to do.

This annoying little alert box is visible ONLY to you.

Are you sure you want to annoy me?



Users to be added to the 'annoy' list are chosen through that user's profile. A list of the last ten active 'annoyed users' are visible through a new area in the moderation centre.

Many, many thanks to Dragooon for doing the work in porting this to RC2 for me :)


Due to the reliance on the moderation centre, this mod cannot be backported to 1.1.x


Version history

1.2.4 - 31 January 2014
Compatibility for 2.0.7 (no code changes)
Removed references to defunct package server

1.2.3 - June 22 2013
Compatibility for 2.0.4 (no code changes)


1.2.2 - 28 July 2012
Added 2.0 - 2.0.2 support
Dropped support for all RC versions

1.2  - 9 March 2010
Added 2.0 RC3 support, requires no code changes

1.2 - January 25, 2010
Bug fix for SSI users

1.1  - December 2, 2009
Full RC2 support, courtesy of Dragooon
New features

1.0 - October 21, 2009
Initial release
Title: Re: Annoy User
Post by: Spoogs on October 22, 2009, 02:37:15 AM
Good job on the Mod Arantor, tho i personally dont need this a friend of mine does.
Title: Re: Annoy User
Post by: JBlaze on October 22, 2009, 04:25:25 AM
Very nice Arantor! I'm sure I can find a use for this somewhere... >:D
Title: Re: Annoy Use
Post by: digit on October 22, 2009, 06:15:07 AM
FUN!  LOL LOL  8)   Nice work.  (ONE of these days, I'll have to go out on a limb and upgrade a BIG site to the 2.0 branch!)
Title: Re: Annoy User
Post by: LC on October 22, 2009, 07:00:03 AM
Haha this mod cracks me up. I can see the whining from the members who experience this.  :D " Halp, I can't see the forum." etc.
Title: Re: Annoy User
Post by: Arantor on October 22, 2009, 07:01:05 AM
That is... if they can SEE the forum :D
Title: Re: Annoy User
Post by: Minare on October 22, 2009, 07:02:26 AM
Really weird mod arantor, nice work, thanks =)
Title: Re: Annoy User
Post by: LC on October 22, 2009, 07:03:19 AM
Quote from: Arantor on October 22, 2009, 07:01:05 AM
That is... if they can SEE the forum :D
O:) <---- My face as I nicely explain I have no idea what they are talking about.

Too bad it's not for 1.1.10 though, I would totally use it.
Title: Re: Annoy User
Post by: Aleksi "Lex" Kilpinen on October 22, 2009, 07:03:59 AM
NICE! :D I think I could come up with use for this, as a tool for pranks :P
Title: Re: Annoy User
Post by: Arantor on October 22, 2009, 07:05:30 AM
1.1 support is really something I thought about on this before saying no to it (certainly for now). While the admin area stuff is all possible, and so are all the other changes, with little effort, the moderation center isn't. I'd have to find some other way to display the list of annoy-users in 1.1 and I have no idea where to put it.
Title: Re: Annoy User
Post by: Marcus Forsberg on October 22, 2009, 07:06:54 AM
Nice work Arantor!

If you could only make it work on this forum and make sure it allows me turn it on against JB ;D
Title: Re: Annoy User
Post by: LC on October 22, 2009, 07:14:30 AM
Quote from: Arantor on October 22, 2009, 07:05:30 AM
1.1 support is really something I thought about on this before saying no to it (certainly for now). While the admin area stuff is all possible, and so are all the other changes, with little effort, the moderation center isn't. I'd have to find some other way to display the list of annoy-users in 1.1 and I have no idea where to put it.
Ah I see. Well I will keep my eye on this mod, in case that changes. Hehe.




Quote from: Nas on October 22, 2009, 07:06:54 AM
Nice work Arantor!

If you could only make it work on this forum and make sure it allows me turn it on against JB ;D

I can read small text, I'm gonna tell JB! *runs off*  ;D
Title: Re: Annoy User
Post by: Arantor on October 22, 2009, 07:16:49 AM
I'm not saying it won't change, but I'm not saying it will either. I now develop everything on 2.0 first then backport to 1.1; it's just a ton easier that way with all the restructures (and improvements) in 2.0, IMO.
Title: Re: Annoy User
Post by: Owdy on October 22, 2009, 07:18:32 AM
LOL, awesome!
Title: Re: Annoy User
Post by: Sabre™ on October 22, 2009, 08:27:45 AM
lol very nice!
Thanks champ :)
Title: Re: Annoy User
Post by: mirahalo on October 22, 2009, 12:32:18 PM
awesome mod Arantor!


as always, heres spanish ;)
Title: Re: Annoy User
Post by: Arantor on October 22, 2009, 01:40:16 PM
Thanks for the translation! Though someone suggested some new features to me in IRC earlier which I'll be including (yet more ways to annoy trouble users!) so if it's OK with you I'd prefer to run those out then if you could let me know the other translations once that's done, then I'll add it all in together.
Title: Re: Annoy User
Post by: Sudhakar Arjunan on October 22, 2009, 04:56:47 PM
Best mod for Administrator.

Will it be flexible to banned list of members also.

So we could avoid more spams to our large forums.
Title: Re: Annoy User
Post by: Blah blah on October 22, 2009, 05:10:54 PM
LOL. Brilliant.
Title: Re: Annoy User
Post by: Sorck on October 22, 2009, 05:12:16 PM
April Fools day prank for 2010 allready planned :P

It's unfortunate that the mod center doesn't exist in 1.1.x for backporting purposes.
Title: Re: Annoy User
Post by: digit on October 22, 2009, 05:17:24 PM
Quote from: Colonel Sorck on October 22, 2009, 05:12:16 PM
It's unfortunate that the mod center doesn't exist in 1.1.x for backporting purposes.

Yeah!!!  8)
Title: Re: Annoy User
Post by: Arantor on October 22, 2009, 05:21:26 PM
Quote from: A.SK on October 22, 2009, 04:56:47 PM
Will it be flexible to banned list of members also.

You can use it on any registered member.

Quote from: Colonel Sorck on October 22, 2009, 05:12:16 PM
It's unfortunate that the mod center doesn't exist in 1.1.x for backporting purposes.

Well, if someone can find an alternative appropriate place to display the users who would be in this category for 1.1 I'll consider it.
Title: Re: Annoy User
Post by: digit on October 22, 2009, 05:30:57 PM
Quote from: Arantor on October 22, 2009, 05:21:26 PM
Well, if someone can find an alternative appropriate place to display the users who would be in this category for 1.1 I'll consider it.

You can't just create some membergroups and permissions?  :P

Title: Re: Annoy User
Post by: Arantor on October 22, 2009, 05:33:05 PM
No, since this is done on a per-user, not usergroup basis. I thought long and hard about the route to take on this.
Title: Re: Annoy User
Post by: mirahalo on October 22, 2009, 10:27:30 PM
Quote from: Arantor on October 22, 2009, 01:40:16 PM
Thanks for the translation! Though someone suggested some new features to me in IRC earlier which I'll be including (yet more ways to annoy trouble users!) so if it's OK with you I'd prefer to run those out then if you could let me know the other translations once that's done, then I'll add it all in together.

ok then, I wait ;)
Title: Re: Annoy User
Post by: Ranter on October 22, 2009, 10:33:42 PM
What a creative and original idea!  Very clever.  I'm glad I don't need it :)
Title: Re: Annoy User
Post by: Arantor on October 22, 2009, 10:44:38 PM
Quote from: Ranter on October 22, 2009, 10:33:42 PM
What a creative and original idea!  Very clever.  I'm glad I don't need it :)

I only wish it were my idea, this one came from a mod request and also from an argument I had some months back. I eventually realised that really it would be fun to write and was also in passing, one less mod other forums have that we don't. (This is something that really irritates me, telling me that such-and-such forum has such-and-such mods, and actually using this as an argument why the other software is better)
Title: Re: Annoy User
Post by: Rohan_ on October 23, 2009, 04:59:55 AM
Thanks Arantor Bro ..
Title: Re: Annoy User
Post by: TW1ST3D on October 23, 2009, 07:58:19 PM
Brilliant Mod !!  Awesome Idea !!!  Thanks for your hardwork, Arantor !!!
Title: Re: Annoy User
Post by: Smog on October 24, 2009, 02:19:13 AM
This remind me to the Miserable User mod on phpBB, when an user is hit by your mod he will disappear soon forever, nerves will be stressed to much... :)
Title: Re: Annoy User
Post by: Smog on October 24, 2009, 06:29:56 AM
Powered by SMF 2.0 RC1.2

Clicking a membergroup in Users Online, all member-names in all groups have the same standard, blue color in these group surveys. Rest of the board isn't touched. Uninstalling your mod solved the problem..
Title: Re: Annoy User
Post by: Arantor on October 24, 2009, 07:32:57 AM
Quote from: Smog on October 24, 2009, 06:29:56 AM
Powered by SMF 2.0 RC1.2

Clicking a membergroup in Users Online, all member-names in all groups have the same standard, blue color in these group surveys. Rest of the board isn't touched. Uninstalling your mod solved the problem..

So what other mods do you have? Though I never actually touched Who's Online except to add a language string, which won't cause this.
Title: Re: Annoy User
Post by: Smog on October 24, 2009, 08:05:51 AM
A whole bunch, to me its seem that Member Color Link 3.0.6 can be the culprit http://custom.simplemachines.org/mods/index.php?mod=111

Edit: settings of MCL 3.0.6 added
Title: Re: Annoy User
Post by: Arantor on October 24, 2009, 08:18:06 AM
Sounds like a problem with that mod. As you can see from the code of Annoy User, the only templates it edits are Profile and ModerationCenter, and its own. Are you getting any errors in the error log?
Title: Re: Annoy User
Post by: Smog on October 24, 2009, 08:20:54 AM
Mmm, had deactivated error logging, will enable and take a look.
Title: Re: Annoy User
Post by: Smog on October 24, 2009, 08:38:13 AM
Here you go...
Title: Re: Annoy User
Post by: Arantor on October 24, 2009, 08:51:19 AM
The primary issue the board index error, but as Annoy User never touches it (as can be verified from the mod's code), it's not related as far as I can tell. If you could attach that file, I'll take a look.

As for the first error, that would suggest a missing language string. Did you install the mod manually?
Title: Re: Annoy User
Post by: Smog on October 24, 2009, 09:24:55 AM
Quote from: Arantor on October 24, 2009, 08:51:19 AM
The primary issue the board index error, but as Annoy User never touches it (as can be verified from the mod's code), it's not related as far as I can tell. If you could attach that file, I'll take a look.
I will attach both files. FWIW, atm I have uninstalled your mod the prob is gone, and after a re-install the prob appear again..

QuoteAs for the first error, that would suggest a missing language string. Did you install the mod manually?
Mmm didn't make any thoughts about that, but because there is no uninstall link in the ACP I assume you are right. Anyway, can't remember anymore.   :(
Title: Re: Annoy User
Post by: Arantor on October 24, 2009, 09:30:50 AM
The BoardIndex.php error is definitely related to the Member Color Link mod and nothing that I can see from Annoy User is impacting that.

The other error, I actually meant whether you installed Annoy User manually or not.
Title: Re: Annoy User
Post by: Dragooon on October 24, 2009, 09:38:12 AM
Nice job Arantor, here's the version for RC2.
Title: Re: Annoy User
Post by: Smog on October 24, 2009, 09:39:43 AM
Quote from: Arantor on October 24, 2009, 09:30:50 AM
The other error, I actually meant whether you installed Annoy User manually or not.
Ahhh, sorry for misunderstanding, I have uploaded/installed via the SMF Package Manager. No errors during install.
Title: Re: Annoy User
Post by: king kratos on October 24, 2009, 09:58:10 AM
Just out of curiosity, what kind of strain would this mod make on server resources (CPU and RAM)? My host allows a 10% consistant use of server resources. While they state that a violation doesn't mean that my account would be disabled, I don't want to be a problem client. It seems that some of these features (such as the 5-25 second delay) would create quite some strain on the server's resources.

Thanks,

Kratos
Title: Re: Annoy User
Post by: Arantor on October 24, 2009, 10:00:54 AM
Very weird. What does the Annoy User options page look like for you?
Title: Re: Annoy User
Post by: Smog on October 24, 2009, 10:29:16 AM
Quote from: Arantor on October 24, 2009, 10:00:54 AM
Very weird. What does the Annoy User options page look like for you?
See attachment.
Title: Re: Annoy User
Post by: Arantor on October 24, 2009, 10:35:54 AM
And do you get that error every time you go to the Annoy User admin area?
Title: Re: Annoy User
Post by: Smog on October 24, 2009, 10:53:07 AM
Started with a clean error log.
The first 3 errors occurred after browsing the ACP, the most recent one, with red arrow, occurred after I visited the Annoy User ACP area.
Title: Re: Annoy User
Post by: Arantor on October 24, 2009, 05:48:46 PM
And if you remove my mod do you still get those errors, of which the bottom two do not appear directly related to my mod?

That particular error could be being triggered by any item within the settings code.
Title: Re: Annoy User
Post by: Smog on October 24, 2009, 06:11:35 PM
Quote from: Arantor on October 24, 2009, 05:48:46 PM
And if you remove my mod do you still get those errors, of which the bottom two do not appear directly related to my mod?
The bottom two errors remain but the colored membergroup names are functioning again.

This error occur too (after uninstalling your mod) >>
Title: Re: Annoy User
Post by: Arantor on October 24, 2009, 06:14:54 PM
Well, those three errors are unrelated to my mod, as you've proved.

As for the membergroup colour mod, I note you're using an older version now, but it's clear that something breaks it; what my mod does should not affect it though... *frowns*
Title: Re: Annoy User
Post by: Smog on October 24, 2009, 06:19:16 PM
Quote from: Arantor on October 24, 2009, 06:14:54 PM
Well, those three errors are unrelated to my mod, as you've proved.

As for the membergroup colour mod, I note you're using an older version now, but it's clear that something breaks it; what my mod does should not affect it though... *frowns*
Agreed. OTOH, I am really curious why membernames in groups aren't colored anymore after installing your mod. I took a look in the database too but can't discover any unusual.
Title: Re: Annoy User
Post by: LC on October 24, 2009, 06:23:17 PM
Will someone please make this for 1.1x please please please? :D

Help Arantor make it possible!


*begs with sugar on top*  O:)

Title: Re: Annoy User
Post by: Arantor on October 24, 2009, 06:29:45 PM
Quote from: Smog on October 24, 2009, 06:19:16 PM
Agreed. OTOH, I am really curious why membernames in groups aren't colored anymore after installing your mod. I took a look in the database too but can't discover any unusual.

Likely something is broken by the change to loadMemberData, however that suggests that the member color link mod is not only fragile but makes assumptions that it probably shouldn't.

You would be advising to consider updating to 3.0.7 of the mod as that may fix the issue. The lack of uninstall link is caused by a change of version in the package manager; go into the package manager, select Advanced from the bottom right corner and provide 2.0 RC1 instead of 2.0 RC1.2.

I would note that I have both mods installed on a test forum and it appears to work entirely as intended.


Quote from: LadyChaos on October 24, 2009, 06:23:17 PM
Will someone please make this for 1.1x please please please? :D

Help Arantor make it possible!

The key requirement for 1.1 would be to know where the list of annoy-users should be. In 2.0, there is the Moderation Centre, and it appears as a block in there, but of course there is no such area for 1.1. Let me know where it should go and I'll consider it. But I should note that I am gradually diverging from writing ongoing 1.1 mods and I've considered not doing any more 1.1 development (other than updates to existing mods) once 2.0 RC2 is public.
Title: Re: Annoy User
Post by: LC on October 24, 2009, 06:44:38 PM
Quote from: Arantor on October 24, 2009, 06:29:45 PM
Quote from: Smog on October 24, 2009, 06:19:16 PM
Agreed. OTOH, I am really curious why membernames in groups aren't colored anymore after installing your mod. I took a look in the database too but can't discover any unusual.

Likely something is broken by the change to loadMemberData, however that suggests that the member color link mod is not only fragile but makes assumptions that it probably shouldn't.

You would be advising to consider updating to 3.0.7 of the mod as that may fix the issue. The lack of uninstall link is caused by a change of version in the package manager; go into the package manager, select Advanced from the bottom right corner and provide 2.0 RC1 instead of 2.0 RC1.2.

I would note that I have both mods installed on a test forum and it appears to work entirely as intended.


Quote from: LadyChaos on October 24, 2009, 06:23:17 PM
Will someone please make this for 1.1x please please please? :D

Help Arantor make it possible!

The key requirement for 1.1 would be to know where the list of annoy-users should be. In 2.0, there is the Moderation Centre, and it appears as a block in there, but of course there is no such area for 1.1. Let me know where it should go and I'll consider it. But I should note that I am gradually diverging from writing ongoing 1.1 mods and I've considered not doing any more 1.1 development (other than updates to existing mods) once 2.0 RC2 is public.
What about the Members area? Where the ban list, membergroups and such is? Good idea? Bad idea? (just thinking of ideas here) :)

If it will be too much trouble, I understand. Since I realize SMF will eventually move on to 2.0 RC2 as the latest public version. I know I will eventually upgrade my forum when all the mods I use upgrade to that as well.
Title: Re: Annoy User
Post by: Smog on October 24, 2009, 09:53:52 PM
Quote from: Arantor on October 24, 2009, 06:29:45 PM
Quote from: Smog on October 24, 2009, 06:19:16 PM
Agreed. OTOH, I am really curious why membernames in groups aren't colored anymore after installing your mod. I took a look in the database too but can't discover any unusual.

Likely something is broken by the change to loadMemberData, however that suggests that the member color link mod is not only fragile but makes assumptions that it probably shouldn't.

You would be advising to consider updating to 3.0.7 of the mod as that may fix the issue. The lack of uninstall link is caused by a change of version in the package manager; go into the package manager, select Advanced from the bottom right corner and provide 2.0 RC1 instead of 2.0 RC1.2.

I would note that I have both mods installed on a test forum and it appears to work entirely as intended.
Installed v3.0.7, re-installed your mod and still no change. Assume you are right what you say about the Color Mod: fragile. It is the only possible conclusion.
Title: Re: Annoy User
Post by: Arantor on October 24, 2009, 09:59:43 PM
What happens if you uninstall both, then install Annoy User, then install Member Color Link in that order?

I'm not seeing anything in the code that is odd about it though.
Title: Re: Annoy User
Post by: Smog on October 24, 2009, 10:14:43 PM
Well, I tried all possibilities, even installed both mods manual.
It's not a big deal, apparently I am the only guy with the prob mentioned before so no need to look for the cause.

FWIW, the first time I installed your mod (via the smf package manager) the code of your mod was dropped somewhere IN the color mod code. I discovered that atm I wanted to uninstall the Color Mod via the package manager and subsequent was confronted with several uninstall failures.
Title: Re: Annoy User
Post by: Arantor on October 24, 2009, 10:18:25 PM
Which file did they collide in?
Title: Re: Annoy User
Post by: Smog on October 24, 2009, 10:33:23 PM
When I remember well it was ./Sources/Load.php However I can't guarantee that...
Title: Re: Annoy User
Post by: Arantor on October 24, 2009, 10:37:57 PM
*nods* I do modify that, I suppose, and in an area that could conflict since it's user data being modified, but it shouldn't.

Definitely needs more testing and examination.
Title: Re: Annoy User
Post by: katdillon on October 28, 2009, 12:26:56 PM
Awesome!!
Title: Re: Annoy User
Post by: Arantor on October 28, 2009, 09:39:46 PM
Quote from: king kratos on October 24, 2009, 09:58:10 AM
Just out of curiosity, what kind of strain would this mod make on server resources (CPU and RAM)? My host allows a 10% consistant use of server resources. While they state that a violation doesn't mean that my account would be disabled, I don't want to be a problem client. It seems that some of these features (such as the 5-25 second delay) would create quite some strain on the server's resources.

Sorry, I meant to answer this before.

You don't have to enable that one; each option is individually optional to enable.

That particular option shouldn't actually trip alarms though since it's handled through usleep which on properly configured hosts shouldn't consume much CPU. But if in doubt, set it to 0 then it won't trigger.
Title: Re: Annoy User
Post by: king kratos on October 29, 2009, 11:15:56 AM
That is good to know. Thanks for the reply. I was planning to use this as a prank to the other admin working with me, but after reading the thread that was posted earlier (about a guy leaving the forum after this prank), I have reconsidered. Besides (I am thinking to myself), this is a really mean and bad prank anyways. LOL

Kratos
Title: Re: Annoy User
Post by: Arantor on October 29, 2009, 11:17:49 AM
Might want to look at that again. Nao/Gilles doesn't appear to have left the SMG project as far as I can see.

It isn't meant to be used as a prank. It is intended fully as a method of getting rid of people that you don't want on the forum. Though I can see why it can be prankish to use too.
Title: Re: Annoy User
Post by: Sorck on October 29, 2009, 06:32:26 PM
Quote from: king kratos on October 29, 2009, 11:15:56 AM
That is good to know. Thanks for the reply. I was planning to use this as a prank to the other admin working with me, but after reading the thread that was posted earlier (about a guy leaving the forum after this prank), I have reconsidered. Besides (I am thinking to myself), this is a really mean and bad prank anyways. LOL

Kratos

If you pull this trick on April 1st then I think your co-admin will take the joke quite well but I wouldn't advise using this on a regular basis unless you want to get rid of a member.

I'm going to have a more entertaining April Fools joke next year, one which involves rigging of the word censorring (changing every instance of 'the' to 'frog' maybe :P)
Title: Re: Annoy User
Post by: king kratos on October 29, 2009, 06:37:45 PM
Yea, it really shouldn't be used as a prank tool, but if you really think about it, I bet you start laughing.

Kratos
Title: Re: Annoy User
Post by: Sorck on October 29, 2009, 06:41:17 PM
I installed this mod and I though I'd acidently added myself to the 'annoy' list. A day later my G-Mod came to me and was shouting that the forum wasn't working. I thought I must have used this mod on him accidently but it turned out I'd simply changed the theme directory (I'm running a test forum on the same DB tables, as it will soon take over my current forum.) The reason it's seperate is as it's easier to mod a forum if it's not live.
Title: Re: Annoy User
Post by: Arantor on October 29, 2009, 07:55:02 PM
It's also possible to forcibly disable it if you have DB access, of course, but either removing yourself from the annoy list (updating members table) or adding to the settings table.
Title: Re: Annoy User
Post by: Arantor on October 30, 2009, 07:59:29 PM
Updated to 1.1 to add configuration on the lengths of delay, plus added a Javascript alert to further irritate.

Also now has RC2 compatibility thanks to Dragooon.
Title: Re: Annoy User
Post by: robg2251 on October 31, 2009, 02:03:38 AM
Any advice for the custom theme users?  I didn't proceed applying this mod after I received the following error..  I wasn't sure what it would do:

*     4.     Execute Modification     ./Themes/default/Profile.template.php     Test failed
      1.    Add After    ./Themes/default/Profile.template.php    Test failed

Everything else looked good.  Let me know a workaround for this, if there is one!   
Title: Re: Annoy User
Post by: Arantor on October 31, 2009, 04:58:04 AM
It just means you have a mod that's already modified the profile template, and you'll have to do that edit manually.

Please see: Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
Title: Re: Annoy User
Post by: busterone on November 12, 2009, 09:29:41 PM
Extremely devilish Mod. I just installed it for a couple of troublesome members.  ;D
I am curious about the url redirect.
Have you considered multiple redirect url choices for a future version. ?
Title: Re: Annoy User
Post by: Arantor on November 12, 2009, 09:31:53 PM
I hadn't, no, but it's quite doable. Though I think I'd limit it to about 5.
Title: Re: Annoy User
Post by: busterone on November 12, 2009, 09:37:41 PM
I was thinking 3 to 5 max. If the same user gets redirected to the same site/page too many times, he may get suspicious that the admin is playing with him. One of my particular troublesome users especially. He has already accused me of it once a few months ago when I had done nothing.  :)
Title: Re: Annoy User
Post by: Arantor on November 12, 2009, 10:50:15 PM
Sounds good to me. I don't think it'd get into the realms of setting %ages of which URL it'd pick, it would just filter through from 'redirect to URL' to randomly picking from the options given.
Title: Re: Annoy User
Post by: DarkSylver on November 27, 2009, 10:16:13 PM
Would be no way to change the MOD to be compatible with 1.1.8?
Title: Re: Annoy User
Post by: Arantor on November 27, 2009, 10:24:04 PM
If I were to backport it to 1.1, I'd do 1.1.10 which is the current version. 1.1.8 has security vulnerabilities.

Note there is a different between "no way" and "no incentive/time/energy/desire". Yes, it would be possible, no I don't want to do it, to be honest.
Title: Re: Annoy User
Post by: Marsh on November 28, 2009, 02:29:10 AM
This mod is brilliant, amazing thanks for posting it.
Title: Re: Annoy User
Post by: MtnDon on November 29, 2009, 12:25:23 AM
This mod alone makes changing to RC2 worth it. I have a couple folks in mind, one for certain.
Title: Re: Annoy User
Post by: Chazz CC on December 01, 2009, 09:08:25 PM
This Mod is GREAT~!~

Is there any chance in future release/revisions for more options on "Feature Specific Irritations"?

Specifically, I would LOVE to apply this to certain members for certain mods only, like SMF Arcade exploiters & SA Battle Mod Bullies/Over Achievers that gain 100+ levels a day & revive players only to repeat kill them..

Most all users are fine in the forums with postings. The only ones we have problems with are in their use of the arcade, shop or battle mods.
Title: Re: Annoy User
Post by: Arantor on December 01, 2009, 09:11:54 PM
I'd have to sit and understand how those other mods work, though it's not out of the realm of possibility.

To be honest though, I wouldn't expect it soon.
Title: Re: Annoy User
Post by: Sudhakar Arjunan on December 02, 2009, 01:11:31 PM
Good Work Author, there is a user Pamela. hope its a bot spotting per day 10000 hits.

Thanks for the mod.
Title: Re: Annoy User
Post by: Sudhakar Arjunan on December 05, 2009, 10:43:39 AM
While using ssi based searched on homepage of website.

I am getting error.

Fatal error: Call to undefined function annoyuser() in /home/homepage/forum/Sources/Load.php on line 1770

Ssi page at /home/itacumen/homepage/

forum located at /home/homepage/forum/
Title: Re: Annoy User
Post by: Arantor on December 05, 2009, 12:20:27 PM
Reason for that is because I'm a bad child and forgot about SSI.php.

After the line that mentions Subs-Auth.php, add:
require($sourcedir . '/AnnoyUser.php');

I'll fix that in the next version.
Title: Re: Annoy User
Post by: Sudhakar Arjunan on December 05, 2009, 07:54:58 PM
Quote from: Arantor on December 05, 2009, 12:20:27 PM
Reason for that is because I'm a bad child and forgot about SSI.php.

After the line that mentions Subs-Auth.php, add:
require($sourcedir . '/AnnoyUser.php');

I'll fix that in the next version.

Will patch it.

What if the homepage of the site which has search function.

Will it also annoy the users from the search result. Mean the guest it annoys or only to the users are in list it will show annoying screens
Title: Re: Annoy User
Post by: Arantor on December 05, 2009, 08:03:02 PM
No, it will only affect the users you have stated as being on the annoy list as the mod's description.
Title: Re: Annoy User
Post by: muddywatergrant on January 05, 2010, 01:00:49 PM
I can't seem to find where under the user profile to add a user to the annoylist.

Using 2.0 RC2.   Where exactly is it?
Title: Re: Annoy User
Post by: Arantor on January 05, 2010, 01:04:27 PM
It appears on the left side of the user's profile. If you have a custom theme with a customised profile it may not appear because it may need to be done manually.

That also assumes it's enabled, too.
Title: Re: Annoy User
Post by: muddywatergrant on January 05, 2010, 01:51:09 PM
Quote from: Arantor on January 05, 2010, 01:04:27 PM
It appears on the left side of the user's profile. If you have a custom theme with a customised profile it may not appear because it may need to be done manually.

That also assumes it's enabled, too.


I don't see where to even enable it.   I don't have Disable checked.

here are two screen shots.   Don't know what I am missing.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi45.tinypic.com%2F2d1si8y.jpg&hash=d688343e8de9a5ab4d20893713785d8dbbc29400)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi49.tinypic.com%2F2ephduu.jpg&hash=7fc2a27d4b01423a79cf7b15128ccbb9910e7dce)
Title: Re: Annoy User
Post by: SAFAD on January 05, 2010, 02:14:57 PM
You Know Trolls ?
No, Its A PHPBB Mod
Like THis
I Enjoied doing In IT In Friends Forums
Now I May Enjoy In Mine
Thx Arni
Title: Re: Annoy User
Post by: muddywatergrant on January 05, 2010, 02:15:48 PM
Arantor.  Thanks.  I figured it out.  I am dumb dumb.
Title: Re: Annoy User
Post by: katdillon on January 09, 2010, 09:48:50 PM
Just wanted to say again how much I love this mod!  Quote from my forum, "Is anyone else having trouble accessing this website?"  LOL
Title: Re: Annoy User
Post by: Arantor on January 09, 2010, 10:08:21 PM
Haha, awesome :)

That reminds me when I get 5 minutes spare I need to fix a random bug this will cause in SSI.php, it's no biggie, and the fix is documented here, just need to package it up and push a new version here.
Title: Re: Annoy User
Post by: watchhorse on January 18, 2010, 03:34:33 PM
Take this much from the server on a huge forum?
Title: Re: Annoy User
Post by: Arantor on January 18, 2010, 03:36:30 PM
Sorry, I don't understand the question?
Title: Re: Annoy User
Post by: watchhorse on January 19, 2010, 11:51:46 AM
Does this mod take much sources so there will be some sort of delay for other users (ex. because to much database-queries)?

I want annoy 1 user and not all the members ;D
Title: Re: Annoy User
Post by: Arantor on January 19, 2010, 11:58:04 AM
No, it's deliberately very light.

The only option that actually has a performance concern of any kind is the random delay one; on some server configurations it may cause issues holding up other requests.
Title: Re: Annoy User
Post by: Arantor on January 25, 2010, 04:54:05 PM
Those who've had issues with SSI, please uninstall and update to 1.2.
Title: Re: Annoy User
Post by: butchs on January 25, 2010, 10:36:46 PM
Can I ask what the fix was?  Is there a link to an explanation?
O:)
Title: Re: Annoy User
Post by: Arantor on January 25, 2010, 10:39:39 PM
The fix is a one line change to SSI.php. Basically, it ensures AnnoyUser.php is called for in SSI.php otherwise it can mess things up.
Title: Re: Annoy User
Post by: Foreclosurepedia on January 26, 2010, 08:19:57 PM
I experience a conflict on my site between the Annoy User mod and this mod; it generates an error about annoyuser () at 1746 or something.  I have SMF 2.0 RC1.2 SimplePortal 2.3 PlayGround Ultimate Designed By Shortie 2009 theme.

I'm not in here a lot, but I thought it should be looked into as I had some use for your mod and just don't have the time to do a bunch of troubleshooting.

If you need the exact error msg contact me at [email protected] and i'll reinstall your mod and copy it.  otherwise, i'll just periodically check back and see if you ever get a fix and then reinstall it.

nice mod BTW!  ;-)
Title: Re: Annoy User
Post by: Arantor on January 26, 2010, 08:53:15 PM
The exact error message would be really useful since there aren't 1700 lines in AnnoyUser.php, so it's somewhere else and without that I can't possibly fix it.
Title: Re: Annoy User
Post by: Land Rover Addict on January 27, 2010, 03:20:07 PM
Can I register my vote for a version to work with SMF 1.1.11 ....PLEASE!
Title: Re: Annoy User
Post by: Arantor on January 27, 2010, 03:31:33 PM
Quote from: Arantor on October 22, 2009, 01:51:42 AM
Due to the reliance on the moderation centre, this mod cannot be backported to 1.1.x

I will not be doing a 1.1 version any time soon even if I figure out an alternative, quite simply I'm not supporting 1.1.x any longer unless the mod basically works without significant changes, and this would be a significant change.
Title: Re: Annoy User
Post by: Foreclosurepedia on February 02, 2010, 12:18:47 PM
Quote from: ibrrorg on January 26, 2010, 08:19:57 PM
I experience a conflict on my site between the Annoy User mod and this mod; it generates an error about annoyuser () at 1746 or something.  I have SMF 2.0 RC1.2 SimplePortal 2.3 PlayGround Ultimate Designed By Shortie 2009 theme.

I'm not in here a lot, but I thought it should be looked into as I had some use for your mod and just don't have the time to do a bunch of troubleshooting.

If you need the exact error msg contact me at [email protected] and i'll reinstall your mod and copy it.  otherwise, i'll just periodically check back and see if you ever get a fix and then reinstall it.

nice mod BTW!  ;-)

so, i deleted the mod and reinstalled it and so far no errors.  tested across multiple acc'ts.  will keep you informed.
Title: Re: Annoy User
Post by: akbora on February 12, 2010, 09:34:56 PM
I install without problem but I can not see any setting in member's profile?

RC2, Curve theme. Thanks
Title: Re: Annoy User
Post by: poolhall on February 14, 2010, 01:28:19 AM
what happens if an annoyed user logs out and starts browsing the forum as guest?
Title: Re: Annoy User
Post by: swordsman1 on February 14, 2010, 05:51:39 AM
The penny drops, unfortunately.

That is the only drawback with this great mod. As soon as they log out and realise whats been happening they can then make all sorts of accusations of dirty tricks.

Any chance of this mod working with ip ranges as well as usernames?
Title: Re: Annoy User
Post by: Arantor on February 14, 2010, 07:44:52 AM
Quote from: poolhall on February 14, 2010, 01:28:19 AM
what happens if an annoyed user logs out and starts browsing the forum as guest?

Then you set it to low levels and given that some of the things it does are applied to specific features, it "may not be applicable" to them as they're a guest.

Quote from: swordsman1 on February 14, 2010, 05:51:39 AM
Any chance of this mod working with ip ranges as well as usernames?

None whatsoever.
Title: Re: Annoy User
Post by: akbora on February 14, 2010, 10:34:08 AM
Quote from: akbora on February 12, 2010, 09:34:56 PM
I installed it without problem but I can not see any setting in member's profile?

RC2, Curve theme. Thanks
Arantor please help me... Thanks
Title: Re: Annoy User
Post by: Arantor on February 14, 2010, 10:39:42 AM
http://custom.simplemachines.org/mods/index.php?mod=2232

QuoteThis is an outdated mod that is no longer supported by its author. Use at your own risk

Sorry.
Title: Re: Annoy User
Post by: poolhall on February 14, 2010, 10:55:55 AM
Quote from: Arantor on February 14, 2010, 07:44:52 AM
Quote from: poolhall on February 14, 2010, 01:28:19 AM
what happens if an annoyed user logs out and starts browsing the forum as guest?

Then you set it to low levels and given that some of the things it does are applied to specific features, it "may not be applicable" to them as they're a guest.
It seems none of them applied to an annoyed user after he logs out... delays, blank screens, server busy - are these supposed to work?
Title: Re: Annoy User
Post by: Arantor on February 14, 2010, 11:05:51 AM
No, because he's logged out. That's how it's always worked, and I never intended to change that behaviour.
Title: Re: Annoy User
Post by: poolhall on February 14, 2010, 11:11:46 AM
Quote from: Arantor on February 14, 2010, 11:05:51 AM
No, because he's logged out. That's how it's always worked, and I never intended to change that behaviour.
OK thanks.
Title: Re: Annoy User
Post by: busterone on February 14, 2010, 02:09:36 PM
Quote from: akbora on February 12, 2010, 09:34:56 PM
I install without problem but I can not see any setting in member's profile?

RC2, Curve theme. Thanks
Make sure that the mod is activated in  Admin/Configuration/Security and Moderation/Annoy User  first
then look here in the user you want to annoy.
Title: Re: Annoy User
Post by: akbora on February 24, 2010, 06:01:53 PM
Is there a Annoyed User's list?

For example we added some users to annoy user from their profle's but where all annoyed user if I want to remove it?
Title: Re: Annoy User
Post by: busterone on February 24, 2010, 06:09:52 PM
It should be displayed in the moderation center.
Title: Re: Annoy User
Post by: akbora on February 24, 2010, 06:20:39 PM
Thank you for your reply but no there isn't it in  moderation center.
Title: Re: Annoy User
Post by: busterone on February 24, 2010, 06:27:22 PM
this is how it is supposed to look in the mod center. Did you get any errors during the install?
Title: Re: Annoy User
Post by: akbora on February 24, 2010, 06:34:00 PM
Very very very thanks. I have found it. It wasn't checked. Thanks again.
Title: Re: Annoy User
Post by: busterone on February 24, 2010, 06:37:31 PM
Good luck  :)
Title: Re: Annoy User
Post by: MarcusJ on February 25, 2010, 12:58:49 PM
I see Arantor is still hanging out on SMF.  However all the mods I've seen authored by him are no longer supported.  It's too bad, so many of them are useful.

Title: Re: Annoy User
Post by: MarcusJ on March 09, 2010, 06:18:38 PM
Glad to have you back, Arantor.  Thanks for updating this one. :)
Title: Re: Annoy User
Post by: [SAP]Francis on March 19, 2010, 07:33:27 PM
Nice. :D Also, awesome, I love Maiden. :D
Title: Re: Annoy User
Post by: Arantor on March 19, 2010, 07:35:45 PM
Thanks to Robbo for taking this one off me.

And yeah, it's one of the first times I've put easter egg comments in - and they were even appropriate :P
Title: Re: Annoy User
Post by: [SAP]Francis on March 21, 2010, 03:15:19 AM
Quote from: Arantor on March 19, 2010, 07:35:45 PM
And yeah, it's one of the first times I've put easter egg comments in - and they were even appropriate :P
Love that. Up the Irons! Lmao.
Title: Re: Annoy User
Post by: nosx on March 22, 2010, 05:31:32 PM
As another user has pointed out there does not seem to be any clear cut way to enable this mod nor do I see the setting to add a user to the annoy list from their profile. I am using the curve theme and RC3 any help would be appreciated.

Nosx
Title: Re: Annoy User
Post by: Arantor on March 22, 2010, 05:36:53 PM
The link isn't there like it is in the screenshot (under 'Add to Buddy List')?
Title: Re: Annoy User
Post by: nosx on March 22, 2010, 05:40:23 PM
No however I am using the ultimate profile mod so that might be the reason. If so is there anyway to make it work with that mod ?
Title: Re: Annoy User
Post by: Arantor on March 22, 2010, 05:43:42 PM
*shrug* You'll have to ask the current maintainer of the mod about integrating it. Likely to be a pain since UP is a law mostly unto itself.
Title: Re: Annoy User
Post by: nosx on March 22, 2010, 05:45:56 PM
Thanks, if all else fails I can always just temp disable the ultimate profile mod long enough to use the annoy user link then re-enable it after.

Nosx
Title: Re: Annoy User
Post by: Mikirin on July 25, 2010, 05:47:47 PM
Where do I find the option to select a user to annoy? I can't seem to find it anywhere.
Title: Re: Annoy User
Post by: busterone on July 25, 2010, 05:58:44 PM
Quote from: Mikirin on July 25, 2010, 05:47:47 PM
Where do I find the option to select a user to annoy? I can't seem to find it anywhere.
See the image in this post from the previous page-
http://www.simplemachines.org/community/index.php?topic=343810.msg2500870#msg2500870 (http://www.simplemachines.org/community/index.php?topic=343810.msg2500870#msg2500870)
Title: Re: Annoy User
Post by: Mikirin on July 25, 2010, 06:01:39 PM
Ah... I think UP is interfering.
Title: Re: Annoy User
Post by: Sabre™ on July 26, 2010, 01:28:39 AM
In your UltimateProfile.template.php search for
// Can they add this member as a buddy?
if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'] && !$context['member']['is_buddy'])
echo '
<img src="', $settings['images_url'] ,'/icons/online.gif" alt="" valign="middle" /> <a href="', $scripturl, '?action=buddies;sa=add;u=', $context['member']['id'], ';sesc=', $context['session_id'], '" onclick="javascript:return confirm(\'', $txt['buddy_explanation']  ,'\')">[', $txt['buddy_add'], ']</a><br />';


add after
        if ($context['can_annoyuser'] && !$context['user']['is_owner'] && empty($modSettings['annoyuser_disabled']))
        echo '
        <img src="', $settings['images_url'] ,'/icons/online.gif" alt="" style="vertical-align: middle;" /> <a href="', $scripturl, '?action=annoyuser;u=', $context['id_member'], ';', $context['session_var'], '=', $context['session_id'], '">[', ($context['member']['annoyuser'] != 0 ? $txt['remove_from_annoy'] : $txt['add_to_annoy']), ']</a><br />';
Title: Re: Annoy User
Post by: JessyKa on September 15, 2010, 05:06:26 PM
Hello,
I know that there isn't a version of the annoy user mod for 1.1.11.
But since I saw that Arrantor ist not longer a member here, I would like to know, if anyone will support this mod? And ist there a tiny chance for it to be adapted to 1.1.11 in the future?
Would be great!
Bye
Jessy
Title: Re: Annoy User
Post by: venex on September 21, 2010, 01:09:34 AM
Hi!
Do you guys now why when I install it... says that everything is correct and no errors... after I install it, I look for it and it's not in the administration.. so I go to uninstall it and it gives me error in everything like if it wasn't installed before :(...
Title: Re: Annoy User
Post by: GunDude on October 01, 2010, 09:28:14 PM
I could sooooo use this  mod for 1.11!  Someone, anyone?  Please?  I don't CARE if there is anyplace that has stats on annoyed users... just give me a way to enable the mod for any user!

This would be so much better than banning the problem a-holes!
Title: Re: Annoy User
Post by: busterone on October 01, 2010, 09:57:00 PM
When Arantor wrote this mod, he stated he had no intention of ever making this compatible for 1.1.x. However, this mod has been taken over by Robbo_, and I do not recall ever seeing what his thoughts are on it.
Title: Re: Annoy User
Post by: Laza on December 04, 2010, 12:44:17 PM
Can you please update this mod for SMF 2.0 RC4  :)
Title: Re: Annoy User
Post by: Sakae on December 14, 2010, 04:37:45 PM
Quote from: Laza on December 04, 2010, 12:44:17 PM
Can you please update this mod for SMF 2.0 RC4  :)

Did anyone tested on SMF 2.0 RC4 yet? I want to install it, but don't know how to test if it works..
Title: Re: Annoy User
Post by: Mari-chi on January 12, 2011, 09:24:31 PM
Hi,

I'm trying to use the Annoy User mod on 2.0 RC4. Currently I'm having trouble with 2 parts (it says 'test failed' when I try to install it):

1) I can't seem to find this part of the code in Load.php:
if (isset($modSettings['integrate_load_theme'])



2) Instead of adding this to ModerationCenter.php:
,
'a' => 'AnnoyedUsers',


I changed it to:
$valid_blocks['a'] = 'AnnoyedUsers';



Does that look right? I wasn't sure; I have absolutely no experience with PHP.
Title: Re: Annoy User
Post by: Spoogs on January 12, 2011, 09:58:55 PM
Quote from: Mari-chi on January 12, 2011, 09:24:31 PM
Hi,

I'm trying to use the Annoy User mod on 2.0 RC4. Currently I'm having trouble with 2 parts (it says 'test failed' when I try to install it):

1) I can't seem to find this part of the code in Load.php:
if (isset($modSettings['integrate_load_theme'])
Code (instead find) Select
// Call load theme integration functions.


Quote from: Mari-chi on January 12, 2011, 09:24:31 PM
2) Instead of adding this to ModerationCenter.php:
,
'a' => 'AnnoyedUsers',


I changed it to:
$valid_blocks['a'] = 'AnnoyedUsers';



Does that look right? I wasn't sure; I have absolutely no experience with PHP.
that seems about right... i do have this mod updated for rc4 for my own use... when i get the chance i'll check the edits for ya
Title: Re: Annoy User
Post by: tbombaci on January 12, 2011, 11:32:58 PM
Quote from: Spoogs on January 12, 2011, 09:58:55 PMthat seems about right... i do have this mod updated for rc4 for my own use... when i get the chance i'll check the edits for ya

That would be great if you could post the edits. I have tried and failed miserably trying to modify the mod to work with RC4.

Tom
Title: Re: Annoy User
Post by: Mari-chi on January 13, 2011, 07:58:14 AM
Quote from: Spoogs on January 12, 2011, 09:58:55 PM
that seems about right... i do have this mod updated for rc4 for my own use... when i get the chance i'll check the edits for ya

Thank-you so much; that would really help. :D
Title: Re: Annoy User
Post by: Spoogs on January 13, 2011, 10:24:20 AM
ok so here we go...

Code (find on themes/default/profile.template.php) Select

if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'])
echo '
<br /><a href="', $scripturl, '?action=buddy;u=', $context['id_member'], ';', $context['session_var'], '=', $context['session_id'], '">[', $txt['buddy_' . ($context['member']['is_buddy'] ? 'remove' : 'add')], ']</a>';

Code (add after) Select


if ($context['can_annoyuser'] && !$context['user']['is_owner'] && empty($modSettings['annoyuser_disabled']))
echo '<br /><a href="', $scripturl, '?action=annoyuser;u=', $context['id_member'], ';', $context['session_var'], '=', $context['session_id'], '">[', ($context['member']['annoyuser'] != 0 ? $txt['remove_from_annoy'] : $txt['add_to_annoy']), ']</a>';




Code (find on sources/load.php) Select
// Call load theme integration functions.
Code (add before) Select
AnnoyUser('popup');




Code (find on sources/moderationcenter.php) Select
$valid_blocks['w'] = 'WatchedUsers';
Code (add after) Select
$valid_blocks['a'] = 'AnnoyedUsers';



Code (add to end of themes/default/moderationcenter.template.php) Select


function template_annoyed_users() {
global $settings, $options, $context, $txt, $scripturl;

echo '
<div class="cat_bar">
<h3 class="catbg">
', $txt['mc_annoyuser'], '
</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content modbox">
<ul class="reset">';

foreach ($context['annoyed_users'] as $user) {
echo '
<li class="smalltext">
<span class="smalltext">', sprintf(!empty($user['last_login']) ? $txt['mc_seen'] : $txt['mc_seen_never'], $user['link'], $user['last_login']), '</span>
</li>';
}

// Don't have any watched users right now?
if (empty($context['annoyed_users']))
echo '
<li>
<strong class="smalltext">', $txt['mc_annoyed_users_none'], '</strong>
</li>';

echo '
</ul>
</div>
<span class="botslice"><span></span></span>
</div>';
}
Title: Re: Annoy User
Post by: Mari-chi on January 15, 2011, 03:59:23 PM
Thanks for taking the time to post that; I think everything but the load.php functions... I don't know why, but sometimes it gives me an error that says it has something to do with that file. :I No idea; I got so scared of jacking up my forum, that I just undid all the manual changes and uninstalled the mod lol!
Title: Re: Annoy User
Post by: Spoogs on January 15, 2011, 04:45:49 PM
lol... no worries... do this... install the mod ingoring all the errors and post those 4 files and i'll fix you up
Title: Re: Annoy User
Post by: Mari-chi on January 19, 2011, 03:42:00 PM
Hi Spoogs! :)

I added everything except AnnoyUser('popup'); in Load.php, and everything is working well... Is AnnoyUser('popup'); only required if I want to use the popup feature? I'm not planning on using that one. :3
Title: Re: Annoy User
Post by: impreza on January 19, 2011, 06:11:15 PM
Great addition - I tested it, I greet and thank
Title: Re: Annoy User
Post by: Arantor on January 19, 2011, 06:14:19 PM
Quote from: Mari-chi on January 19, 2011, 03:42:00 PM
Hi Spoogs! :)

I added everything except AnnoyUser('popup'); in Load.php, and everything is working well... Is AnnoyUser('popup'); only required if I want to use the popup feature? I'm not planning on using that one. :3

It is only required if you want the feature. If you don't, don't worry about it :) I wrote it to be modular like that.
Title: Re: Annoy User
Post by: Mari-chi on January 19, 2011, 07:16:04 PM
Yay, thanks Arantor. <3
Title: Re: Annoy User
Post by: busterone on January 19, 2011, 09:51:56 PM
Enjoy the mod Mari-chi. I have had more fun with this one than any other modification has come close to.  When there is a troublesome member, it is more fun to play with them and irritate the crap out of them without them knowing what you are doing. They usually leave on their own, no need for corrective measures or banning.  ;D
Title: Re: Annoy User
Post by: Arantor on January 20, 2011, 03:07:28 AM
And that's exactly the point. From a psych standpoint, banning doesn't give closure. It's the digital equivalent of slamming the door in the face, it doesn't actually solve anything, just puts a barrier up. The natural instinct, therefore, is to kick against it. Maybe not by brute force on the door itself, but certainly to kick against it in some form.

By gently discouraging them, making it look entirely natural - but not overdoing it, of course - they will get the closure by choosing to leave on their own.
Title: Re: Annoy User
Post by: butchs on January 21, 2011, 08:16:48 PM
Or depending on their attitude the prolonged annoyance can get them really pissed and they just may do worse things like compete with the site or stalk the admin.  Sometimes you never win...  O:)
Title: Re: Annoy User
Post by: Mari-chi on January 21, 2011, 09:18:04 PM
I agree, Arantor; this mod is very subtle in the way it 'encourages' a user out the back door. XD

@busterone: Thanks! I'm having a bit of fun with this one, too! :D
Title: Re: Annoy User
Post by: swordsman1 on January 22, 2011, 04:37:35 AM
Quote from: butchs on January 21, 2011, 08:16:48 PM
Or depending on their attitude the prolonged annoyance can get them really pissed and they just may do worse things like compete with the site or stalk the admin.  Sometimes you never win...  O:)

Especially if the troublemaker logs-out, sees your site is running perfectly again, and realises that you've been toying with them.
Title: Re: Annoy User
Post by: Arantor on January 22, 2011, 04:38:33 AM
Which is why you don't set it too high so it appears genuinely sporadic.
Title: Re: Annoy User
Post by: swordsman1 on January 22, 2011, 04:58:24 AM
Yep that is what I did. 15% of the time my forum goes slow for them. Any more than that I think and they will spot it when they log out. Trouble is that is not enough deterrent and my troublemakers are still here.

It's a pity this mod doesn't use ip numbers as well as usernames, like the vbulletin Miserable Users mod does.
Title: Re: Annoy User
Post by: Arantor on January 22, 2011, 06:44:04 AM
I did that for a reason: IP numbers aren't really that effective, because you have to invariably use a range of them which will hit other users too.
Title: Re: Annoy User
Post by: katdillon on February 15, 2011, 03:28:35 PM
Will this be available for 2.0 RC 5?
Title: Re: Annoy User
Post by: butchs on February 20, 2011, 09:09:04 AM
Quote from: Arantor on January 22, 2011, 06:44:04 AM
I did that for a reason: IP numbers aren't really that effective, because you have to invariably use a range of them which will hit other users too.

Yes and no.   :o

Yes if you are talking about real spammers.   O:)

But I disagree if you are talking about the normal flamer.  Usually some kid who watches way too much professional wrestling.  Most of them have normal internet addresses that are fixed for at least a month.  Maybe you could put an optional time limit like 0-8 weeks on the ip block?    :-[
Title: Re: Annoy User
Post by: Arantor on February 20, 2011, 09:10:35 AM
*shrug* I'm not updating the mod at all anyway. When I wrote it though I wrote it with that express design in mind that it was by user id not by IP block.
Title: Re: Annoy User
Post by: butchs on February 20, 2011, 09:11:24 AM
Bummer..  :(
Title: Re: Annoy User
Post by: Arantor on February 20, 2011, 09:16:37 AM
(Even if I did want to, which I don't, my name's not over the door as it were)

I am however looking at implementing this into something else anyway and doing it a lot more cleanly since I don't have to make it a mod there ;)
Title: Re: Annoy User
Post by: swordsman1 on February 20, 2011, 09:40:11 AM
That's a shame. I think using ip numbers could considerably enhance this mod. It would then appear that there is a genuine fault with the server, rather than the penny dropping as soon as they log out and see the site running fine. And I can just imagine the fuss they would cause if they found out they were the victim of a "dirty trick".

Using ip numbers is no worse than the existing ban mechanism to get rid of troublemakers who return under under a different username name. And Annoy User is so much less confrontational than banning.

I find ip numbers, even in ranges, rarely overlap other users. If does it, couldn't it just be made optional?

However if Arantor can no longer work on this mod, I can respect that, and it still has some use. The level of disruption just has to be kept to a minimum, in the hope they don't notice when they log out. A little is better than nothing. But in my case it hasn't proved to be a disincintive and my troublemakers are still with me.  :(
Title: Re: Annoy User
Post by: Arantor on February 20, 2011, 09:41:36 AM
QuoteHowever if Arantor can no longer work on this mod

It's not so much a case of 'can', more 'choose not to'.
Title: Re: Annoy User
Post by: More-to-life on March 13, 2011, 04:46:25 AM
Hi guys
Will this work with RC5 or will there by a update for it?

Thanks
Title: Re: Annoy User
Post by: Arantor on March 13, 2011, 07:21:41 AM
It might work, can't see there being an update for it here.

There is a version that is updated, and tested on RC5, but it's a paid version.
Title: Re: Annoy User
Post by: live627 on March 18, 2011, 03:10:45 AM
I have just backported this to 1.1. It can be purchased on my site (http://dev.liive627.com, front page enter block)

In 1.1.x, things are positioned a bit differently. The settings are under Features and Options, and the list of annoyed users is under Members in the administration center.
Title: Re: Annoy User
Post by: aidyUK on April 05, 2011, 08:50:29 AM
does this work with RC5 because i would like to use this BIG time
Title: Re: Annoy User
Post by: live627 on April 08, 2011, 02:25:58 AM
There is an authorized version out in the wild that is compatible with SMF 2.0 RC5 at http://dev.live627.com/index.php?action=mods#30
Title: Re: Annoy User
Post by: aidyUK on April 08, 2011, 07:16:16 AM
do i have to pay for this
Title: Re: Annoy User
Post by: Arantor on April 08, 2011, 07:18:40 AM
Well, you can try and make the old free version work on RC5, without much guarantee of support, or you can pay $20 for a version that will be supported for a year from the day of purchase and if there are any updates or new features in that time, you don't have to pay again.
Title: Re: Annoy User
Post by: Sabre™ on May 03, 2011, 07:29:21 AM
@ live627
With your 'paid' version, are there any new functions/features within? I've already changed the necessary code from the original version to sit in rc5(was quite easy), but I'm curios to see what's on offer.
Cheers :)
Title: Re: Annoy User
Post by: live627 on May 03, 2011, 05:04:49 PM
No(t yet). I am thinking of adding IP options but it's  a low priority right now.
Title: Re: Annoy User
Post by: swordsman1 on May 03, 2011, 05:38:15 PM
Sounds promising. I would certainly pay for this mod if it had the ip address feature. Using an ip address is essential to prevent the annoyed user from logging out and realising he has been duped. The whole point of this mod is surely to convincingly trick the troublemaker into thinking the server is faulty and thus make him decide to leave without creating any upset or confrontation. The worse thing that could happen is for that user to discover he is the victim of a 'dirty trick'.

Title: Re: Annoy User
Post by: Arantor on May 03, 2011, 05:42:42 PM
Or you do what I originally intended when I first created it, and don't set the figures too high...
Title: Re: Annoy User
Post by: swordsman1 on May 03, 2011, 05:54:16 PM
I've already set it as high as I dare. 25% of the time my annoyed users experience a delay. Any more than that and I am sure they would spot the difference when they log off. But that hasn't deterred them and my troublemakers remain. I would like to give them a delay 100% of the time whether they are logged in or out, that way they will beleive the server is faulty without smelling a rat.
Title: Re: Annoy User
Post by: Arantor on May 03, 2011, 05:59:42 PM
If you set it to 100% of the time, you might as well just ban them and save yourself the system performance hit.
Title: Re: Annoy User
Post by: Spoogs on May 03, 2011, 06:06:55 PM
It's working just fine for me, and since guests cant do much more than view a board or 2, I could careless what they think after they logout I know they'll be annoyed when logged in.
Title: Re: Annoy User
Post by: swordsman1 on May 03, 2011, 06:20:40 PM
Quote from: Once Upon A Star on May 03, 2011, 05:59:42 PM
If you set it to 100% of the time, you might as well just ban them and save yourself the system performance hit.

But that is the beauty of Annoy User. You can quietly get rid of unwanted users without banning them and really annoying them with all the repercussions that brings. Eg.  them dissing you on other forums, deliberately causing trouble by re-registering, starting DoS attacks, their fans mounting bring back xxxxx campaigns, etc, etc.

But they are not going to go unless the forum appears broken and is painful for them to use, and that means having high figures. But if they then browse the forum whilst logged out (as many members do), then they will immediately spot that there is nothing really wrong with the forum and realise they are the victim of a dirty trick and go on to cause all sorts of trouble for you.

Title: Re: Annoy User
Post by: Arantor on May 03, 2011, 06:22:44 PM
-sigh- It works perfectly for the task for which it was designed. I *deliberately by design* did not include IP address.
Title: Re: Annoy User
Post by: swordsman1 on May 03, 2011, 06:46:26 PM
....which is to quietly encourage troublemakers to leave by making them think there is a problem with the forum, is it not?

I have a big forum with 7 annoyed users and they are still with me weeks later. The reason is because the figures are set too low, but any higher and they will realise that when they log out, there is really no problem at all with the forum and worse, know that I have been playing a 'dirty trick' on them.
Title: Re: Annoy User
Post by: Arantor on May 03, 2011, 06:48:24 PM
Yes, and on the forum for which I wrote it, it did the job perfectly. Thus it does precisely what I made it to do, and any more than that is frankly a bonus. It's not my fault that my needs differed to yours and that I wasn't prepared to write it to meet your needs... Maybe those who look after it now might bother to do so, though.
Title: Re: Annoy User
Post by: ACAMS on May 03, 2011, 10:57:36 PM
HAHAHA.......I like this, I didn't think I would, but I do!




THANKS!
Title: Re: Annoy User
Post by: Sabre™ on May 04, 2011, 04:18:23 AM
Quote from: live627 on May 03, 2011, 05:04:49 PM
No(t yet). ....

Ok cool :)
I'm spewing I lost all of the mods Arantor made, especially the mp3 attachment mod I requested! lol
I left them on a server, forgot about them, and cleared the server ::)
That's the way it goes ... as they say.
Title: Re: Annoy User
Post by: live627 on May 04, 2011, 07:42:19 PM
Quote from: Sabre™ on May 04, 2011, 04:18:23 AM
especially the mp3 attachment mod I requested! lol
Some of Arantor's mod are available to purchase on my site, including that one http://dev.live627.com/index.php?action=mods#27 (He gave them to me to use after he closed his site)
Title: Re: Annoy User
Post by: Sabre™ on May 05, 2011, 03:28:34 AM
Oh yeah nice.
I was lucky enough to have a copy given to me.
Cheers :)
Title: Re: Annoy User
Post by: live627 on May 09, 2011, 02:02:53 AM
http://dev.live627.com/index.php?action=mods#30

1.4 released with support for adding IP addresses to annoy! The entire procedure to annoy a user has not changed; once you choose to annoy a particular user, their IP address gets added to the list.

So what happens if their address changes because their DHCP server updated?
Because SMF refreshes a member's IP once they login, the annoy script detects that and refreshes its data accordingly.

What about performance? The IP lookup generates an extra query.
It's cached. The cache is valid for one hour and is based on the IP being called. Also, the cache is flushed when a user is added or removed from the annoy list.
Title: Re: Annoy User
Post by: swordsman1 on May 09, 2011, 04:23:55 AM
Bravo!!!!   :) :) :)
Title: Re: Annoy User
Post by: Sabre™ on May 27, 2011, 07:38:43 AM
Hi Live.
I've been asked to share the edits I made to get the original package to work in RC5, but I thought I'd better ask you first, as you have your paid version which does the same and more.
Title: Re: Annoy User
Post by: live627 on May 27, 2011, 08:23:58 PM
Back a page or two, Spoogs posted what edits he did for RC4 compatibility. I'm quite sure they work on RC5 and even final, unless he goofed something up badly, which I'm inclined to think not.http://www.simplemachines.org/community/index.php?topic=343810.msg2912206#msg2912206 (Failed edits only)
Title: Re: Annoy User
Post by: Sabre™ on May 27, 2011, 08:52:05 PM
Oh yep, I didn't look back to have a look.
Cool, now peeps will see the link to the edits.
Cheers :)
Title: Re: Annoy User
Post by: studiowi33 on July 30, 2011, 11:49:21 AM
Quote from: Sabre™ on July 26, 2010, 01:28:39 AM
In your UltimateProfile.template.php search for

Thanks Sabre for BOTH posts regarding how to make this work. After editing the 5 files, it works on my 2.0 (final) AND with UP.
(On the POD theme!)

-s.w
Title: Re: Annoy User
Post by: jsamples on August 18, 2011, 04:28:45 PM
   
What happened to the smf 1.x.x version of "Annoy User" Mod ?

I see its been ported to smf 2.0 but I can't find the older version. Can I please d/l the package from someone?

Thanks
Title: Re: Annoy User
Post by: live627 on August 19, 2011, 01:46:15 AM
http://livemods.net/index.php?action=mods#30
Title: Re: Annoy User
Post by: wynnyelle on August 19, 2011, 02:16:33 AM
Does this work with IPs only? Like, it would allow it to do that even if an annoying user is logged out?
Title: Re: Annoy User
Post by: live627 on August 19, 2011, 04:28:14 AM
Yes it does. The paid version, that is.
Title: Re: Annoy User
Post by: wynnyelle on August 27, 2011, 05:55:44 PM
Thanks for letting me know. What does the paid cost?
Title: Re: Annoy User
Post by: live627 on August 27, 2011, 06:24:17 PM
$20 with a full year of support and updates included.
Title: Re: Annoy User
Post by: lazylivin on September 16, 2011, 08:12:15 PM
Thanks for the edits spoog. Worked great on 2.0 Final
Title: Re: Annoy User
Post by: Hackathon on September 17, 2011, 12:52:44 PM
Quote from: lazylivin on September 16, 2011, 08:12:15 PM
Thanks for the edits spoog. Worked great on 2.0 Final

How did you make it work for 2.0?  ???
Title: Re: Annoy User
Post by: live627 on September 17, 2011, 01:02:00 PM
He looked back a few pages to the edits from Spoogs
Title: Re: Annoy User
Post by: Heeks on October 05, 2011, 01:49:29 PM
Did someone already post these modified files or do I have to modify them by myself ?

If i have to modify them, i'll post for other users.

Thx to Spoogs ;)
Title: Re: Annoy User
Post by: Heeks on October 07, 2011, 05:14:30 AM
?
Title: Re: Annoy User
Post by: ACAMS on October 24, 2011, 03:12:41 PM
It would be nice if we could see a list of all users added to the annoy user, or set a certain number of days it will annoy.
Title: Re: Annoy User
Post by: live627 on October 25, 2011, 12:08:29 AM
Doesn't the moderation block list them all?
Title: Re: Annoy User
Post by: ACAMS on October 25, 2011, 08:37:27 AM
Not that I see.
Title: Re: Annoy User
Post by: live627 on October 25, 2011, 05:26:09 PM
You probably need to turn it on under Setttings
Title: Re: Annoy User
Post by: ACAMS on October 25, 2011, 08:52:28 PM
This is all I can find


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fgametechmods.com%2FPics%2Fannoysettings.jpg&hash=a89b402da10db21e1c7bc53c40de699faf3892b2)
Title: Re: Annoy User
Post by: live627 on October 25, 2011, 11:29:32 PM
No no I meant in the moderation center
Title: Re: Annoy User
Post by: ACAMS on October 26, 2011, 08:04:59 AM
Thanks, I didn't even know that was there!
It would still be nice if there was a timer on the number of days to annoy, kinda like the warnings system.
Title: Re: Annoy User
Post by: snadge on October 26, 2011, 06:28:52 PM
any chance of an update for it too work on 2.0.1...?

tried emulation and fails on many test instals
Title: Re: Annoy User
Post by: live627 on October 26, 2011, 11:56:24 PM
http://www.simplemachines.org/community/index.php?topic=343810.msg3162758#msg3162758
Title: Re: Annoy User
Post by: snadge on October 27, 2011, 09:43:41 AM
Quote from: Spoogs on January 13, 2011, 10:24:20 AM
ok so here we go...

Code (find on themes/default/profile.template.php) Select

if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'])
echo '
<br /><a href="', $scripturl, '?action=buddy;u=', $context['id_member'], ';', $context['session_var'], '=', $context['session_id'], '">[', $txt['buddy_' . ($context['member']['is_buddy'] ? 'remove' : 'add')], ']</a>';

Code (add after) Select


if ($context['can_annoyuser'] && !$context['user']['is_owner'] && empty($modSettings['annoyuser_disabled']))
echo '<br /><a href="', $scripturl, '?action=annoyuser;u=', $context['id_member'], ';', $context['session_var'], '=', $context['session_id'], '">[', ($context['member']['annoyuser'] != 0 ? $txt['remove_from_annoy'] : $txt['add_to_annoy']), ']</a>';




Code (find on sources/load.php) Select
// Call load theme integration functions.
Code (add before) Select
AnnoyUser('popup');




Code (find on sources/moderationcenter.php) Select
$valid_blocks['w'] = 'WatchedUsers';
Code (add after) Select
$valid_blocks['a'] = 'AnnoyedUsers';



Code (add to end of themes/default/moderationcenter.template.php) Select


function template_annoyed_users() {
global $settings, $options, $context, $txt, $scripturl;

echo '
<div class="cat_bar">
<h3 class="catbg">
', $txt['mc_annoyuser'], '
</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content modbox">
<ul class="reset">';

foreach ($context['annoyed_users'] as $user) {
echo '
<li class="smalltext">
<span class="smalltext">', sprintf(!empty($user['last_login']) ? $txt['mc_seen'] : $txt['mc_seen_never'], $user['link'], $user['last_login']), '</span>
</li>';
}

// Don't have any watched users right now?
if (empty($context['annoyed_users']))
echo '
<li>
<strong class="smalltext">', $txt['mc_annoyed_users_none'], '</strong>
</li>';

echo '
</ul>
</div>
<span class="botslice"><span></span></span>
</div>';
}


is that after you install it and it fails on 2.0.1?  im a noob but can edit the files
Title: Re: Annoy User
Post by: Chalky on March 10, 2012, 08:15:56 PM
Are there any plans to upgrade for 2.0.2?  I would love to have this.
Title: Re: Annoy User
Post by: Chalky on March 11, 2012, 09:11:51 AM
Quote from: Spoogs on January 15, 2011, 04:45:49 PM
lol... no worries... do this... install the mod ingoring all the errors and post those 4 files and i'll fix you up

Will this work for installing on 2.0.2 as well?  Attached screenshot shows the failed tests I'm getting.
Title: Re: Annoy User
Post by: GlitchPC on April 01, 2012, 10:19:40 PM
Question regarding this modification.

I'm currently running SMF 2.0.2 and trying to install this mod using RC3 emulation.  It would seem some of the edits, the mod said were successful, were not done.  One of those edits were as follows with the Load.php file...

Find:
mem.id_member

Add After:
, mem.annoyuser

I have 12 instances of mem.id_member.  Which one do I add ,mem.annoyuser after?

Here are the 12 locations...

1.  WHERE mem.id_member = {int:id_member}

2.  IFNULL(mem.id_member, 0) AS id_moderator,

3.  LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = mods.id_member)

4.  $select_columns = '
         IFNULL(lo.log_time, 0) AS is_online, IFNULL(a.id_attach, 0) AS id_attach, a.filename, a.attachment_type,
         mem.signature, mem.annoyuser, mem.personal_text, mem.location, mem.gender, mem.avatar, mem.id_member, mem.member_name,

5.  LEFT JOIN {db_prefix}log_online AS lo ON (lo.id_member = mem.id_member)

6.  LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)

7.  $select_columns = '
         IFNULL(lo.log_time, 0) AS is_online, IFNULL(a.id_attach, 0) AS id_attach, a.filename, a.attachment_type,
         mem.signature, mem.annoyuser, mem.personal_text, mem.location, mem.gender, mem.avatar, mem.id_member, mem.member_name,

8.  LEFT JOIN {db_prefix}log_online AS lo ON (lo.id_member = mem.id_member)

9.  LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)

10.  $select_columns = '
         mem.id_member, mem.member_name, mem.real_name, mem.email_address,

11.  IFNULL(mem.id_member, 0) AS id_moderator,

12.  LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = mods.id_member)

The above 12 occurrences are in order of appearance in the Load.php file.  I can rule out a couple of them...but, I wouldn't want to be wrong.  Like I always say..."I'm not, really, a coder."

The above information is based on the information from SMF's Modifications via the Package Parser for 2.0 RC3.  This may be a typo...since I went ahead and made all the manual edits from the Parser...except for that one...and it appears to be working.  Yet...I would like to get some clarification on it.

Thanks, in advance, for any light you can shed on this issue...
Title: Re: Annoy User
Post by: GlitchPC on April 03, 2012, 09:42:18 AM
Politely bumping the above post...
Title: Re: Annoy User
Post by: Chalky on April 05, 2012, 02:15:10 PM
Did you ever figure this out GlitchPC?  I want to try installing this but I'm expecting the same problem.
Title: Re: Annoy User
Post by: Chalky on April 05, 2012, 02:41:08 PM
No that wasn't one of my failed errors, but this may help you.  This is part of the code where my installation did it for me :)



elseif ($set == 'profile')
{
$select_columns = '
IFNULL(lo.log_time, 0) AS is_online, IFNULL(a.id_attach, 0) AS id_attach, a.filename, a.attachment_type,
mem.signature, mem.annoyuser, mem.personal_text, mem.location, mem.gender, mem.avatar, mem.id_member, mem.member_name,
mem.real_name, mem.email_address, mem.hide_email, mem.date_registered, mem.website_title, mem.website_url,
mem.openid_uri, mem.birthdate, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login, mem.karma_good,
mem.karma_bad, mem.member_ip, mem.member_ip2, mem.lngfile, mem.id_group, mem.id_theme, mem.buddy_list, mem.ptweet,
mem.pm_ignore_list, mem.pm_email_notify, mem.pm_receive_from, mem.time_offset' . (!empty($modSettings['titlesEnable']) ? ', mem.usertitle' : '') . ',
mem.time_format, mem.secret_question, mem.is_activated, mem.additional_groups, mem.smiley_set, mem.show_online,
mem.total_time_logged_in, mem.id_post_group, mem.notify_announcements, mem.notify_regularity, mem.notify_send_body,
mem.thank_you_post_made, mem.thank_you_post_became, last_thank_you_time,
mem.notify_types, lo.url, mg.online_color AS member_group_color, IFNULL(mg.group_name, {string:blank_string}) AS member_group,
pg.online_color AS post_group_color, IFNULL(pg.group_name, {string:blank_string}) AS post_group, mem.ignore_boards, mem.warning,
CASE WHEN mem.id_group = 0 OR mg.stars = {string:blank_string} THEN pg.stars ELSE mg.stars END AS stars, mem.password_salt, mem.pm_prefs';
$select_tables = '
LEFT JOIN {db_prefix}log_online AS lo ON (lo.id_member = mem.id_member)
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
LEFT JOIN {db_prefix}membergroups AS pg ON (pg.id_group = mem.id_post_group)
LEFT JOIN {db_prefix}membergroups AS mg ON (mg.id_group = mem.id_group)';
}
elseif ($set == 'minimal')
{
$select_columns = '
mem.id_member, mem.annoyuser, mem.member_name, mem.real_name, mem.email_address, mem.hide_email, mem.date_registered,  <==== THIS LINE HERE***
mem.thank_you_post_made, mem.thank_you_post_became, last_thank_you_time,
mem.posts, mem.last_login, mem.member_ip, mem.member_ip2, mem.lngfile, mem.id_group';
$select_tables = '';
}
else
trigger_error('loadMemberData(): Invalid member data set \'' . $set . '\'', E_USER_WARNING);

if (!empty($users))
{
// Load the member's data.
$request = $smcFunc['db_query']('', '
SELECT' . $select_columns . '
FROM {db_prefix}members AS mem' . $select_tables . '
WHERE mem.' . ($is_name ? 'member_name' : 'id_member') . (count($users) == 1 ? ' = {' . ($is_name ? 'string' : 'int') . ':users}' : ' IN ({' . ($is_name ? 'array_string' : 'array_int') . ':users})'),
array(
'blank_string' => '',
'users' => count($users) == 1 ? current($users) : $users,
)
);
Title: Re: Annoy User
Post by: OCJ on April 05, 2012, 03:26:57 PM
Wish I could use this but all my users at the moment are 'normal'. I will never forget seeing the 'Troll' mod description on phpbb... couldnt stop laughing.
I think the popup message gives it away ... just random trouble without pinpointing the source (answer) is so much more fun.

I would also recommend a posting error - after some serious typing the worst thing is having it all lost. And a timeout- logout.
... and random redirection to different boards  :D
Title: Re: Annoy User
Post by: GlitchPC on April 06, 2012, 09:44:33 AM
I just by-passed the above edit and it seemed to work fine.  Unfortunately, I uninstalled it, as well.  No support...
Title: Re: Annoy User
Post by: shazoo! on April 06, 2012, 07:30:22 PM
I nominate this mod for the most awesome mod of the year.

I LOVE THIS!!!
Title: Re: Annoy User
Post by: OCJ on May 03, 2012, 07:52:08 AM
Now I need this mod ... unfortunately I cant see anything in the user profile to activate it. I know there are a lot of edits needed for 2.0.2 and it seems, code format changes. Any chance of upgrading it to 2.0.2 so it installs without too many manual edits from the old RC release?
Or perhaps a complete list of all edit changes here in 1 post.

A  forum owner with troll infestation,
Andy
Title: Re: Annoy User
Post by: Arantor on May 03, 2012, 07:56:25 AM
I don't recall the profile template changing since the RC, so I don't see what you'd need to change.
Title: Re: Annoy User
Post by: OCJ on May 03, 2012, 09:38:44 AM
It failed the package manager test on the profile part (as well as some others). The code couldnt be found and looked like it had been changed in format. There is a post here about it but when I tried guessing the changes it didnt work.

Also this code change:
http://www.simplemachines.org/community/index.php?topic=343810.msg2911671#msg2911671


Will be away but I might try it again next week and collect all the bits and pieces causing problems
Title: Re: Annoy User
Post by: Arantor on May 03, 2012, 02:06:01 PM
If the code's changed it was almost certainly because of other mods. Those other changes affect early loading and the moderation center, not the profile area.
Title: Re: Annoy User
Post by: FrizzleFried on May 03, 2012, 02:27:35 PM
Just replying so I can keep track of this.  I too would like to see an update.  I attempted to manually edit however there are a few things that have changed significantly enough that I didn't want to mess with it but it would be a cool mod to implement.  I just happen to have a user that "pushes the line" all the time... just one... and I know if I ban his ass others will complain.  I'd rather just make it difficult for him to use the forum.

:)

Title: Re: Annoy User
Post by: Arantor on May 03, 2012, 02:52:46 PM
I know that Live627 did a paid variation on this mod which does work on later SMF versions, but I really don't know what changed that required a code edit; when I originally wrote this, though it was before Curve was even public.
Title: Re: Annoy User
Post by: Chalky on May 03, 2012, 02:55:39 PM
I installed this successfully on 2.0.2, though a few manual edits were required due to my non-default theme :)
Title: Re: Annoy User
Post by: MtnDon on July 28, 2012, 10:52:55 PM
Thank you for porting this to 2.0.2!!!   :) :) :) :) :)

I've been waiting a long time, but I was patient.   Just got the notification email on the update. Thanks again!
Title: Re: Annoy User
Post by: Spoogs on July 28, 2012, 11:05:44 PM
You're welcome... I haven't really been around much in a while... but hey it's done now :)
Title: Re: Annoy User
Post by: adapa on December 11, 2012, 10:30:05 PM
I am embarrassed to ask,
how do I turn it on for a particular user? I'm beating my head up against a wall here.

particulars,
2.0.2
i had no problem installing the mod.
Core theme
Title: Re: Annoy User
Post by: OCJ on December 12, 2012, 05:21:39 AM
Page 1 of this discussion.

QuoteUsers to be added to the 'annoy' list are chosen through that user's profile. A list of the last ten active 'annoyed users' are visible through a new area in the moderation centre.
Title: Re: Annoy User
Post by: adapa on December 12, 2012, 06:44:26 AM
but *where* in the users profile?  :-[

I've checked Admin->members->selected a member->modify profile (all sub sections checked for the correct screen) and everywhere else I could think of but do not see the indicated screen.

thank you for answering!

Title: Re: Annoy User
Post by: Kendrall on December 12, 2012, 01:34:42 PM
*evil genius grin*

Oh, I could so use this to deal with the occasional forum lurker who just won't go away...   ;D
Title: Re: Annoy User
Post by: Chalky on December 12, 2012, 05:06:17 PM
Quote from: adapa on December 12, 2012, 06:44:26 AM
but *where* in the users profile?  :-[

I've checked Admin->members->selected a member->modify profile (all sub sections checked for the correct screen) and everywhere else I could think of but do not see the indicated screen.

thank you for answering!

At the top left of the user's profile, below their name, it says "Add to Annoy List".
Title: Re: Annoy User
Post by: adapa on December 13, 2012, 03:46:49 PM
is this the screen you mean?
Title: Re: Annoy User
Post by: Chalky on December 13, 2012, 03:54:44 PM
Yes.  It's right where yours says "add to buddy list". 

Go to your admin panel > security & moderation > annoy user and make sure the mod isn't disabled.  If the solution isn't there you may have to compare your code with the mod parse instructions.  I had to do loads of manual edits when I installed mine, maybe you missed one  :-\
Title: Re: Annoy User
Post by: adapa on December 13, 2012, 05:55:09 PM
bingo, that was it
thank you!  ;D ;D
Title: Re: Annoy User
Post by: Chalky on December 13, 2012, 06:05:24 PM
Excellent!  :D
Title: Re: Annoy User
Post by: stylusss on December 15, 2012, 06:45:43 PM
Is there a 1.x version of this? ???
Title: Re: Annoy User
Post by: live627 on December 15, 2012, 10:11:03 PM
Quote from: stylusss on December 15, 2012, 06:45:43 PM
Is there a 1.x version of this? ???
http://livemods.net/index.php?action=mods#30
Title: Re: Annoy User
Post by: stylusss on December 16, 2012, 01:24:53 AM
Quote from: live627 on December 15, 2012, 10:11:03 PM
Quote from: stylusss on December 15, 2012, 06:45:43 PM
Is there a 1.x version of this? ???
http://livemods.net/index.php?action=mods#30

Thank you!
Title: Re: Annoy User
Post by: nyall on March 16, 2013, 01:19:50 PM
Any chance of having it updated to work with 2.0.4 ?  Or what changes may be neede ?

All I get when trying to install it, is saying that I have an incompatible SMF version or it is damaged.
Title: Re: Annoy User
Post by: Chalky on March 16, 2013, 01:39:41 PM
It works fine on 2.0.4, although I had to make a few manual edits.  Try emulating Package Manager to an earlier version and try to install it again.  At the bottom of the Browse Packages screen, hit "Advanced" and enter an earlier version.  You might have to go back to 2.0 RC4.  Don't forget to revert again after it's installed ;)
Title: Re: Annoy User
Post by: nyall on March 16, 2013, 01:56:34 PM
Spot on, it is now installed.

That "Advanced" link is really hidden, took me more time finding it with your hints than doing the actual modification ;-)

Thanks mate !
Title: Re: Annoy User
Post by: Chalky on March 16, 2013, 02:04:12 PM
Excellent!  :D
Title: Re: Annoy User
Post by: adapa on April 28, 2013, 04:51:52 PM
i've been getting an greater amount of delays & white screens since installing Annony user

I'm torn between two causes, annoy user & having to many mods OR server slow downs. 

I would like to try to uninstall Annoy user to see if that helps but it is not listed in my Package Manager/Browse Packages page.  just listed on the installed packages page.

how can I uninstall this app?
Title: Re: Annoy User
Post by: Chalky on April 28, 2013, 04:53:15 PM
See my post above, reply #246.  Same applies ;)
Title: Re: Annoy User
Post by: Arantor on April 28, 2013, 05:18:31 PM
Quotei've been getting an greater amount of delays & white screens since installing Annony user

Assuming you didn't have it set on your own account, there is no reason for it to affect you and thus no reason to uninstall it.
Title: Re: Annoy User
Post by: adapa on April 28, 2013, 07:29:33 PM
I agree Arantor
I'm sure it isn't the cause of the problems.  I strongly suspect my slow downs/errors are due to my hosting service but i need to cross this off  my list before i start the process of hounding my hosting service to move me to a better server.

thx ChalkCat, I will try that!

Title: Re: Annoy User
Post by: DTroup on May 18, 2013, 04:21:23 PM
Where is the link to mod button? I've searched and read the entire thread 3 times now and it still eludes me. I feel a little embarrassed asking but it looks to be an awesome mod.  8) < Blind Smilely
Title: Re: Annoy User
Post by: Arantor on May 18, 2013, 04:24:44 PM
Well, there's always the main mod site where you can search for it, but it's http://custom.simplemachines.org/mods/index.php?mod=2232

The problem was that when I last added features to the mod back in 2009, I copied the updated listing from the mod site back to the first post of this thread, and managed to remove the link-to-mod that is otherwise present.
Title: Re: Annoy User
Post by: DTroup on May 18, 2013, 05:10:24 PM
Got it and thank you! I have one particular user that I can't wait to try it out on. he he he  ;D
Title: Re: Annoy User
Post by: FrizzleFried on May 19, 2013, 12:41:14 PM
This mod works beautifully.  I have two trolls that I redirect to a duplicate forum... it's hilarious... they're carrying on trolling conversations on that "fake" site... wondering where everyone is.


Gold... pure comedy gold...

Title: Re: Annoy User
Post by: Arantor on May 19, 2013, 12:42:54 PM
3 1/2 years later and it's still doing its job :)

Makes me happy to see it.
Title: Re: Annoy User
Post by: Mr Robville on December 08, 2013, 09:47:35 AM
Would it be possible to make this mod compatible to V 2.0.6?
I can't imagine how much fun I can have with bumping bad users with server load errors and other nonsense. Comedy gold indeed!  ;D
Title: Re: Annoy User
Post by: Chalky on December 08, 2013, 09:50:47 AM
It already works wonderfully on 2.0.6.  http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version  Emulate to 2.0.4  ;)
Title: Re: Annoy User
Post by: Mr Robville on December 08, 2013, 01:54:53 PM
Ooh, thanks a lot! I'm going to enjoy this.  :P
Title: Re: Annoy User
Post by: Chalky on December 08, 2013, 01:56:06 PM
You are  :D
Title: Re: Annoy User
Post by: busterone on December 08, 2013, 02:17:57 PM
I have had so much fun messing with the few trolls that have joined my forum. I had one that I had problems with quite a few times, even temporarily banned him for 30 days once.  He eventually got tired of all the errors this mod gave him and left. He tried to return under a different name a few months later, but his IP and posting style gave him away immediately.  I put him back on the annoy list. After a week, he has not logged back on in over two months. :)  This is by far the best way to deal with troublesome members.
Title: Re: Annoy User
Post by: FrizzleFried on December 12, 2013, 02:57:05 PM
Quote from: busterone on December 08, 2013, 02:17:57 PM
I have had so much fun messing with the few trolls that have joined my forum. I had one that I had problems with quite a few times, even temporarily banned him for 30 days once.  He eventually got tired of all the errors this mod gave him and left. He tried to return under a different name a few months later, but his IP and posting style gave him away immediately.  I put him back on the annoy list. After a week, he has not logged back on in over two months. :)  This is by far the best way to deal with troublesome members.

My only "wish" for this mod would be "per user" settings ... some users deserve to be annoyed more than others...

;)

Nothing quite like forwarding them to a dummy "copy" of your site and letting them wonder why there is no traffic...

:D

Title: Re: Annoy User
Post by: Arantor on December 12, 2013, 03:00:10 PM
I've been thinking about doing a new version of this for 2.1 and I might just add that. I had a lot of fun the first time around with this... I wonder if anyone realised the Iron Maiden lyrics ;)
Title: Re: Annoy User
Post by: TrickyRicky on December 12, 2013, 03:25:09 PM
Quote from: Arantor Beeblebrox the First on December 12, 2013, 03:00:10 PM
I've been thinking about doing a new version of this for 2.1 and I might just add that. I had a lot of fun the first time around with this... I wonder if anyone realised the Iron Maiden lyrics ;)

Looking forward to new update.
Title: Re: Annoy User
Post by: Arantor on December 12, 2013, 03:57:05 PM
Wait, I just said I was *thinking* about it. Nowhere did I say I *would*, because it's solely dependent on having the time to actually make it - and if I'm making it, I'm not making SMF 2.1...
Title: Re: Annoy User
Post by: glennk on December 17, 2013, 06:11:58 PM
does this work on 206 ?
Title: Re: Annoy User
Post by: Arantor on January 31, 2014, 02:06:24 PM
Updated for 2.0.7.

One of these days I'm planning on rewriting this somewhat to use features that now exist in SMF that didn't when I wrote it - like hooks. (This was written originally for 2.0 RC1.2 and tweaked for 2.0 RC2, an entire year before the hook improvements in RC4 that would have made it possible)

But I want to add new 'annoy' features as well, so any ideas you have to make it worth doing a 1.3 update, please let me know :) (I have a few of my own but some of those may have to wait until SMF 2.1 to be implemented)
Title: Re: Annoy User
Post by: RoadRanger on January 31, 2014, 04:39:23 PM
Thanks again for the update, I just installed it 8) .
Title: Re: Annoy User
Post by: Scratching my Head on March 29, 2014, 06:34:50 PM
Quote from: Arantor on January 31, 2014, 02:06:24 PM

But I want to add new 'annoy' features as well, so any ideas you have to make it worth doing a 1.3 update, please let me know :) (I have a few of my own but some of those may have to wait until SMF 2.1 to be implemented)

Making their posts appear only to them would be trick.
Title: Re: Annoy User
Post by: sawz on March 30, 2014, 10:36:21 AM
very nice Arantor, i got a good laugh out of it. just imagine the possibilities. lol
Title: Re: Annoy User
Post by: FrizzleFried on June 14, 2014, 11:45:39 AM
I do believe the place to SET ANNOY is in the PROFILE>SUMMARY section?  Right?  It's no longer there.  I can't set or disable ANNOY.  I am guessing some upgrade and/or mod changed something.  What can I look for in what file to try to fix this issue?  Is there some other location I can SET/DISABLE annoy on a specific person?

Thanks!

Title: Re: Annoy User
Post by: Arantor on June 14, 2014, 12:47:50 PM
That's where it's always been and it hasn't changed. Nor is there anywhere else. If you're using Ultimate Profile this could be the problem, or if you changed themes and haven't reapplied any changes to the theme's Profile.template.php file.
Title: Re: Annoy User
Post by: FrizzleFried on June 14, 2014, 03:39:00 PM
Quote from: ‽ on June 14, 2014, 12:47:50 PM
That's where it's always been and it hasn't changed. Nor is there anywhere else. If you're using Ultimate Profile this could be the problem, or if you changed themes and haven't reapplied any changes to the theme's Profile.template.php file.

No.. the only mods I've installed recently have been the MENTION mod... but i use this mod (the annoy mod) so infrequently it could have happened a while ago.   It's installed... I can see the annoy ADMIN section... I can see the list in my moderating screen... just no link to enable/disable annoy from individual users.

Looking at the profile screen I DID install the NEW TOPICS / REPLIES by user mod at some point.
Title: Re: Annoy User
Post by: Arantor on June 14, 2014, 05:39:21 PM
*shrug* Then I don't know what you've done. The mod only touches the profile code for adding the link, and it's never done anything different. If it's not working for you, check the relevant code is inside the profile template.
Title: Re: Annoy User
Post by: br360 on June 15, 2014, 03:25:08 PM
Quote from: Scratching my Head on March 29, 2014, 06:34:50 PM
Quote from: Arantor on January 31, 2014, 02:06:24 PM

But I want to add new 'annoy' features as well, so any ideas you have to make it worth doing a 1.3 update, please let me know :) (I have a few of my own but some of those may have to wait until SMF 2.1 to be implemented)

Making their posts appear only to them would be trick.

I'll second that. If this mod does get updated in the future, that would be an excellent feature to have.
Title: Re: Annoy User
Post by: Arantor on June 15, 2014, 04:54:45 PM
The problem with doing that is the performance penalty that gets applied.
Title: Re: Annoy User
Post by: br360 on June 15, 2014, 06:18:24 PM
That's too bad. Very little kills off a troll or problem member faster than nobody feeding it. I could only imagine having them wonder why all of their posts keep getting ignored.  :D

Could it possibly be an added feature in the acp, that could be enabled for a forum using a vps or dedicated server- or is the performance hit that big of an issue that it just isn't worth it?
Title: Re: Annoy User
Post by: Arantor on June 15, 2014, 06:20:47 PM
It's also seriously effort intensive since you have to do it everywhere the user's posts could be displayed, and there's a lot of those.

You pretty much need it baked in deeper to the core than a mod should be doing.

Not to mention that the minute the troll logs out and browses as a guest, they would see their posts were hidden anyway.
Title: Re: Annoy User
Post by: swordsman1 on June 15, 2014, 06:36:51 PM
Quote from: ‽ on June 15, 2014, 06:20:47 PM
Not to mention that the minute the troll logs out and browses as a guest, they would see their posts were hidden anyway.

That applies to all this mod's 'features'. It's a massive drawback and the reason I've stopped using it. As soon as the troublemaker logs off and sees everything operating normally the penny will drop and they will realise they've been tricked.

Perhaps a better new feature that would one avoids this problem. Eg randomly logging out.
Title: Re: Annoy User
Post by: Arantor on June 15, 2014, 06:39:06 PM
Not quite the same way (except for the angry warning), because server errors can come and go.
Title: Re: Annoy User
Post by: swordsman1 on June 15, 2014, 06:42:18 PM
Server errors only occurring when the troll is logged in, but fine when they're logged out. They're not that thick.
Title: Re: Annoy User
Post by: Arantor on June 15, 2014, 06:50:50 PM
*shrug* I don't use the mod myself, never actually did use it outside testing, only because people asked for it.
Title: Re: Annoy User
Post by: swordsman1 on June 15, 2014, 07:42:32 PM
If it wasn't for the logging out issue giving the game away, this mod would be excellent. Making troublemakers quietly leave is far better than using the blunt instrument of banning them. The only solution I can see is throwing up 'problems' that would only legitimately occur when logged in eg. perhaps throwing some "user errors" of some kind, or even better randomly logging them out because their "session has expired" or something.

Title: Re: Annoy User
Post by: Arantor on June 15, 2014, 07:45:05 PM
Trouble is, there's no good way to get around that fact. As I said 4 1/2 years ago and will say again: doing it off IP address isn't reliable for guest browsing, nor can you safely use cookies because of the proliferation of multiple devices these days - someone only has to browse on their phone instead of their laptop and the game's up.

Logging out is doable. Messy but doable. Other logged-in-only errors are doable too even without giving the game away too much.
Title: Re: Annoy User
Post by: swordsman1 on June 15, 2014, 08:05:42 PM
Quote from: ‽ on June 15, 2014, 07:45:05 PM
Logging out is doable. Messy but doable. Other logged-in-only errors are doable too even without giving the game away too much.

Go for it!!  8)
Title: Re: Annoy User
Post by: Arantor on June 15, 2014, 08:39:08 PM
Trouble is, over the last few months I've found a sense of disillusionment with regards to anything SMF related :(
Title: Re: Annoy User
Post by: butchs on June 16, 2014, 01:41:02 PM
I find that hard to believe.  You have been disillusioned much longer than that.  :)
Title: Re: Annoy User
Post by: Arantor on June 16, 2014, 02:35:31 PM
It's been getting worse :(
Title: Re: Annoy User
Post by: butchs on June 16, 2014, 09:22:35 PM
Me too, every time I see this...

QuoteMOVED: XSS vulnerability
« on: Today at 03:13:56 PM »
This topic has been moved to private board
« Last Edit: Today at 03:15:46 PM by CoreISP »
Title: Re: Annoy User
Post by: Arantor on June 16, 2014, 09:28:22 PM
There's a reason for that. Responsible disclosure means not spitting it out in public for anyone to see. It means notifying the people responsible and discussing resolution towards a fixed release.

The reason for the edit is because the standard move notice, of course, leaves the board name in there and a link to the board, but it's not public so it's not especially clever to link to it anyway.
Title: Re: Annoy User
Post by: butchs on June 17, 2014, 09:04:43 AM
To an American it is censorship and hiding something under the rug.  Not to mention it annoys me greatly because it prevents me from checking to see if I saw it before
Title: Re: Annoy User
Post by: Arantor on June 17, 2014, 11:49:18 AM
The correct behaviour would have been if the reporter had used the security report function rather than posting it publicly because public reports of vulnerabilities suddenly put everyone at risk.

If I found a major vulnerability in one of your mods, would you prefer I told everyone about it (putting everyone at risk) or told you privately?

In this case, this is a new issue that was not known before.
Title: Re: Annoy User
Post by: Burke ♞ Knight on June 26, 2014, 10:14:16 PM
I just tested this on a test account on an old site I just use for testing purposes...
ROFLMAO!!!! Is one thing I can say...

I think this is funny as can be. I may have to add it to a couple sites....LOL
Title: Re: Annoy User
Post by: busterone on June 28, 2014, 09:39:43 PM
I have had some good laughs with this one.  There is never a perfect solution to trolls, but this mod is the best one I have seen so far.  I have used it on several sites. I have created a few fake members and put them on the annoy list, then logged in with their account to see if I need to raise or lower the thresholds. Each time, I have rolled with laughter imagining how frustrated my real trolls must be feeling.  :)
Title: Re: Annoy User
Post by: Ninja ZX-10RR on August 06, 2014, 05:29:33 PM
This is the damn funniest thing I have ever seen here AHAHAAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH thanks for the mod but I will keep on laughing for the next 2 hours if you don't mind XD
Title: Re: Annoy User
Post by: Eagle31 on June 20, 2018, 01:43:50 PM
Anyone know if this will work in 2.15  ?
Title: Re: Annoy User
Post by: Shambles on June 20, 2018, 02:05:06 PM
Quote from: Eagle31
Anyone know if this will work in 2.15  ?

It works in my 2.0.15 setup
Title: Re: Annoy User
Post by: Arantor on June 20, 2018, 02:21:27 PM
If it doesn't easil
Quote from: Eagle31 on June 20, 2018, 01:43:50 PM
Anyone know if this will work in 2.15  ?

It will.
Title: Re: Annoy User
Post by: njtweb on June 21, 2018, 11:53:10 AM
I had a mod installed like this back in the vbulletin days when I had a big hockey site with a lot of members. Many of which liked to pick keyboard fights. This mod was a godsend. I redirected them to spongebob square pants, womens panties and various other sites. They'd come when I turned the mod off for them and complained about the redirects. Ha ha. Fun stuff.


edit - (unnecessary/long quote removed)