PDA

View Full Version : Add-On Releases - Infraction PM User Override


Reven
21 Aug 2006, 19:08
Infraction PM User Override

This product will allow you to set a user from which all private messages sent to your members after infractions are given are from. If you wish for your moderators to remain anonymous, or don't wish your members to know the moderator that gave them an infraction, this will help.

Administrators, super moderators and moderators can all still see which moderators awarded each infraction in the normal way, but regular members cannot.

Features

Lets all moderators hand out infractions from a standard username to protect privacy.
Doesn't log moderator actions under the standard username, but as the moderator carrying out the actions.

Details

1 Product
6 Plugins
Update Tracker
No database edits, queries or connections.

Installation

Enter your Admin Control Panel and go to the Manage Products page under the Plugins & Products tab, then click Add/Import Product. Download the XML file attached to this post and then locate it on your computer on this page, then click Import. The product will now be installed automatically. Finally, enter the Plugin Manager page and edit the plugin named Set Important Variables under the Product : Infraction User Override section, and set the user ID and username of the account you wish to use to send the private messages, click Save and that's it!

Changelog

1.01 - Bug fix: users could see the moderator that gave them their infraction by clicking the red/yellow card next to the post on which the infraction was made. Staff still see the real moderator whome gave the infraction to the user on this page, but users no longer see this.

1.02 - Bug fix: users could see the moderator that gave them their infraction by going into their User CP and viewing the list. Users can now no longer see the read moderator, but instead the override user.

1.03 - Optimisation: hook placement for infractor user settings moved from global_start to infraction_start. There is no hook for infraction_start in the User CP, so the hooks are evaluated manually by the plugin usercp_infractioninfobit.

1.04 - Bug fix: plugin with Infractor user settings was not evaluating properly: users could see their infractor if they viewed their own profile.

Download (http://www.vbulletin.org/forum/attachment.php?attachmentid=53501)

Reven
21 Aug 2006, 19:16
Please post any errors, bugs or weirdness you find while using this product in this thread and I will endeavour to fix them as soon as possible.

Ncturnal
21 Aug 2006, 19:55
Works great! That's exactly what I was looking for. The only addition I'd think would be cool is to have the user PM'd if an infraction was reversed (maybe a seperate product). I see this one being incorporated into vB in the future. Nice work!

Bounce
22 Aug 2006, 00:02
Tested and works a treat :)

Althou is it possible to over ride the over ride lol , sometimes you want the user to know who its coming from but in general it would be from an unknown admin :)

Snake
22 Aug 2006, 14:50
Thanks!

ymy
22 Aug 2006, 16:07
great work > i will install it and check it

then will back to click install mod

Reven
22 Aug 2006, 16:16
Tested and works a treat :)

Althou is it possible to over ride the over ride lol , sometimes you want the user to know who its coming from but in general it would be from an unknown admin :)
That's a good idea. I'll maybe make that possible later, but right now I'd like to make sure it's working alright for everyone - no use starting to add features if the original didn't do what it was told.

Thanks for the installs, folks!

N.B. Anyone tried the Check Version link yet? I looked at vBulletin's code and I think they want the version either to be printed as <version productid="infraction_user_override">1.0</version> or <version>1.0</version>. I've done the former, but it still doesn't work properly for me when I try it on my own domain - perhaps it will work from another domain? I might have disabled fsock() connections on my own server so I can't test it. Would be great if someone could try it and give me feedback.

Niall Fernie
30 Aug 2006, 11:24
Have installed this and it sorts out the PMs fine.

I've had it pointed out that if a user receives a warning/infraction and then clicks on the red/yellow card on their post it still shows the name of the mod who issued it.

Is this something I've done wrong or is it simply not a feature of this product (feature request?)

Reven
31 Aug 2006, 18:17
Thanks for that, I've updated the modification to reflect this change. Simply download the new version and overwrite the current product.

Reven
09 Sep 2006, 18:17
I've added an additional plugin to the product to stop the real infractor being shown in the User CP. Please overwrite your current product with the new attachment to prevent this.

Tom1234
11 Sep 2006, 20:37
If the member that received the infraction views their profile page, the real name of the person that handed out the infraction is shown.

Reven
15 Sep 2006, 15:13
Fixed that. If anyone finds any more exploits, please tell me. Sorry for the frequent updates.

sharjah
09 Oct 2006, 17:12
Thanks, that what I was looking for.

Luggruff
12 Oct 2006, 16:37
Fatal error: Existing data passed is not an array
Called set_existing in **CENSORED URL**/htdocs/includes/class_dm_pm.php on line 528
Called post_save_each in **CENSORED URL**/htdocs/includes/class_dm.php on line 823
Called save in **CENSORED URL**/htdocs/infraction.php on line 726
in /includes/class_dm.php on line 235

I've traced this down to your plugin, I have no idea what it might be though, I just know that the infraction system works fine when I disable your plugin, and when I enable it, I get this error message each time I'm trying to issue an infraction.

(**CENSORED URL** is just a censored url ;p)

Ps! (I am running vBulletin 3.6.2)

Reven
12 Oct 2006, 21:33
Does the infraction happen, dispite the error? I.e. is the infraction you give listed in their profile, or is it never given out?

Have you got any other products/plugins/modifications which are making use of the PM system? Particularly anything using the hook 'private_insertpm_process'.

Finally, have you set a username and user id for the 'Infractor' account in the plugin 'Set Important Variables'?

Luggruff
13 Oct 2006, 04:30
Does the infraction happen, dispite the error? I.e. is the infraction you give listed in their profile, or is it never given out?

Have you got any other products/plugins/modifications which are making use of the PM system? Particularly anything using the hook 'private_insertpm_process'.

Finally, have you set a username and user id for the 'Infractor' account in the plugin 'Set Important Variables'?
nope, not using 'private_insertpm_process' in any other plugin/product.

The infraction does not happen, and yes, I've set both the userID and the userName (and they match, of course) =\

These are only one other plugin that are making use of the PM system, and it's hooks are:

Send PM on Thread Move
-inlinemod_domovethread
-threadmanage_move_simple

Reven
13 Oct 2006, 22:49
I'm sorry, but I really don't see what is causing that problem. Is anyone else getting this problem?

It's weird because the only thing involved with the PM part of the product uses a vBulletin class function exactly as its supposed to be used. That goes for all of the plugins too - nothing being passed is not what it is supposed to be, and the only room for error as far as I can see is the user input bit - the 'infractor' username and userid which, you've said, is not the issue.

One suggestion is that you could try making the file edits listed here (http://www.vbulletin.org/forum/showthread.php?t=124278). That will not remove all references to the infractor-giving moderator, but it will stop the PM including their username.

sharjah
21 Oct 2006, 01:45
Hi Reven,

I have no problem at all .. I'm using 3.6.2.

Thanks again.

DaNIEL MeNTED
29 Oct 2006, 23:19
I'm sorry, but I really don't see what is causing that problem. Is anyone else getting this problem?

It's weird because the only thing involved with the PM part of the product uses a vBulletin class function exactly as its supposed to be used. That goes for all of the plugins too - nothing being passed is not what it is supposed to be, and the only room for error as far as I can see is the user input bit - the 'infractor' username and userid which, you've said, is not the issue.

One suggestion is that you could try making the file edits listed here (http://www.vbulletin.org/forum/showthread.php?t=124278). That will not remove all references to the infractor-giving moderator, but it will stop the PM including their username.

I had the same error with 3.6.2 and uninstalled the hack because, frankly, it isn't that important to override the name. If it worked for 3.6.2 or there was a quick fix I would like to have it installed.

Greek Wizard
06 Nov 2006, 12:02
I had the same error with 3.6.2 and uninstalled the hack because, frankly, it isn't that important to override the name. If it worked for 3.6.2 or there was a quick fix I would like to have it installed.

I am also having the same problem, and same errors and will be forced to remove this until fixed.

Greek Wizard
06 Nov 2006, 12:21
Finally, enter the Plugin Manager page and edit the plugin named Set Important Variables under the Product : Infraction User Override section, and set the user ID and username of the account you wish to use to send the private messages, click Save and that's it!

Finally, have you set a username and user id for the 'Infractor' account in the plugin 'Set Important Variables'?

Forget my post above..

I guess I downloaded the xml one day and installed it a different day and did not know you had to make this change in the plug in.

It works fine on 3.6.2 but I did have the same issues and the two guys above.

Once I realized I had not changed the plugin 'Set Important Variables' and did so, with a valid id and username it works as described.

Luggruff and DaNIEL MeNTED, you may just want to check the syntax in the plugin above because it sure is easy to miss.

Reven, good work, but might I make a suggestion and add a txt file for download so those of (like me) who might not notice the directions needed have a copy when it's downloaded. maybe a zip file with the xml and txt file inside.

Just a thought.

Installed. (again)

Luggruff
07 Nov 2006, 04:50
Somehow, don't ask how, it now works, not that I did anything different this time.. just downloaded and uploaded the file again, and again.. filled out the userID and moderator username.

Weird.

Anyways, thanks Greek Wizard for making me try again (:

Reven
13 Nov 2006, 14:24
That is indeed weird. Maybe there was a problem with vBulletin.org's server, which corrupted the downloads.

If there is ever another release of this product, I'll include a text file in a zip archive with instructions.

adonfun
28 Dec 2006, 01:39
Great mod, thank you!!

installed!

rjmjr69
07 Feb 2007, 09:36
I got this problem after installing


Fatal error: Existing data passed is not an array
Called set_existing in /home/brain909/public_html/includes/class_dm_pm.php on line 528
Called post_save_each in /home/brain909/public_html/includes/class_dm.php on line 823
Called save in /home/brain909/public_html/infraction.php on line 766
in /includes/class_dm.php on line 235

Got it after trying to send an infraction

Reven
07 Feb 2007, 23:32
Have you set the Infractor userid in the Set Important Variables plugin? This must be changed to the userid of the account you want to send all infractions from.

rjmjr69
08 Feb 2007, 10:02
Have you set the Infractor userid in the Set Important Variables plugin? This must be changed to the userid of the account you want to send all infractions from.

Yes I did. But I had it in the wrong place's the directions are a tad bit misleading for us noobs... You need to make the changes in AFTER the USERID# And USERNAME
I REPLACED those two text's instead of making the changes AFTER them in the ' ' box's... Might be a good idea to explain it a bit better for us slow people. Thank you very nice addition

lazytown
26 Oct 2007, 23:15
Gread idea for a mod... It could work for me, but only if moderators were able to choose on an infraction-by-infraction basis whether they were 'anonymous' or not. Is that possible?

Thanks
-vissa

lisss001
28 Oct 2007, 14:06
I have been looking for this for ages. Thankyou.

Fraxter
11 Nov 2007, 17:13
I have a problem with the languages... I have install in my vB english and german, but all infrations with this mod displayed in english for the user, can anyone help me?

best regards

Pander23

giotmuadong
30 Nov 2007, 06:30
do you have an update?

David Bott
12 Dec 2007, 23:32
Outstanding. This is how it should have been anyways.

Running on 6.3.8

Reven
21 Dec 2007, 00:22
I have a problem with the languages... I have install in my vB english and german, but all infrations with this mod displayed in english for the user, can anyone help me?

best regards

Pander23
It's just a case of adding manual translations for the English phrases in German. You can find instructions for this from the vBulletin Documentation.

Electric-Shadow
21 Dec 2007, 13:30
installed, handy little mod.

Hope i wont have to put it to use too often.

great job :D

Fraxter
17 May 2008, 03:09
Great little Addon works on vB 3.7. ;)

Pocket Aces
17 May 2008, 19:56
Nope, it aint workin on v3.7

Fraxter
26 May 2008, 23:16
Nope, it aint workin on v3.7

For me it works perfectly. :)

fraggle2
25 Sep 2008, 10:03
This mod doesn't work in 3.7 in User CP

drgonzo120
06 Oct 2008, 19:53
will this de updated or are there any other products that do just the same?

marecek
27 Nov 2008, 10:38
any chance it will be 3.7 compatible soon?

gsk8
07 Apr 2009, 14:05
How about 3.8.2?

Vital Signs
08 Apr 2009, 14:37
How about 3.8.2?

I agree, this product is exactly what I need. An update would be much appreciated.
Great work nonetheless, Reven! :D

XanderZone
26 May 2009, 15:06
I've tried this on 3.8.2 and it works fine, except for the fact that when a moderator sends the infraction he gets a page full with template code.
Although the infracted user does get the PM with the different user account.

So there is probably a problem in the template modifications.

If the creator of this mod could update it for 3.8.2 I would be thankful.

Drowned
07 Sep 2009, 01:52
Works perfectly! Thank you very much! :)

Dimoks
01 Feb 2010, 07:20
3.8.4 - all ok
thank you!

rwoscott
24 Nov 2010, 02:25
Still works with 4.0.8!!

fulviods
27 Apr 2011, 12:15
Works on 4.1.3 !!! :))) So happy!! :)

ndahiya
01 May 2011, 20:03
still works in 4.1.3..

As Raven's not come on for over 2 years, I have ported it up including phrasing it.

http://www.vbulletin.org/forum/showthread.php?t=262959

Makes it easier to change userid etc. this still remains raven;s mod, i just updated it for vb4, phrased it, link back etc.

ndahiya