The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Is there a way to make it appear an infraction came from a central user?
What I'm trying to do is make it so when a moderator issues a warning or infraction it appears as though it comes from one central user, such as "Site Police", instead of the actual moderator that issued it. The reason is because some of my moderators are more active than others and those moderators tend to get a bad reputation among the general membership. I don't want them to have to log into another account whenever they see something that needs to be moderated, and we still need the ability to see who did what for admin purposes.
|
#2
|
||||
|
||||
*checking what I typed in here before I try to help*
I was wrong in what I claimed. I'd probably create an account for the moderators to access and have them send in their infractions from there, unless there's a mod that addresses this. Good luck. |
#3
|
|||
|
|||
Thanks, but I'm really trying to not do it that way.
Anyone? |
#4
|
||||
|
||||
off hand i dont think there is any other way, but there is a way to make things easier when having a seperate "board police" user.
There is a hack by CYB - log in as user which allows users you have stipulated to log into users account and could be quite useful for this purpose, as this does not log the original user out, more just allows them to log in with two accounts simultaniously(sp). |
#5
|
|||
|
|||
The account doesn't log in simultaneously, when you log into user accounts you can't use your own account.
Also, using the Log In To User is effectively (unless modified) giving people permission to access any account on your forum. Also, this wouldn't work (unless you give them the "Board Police" password) as it asks you to reauthenticate when doing an action. |
#6
|
||||
|
||||
This is the line that sets the userif (I think) - line 652 in infraction.php:
PHP Code:
You should also look at the PM processing underneath that line and see about modifying who the PM is from also. These are the two lines for that (around line 747): PHP Code:
|
#7
|
|||
|
|||
I appreciate your reply Lynne, as usual. This gives me some hope that it's actually possible to do.
So I tried changing the userid on line 652 to 2, which is the userid of the account I want the infractions to appear like they came from. When I tested it, it gave the infraction, but didn't create the infraction thread in the admin area, didn't show up on the users infraction list within his profile, and didn't send the PM. I've read about hooks but I don't know how to spot one, let alone change it. I then tried changing the lines around 747 so the userid was 2 and the username was Northwest Firearms. When I tried to issue an infraction it returned a fatal error. --------------- Added [DATE]1251228223[/DATE] at [TIME]1251228223[/TIME] --------------- Ah I see the $hook below the second set of code now, though I still don't know the proper way to modify it. |
#8
|
|||
|
|||
Admin CP -> Plugins & Products -> Add New Plugin
That allows you to mess with hooks. Product: vBulletin Hook: Whatever you found Title: Specify PHP Code: Code you want to use. |
#9
|
||||
|
||||
It's very hard to tell what you did wrong when you don't post your actual code changes/additions nor the exact error message.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|