vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Infraction PM User Override (https://vborg.vbsupport.ru/showthread.php?t=124565)

Reven 08-20-2006 10:00 PM

Infraction PM User Override
 
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.


Reven 08-21-2006 05:16 PM

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 08-21-2006 05:55 PM

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 08-21-2006 10:02 PM

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 08-22-2006 12:50 PM

Thanks!

ymy 08-22-2006 02:07 PM

great work > i will install it and check it

then will back to click install mod

Reven 08-22-2006 02:16 PM

Quote:

Originally Posted by hIBEES
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 08-30-2006 09:24 AM

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 08-31-2006 04:17 PM

Thanks for that, I've updated the modification to reflect this change. Simply download the new version and overwrite the current product.

Reven 09-09-2006 04:17 PM

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 09-11-2006 06:37 PM

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 09-15-2006 01:13 PM

Fixed that. If anyone finds any more exploits, please tell me. Sorry for the frequent updates.

sharjah 10-09-2006 03:12 PM

Thanks, that what I was looking for.

Luggruff 10-12-2006 02:37 PM

Code:

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 10-12-2006 07:33 PM

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 10-13-2006 02:30 AM

Quote:

Originally Posted by Reven
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 10-13-2006 08:49 PM

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. That will not remove all references to the infractor-giving moderator, but it will stop the PM including their username.

sharjah 10-20-2006 11:45 PM

Hi Reven,

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

Thanks again.

DaNIEL MeNTED 10-29-2006 09:19 PM

Quote:

Originally Posted by Reven
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. 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 11-06-2006 10:02 AM

Quote:

Originally Posted by DaNIEL MeNTED
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 11-06-2006 10:21 AM

Quote:

Originally Posted by Reven
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!

Quote:

Originally Posted by Reven
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 11-07-2006 02:50 AM

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 11-13-2006 12:24 PM

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 12-27-2006 11:39 PM

Great mod, thank you!!

installed!

rjmjr69 02-07-2007 07:36 AM

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 02-07-2007 09:32 PM

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 02-08-2007 08:02 AM

Quote:

Originally Posted by Reven (Post 1177115)
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 10-26-2007 09:15 PM

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 10-28-2007 12:06 PM

I have been looking for this for ages. Thankyou.

Fraxter 11-11-2007 03:13 PM

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 11-30-2007 04:30 AM

do you have an update?

David Bott 12-12-2007 09:32 PM

Outstanding. This is how it should have been anyways.

Running on 6.3.8

Reven 12-20-2007 10:22 PM

Quote:

Originally Posted by Pander23 (Post 1380363)
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 12-21-2007 11:30 AM

installed, handy little mod.

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

great job :D

Fraxter 05-17-2008 01:09 AM

Great little Addon works on vB 3.7. ;)

Pocket Aces 05-17-2008 05:56 PM

Nope, it aint workin on v3.7

Fraxter 05-26-2008 09:16 PM

Quote:

Originally Posted by Pocket Aces (Post 1522795)
Nope, it aint workin on v3.7

For me it works perfectly. :)

fraggle2 09-25-2008 08:03 AM

This mod doesn't work in 3.7 in User CP

drgonzo120 10-06-2008 05:53 PM

will this de updated or are there any other products that do just the same?

marecek 11-27-2008 08:38 AM

any chance it will be 3.7 compatible soon?


All times are GMT. The time now is 05:24 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01359 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete