View Full Version : Profile Enhancements - Report Reputation Comments
Thunderbird8
06-12-2012, 10:00 PM
The reputation system is a pretty nice feature in vBulletin, however there is that occasion pesky user who wants to go harass others via the reputation system. There is no built-in method to be able to report these comments.
This modification provides a quick way for users to report reputation comments so that forum staff has an easier way to evaluate them and take action. This is done by adding a Report link next to each reputation comment. All reports will go to the same forum that is configured for post reporting.
Please note that there is a file edit required for this modification to function, failure to do so will result in invalid report links showing up next to the reputation comments.
Note: This has only been tested on vB 4.2. I think it will work on 4.1.12 and possibly earlier, but I haven't tried that yet.
Version History
v1.00 - Initial release.
v1.01 - Minor bugfix and added an option to allow or block a reason that would otherwise be censored (defaults to blocking)
v1.01a - Fix a cannot find phrase error and add a working version check URL
Thunderbird8
06-13-2012, 02:46 PM
I did submit the file edit that's needed to the vB JIRA, so hopefully a future version will remove the need for it. The issue that necessitates the edit is that the reputationid column isn't selected along with the others for the reputation received query, yet strangely it is for the reputation given query.
Alfa1
06-14-2012, 01:19 AM
What happens when a reputation comment is reported?
What functions do moderators have to act on the report?
Is there a moderator function for automatic deletion of the rating?
Is there an option to automatically send a notification to the reporter, to inform that the rating has been found valid?
Is there a function to infract the reputation giver?
Thunderbird8
06-14-2012, 02:34 AM
I put the answer to the first question into the description (probably should have had that there in the first place).
There are no functions added apart from being able to report reputation comments.
Although one of my own board staff just mentioned that reports from those who aren't moderators wind up in the moderation queue instead. Gonna need to look at that.
Thunderbird8
06-15-2012, 12:58 PM
Version update:
Reports are no longer thrown in the moderation queue if the user's "Follow Forum Moderation" permission is set to No (which is most likely the case for normal users in regards to the report forum).
Added an option to control whether or not the report reason can contain words that would be censored. This defaults to not allowing censored words at all (the reporting user will get an error if the censor changes the reason). Note: The censor is still applied to the post. Obviously if the censor is disabled or empty, this option won't do anything.
Raakin
06-15-2012, 07:49 PM
Not working in vB 4.1.5
Thunderbird8
06-15-2012, 09:29 PM
That's not too much of a surprise, given that I used my 4.2.0 test board to make it. I'm actually a bit surprised that it worked on my 4.1.12 main board.
I don't have the resources to be able to redo it for older versions of vBulletin.
Diggo11
06-23-2012, 01:23 AM
I keep getting the error "vBulletin Message / Could not find phrase 'invalid_reputationid'." when trying to report reputation. The reputation link is always "<a href="misc.php?do=repreport&id=">Report</a>". Was running 4.1.10 but currently running 4.2.0.
Thunderbird8
06-23-2012, 02:16 AM
The file edit in the readme.txt file is needed for the links to appear properly. As for the cannot find phrase error, it appears that the phrase I used (which I thought was part of vB) is actually part of another modification. Oops.
(EDIT)I added my own phrase and also added a working version check URL to the download file.
Diggo11
07-03-2012, 04:53 AM
That's a little frustrating, whilst uploads and imports are fine I'm not sure what our system administrators will make of file changes... There is no way around this?
Alfa1
07-04-2012, 12:18 AM
Thunderbird: please reply to this JIRA request for reputation system hooks: http://tracker.vbulletin.com/browse/VBIV-15211
Thunderbird8
07-04-2012, 10:45 PM
That's a little frustrating, whilst uploads and imports are fine I'm not sure what our system administrators will make of file changes... There is no way around this?
I went with the reputationid because that's guaranteed to be unique (well, unless someone changes the table for some odd reason). However, that's not part of the database query for the reputation (which I failed to notice until after taking the changes for a first round test run) for some reason, so I did the file edit afterwards (the edit is rather small). There is one other way, but only because vBulletin currently does not allow a user to rep the same post twice. However, if I do that, there's the risk of the wrong comment getting reported if someone has another modification which, say, allows people to rep the same post more than once.
That said, I did put in a JIRA requesting the file edit needed by this to be done to the vB core files themselves, partly because reputation id is part of the query for the reputation given section, and I'm of the opinion that ID should be a part of any query anyway :P.
msmayz
06-01-2014, 05:36 AM
I followed all the directions to the letter while installing this mod, but it made the Reputation tab disappear from our users' profiles, even ones who have reputation comments left by others. :( So, I uninstalled the mod and re-uploaded my backup version of the usercp.php file, but the Reputation tab is still not showing on users' profiles. Any ideas on how to fix this? I'm running 4.2.2 and have not changed a single other setting.
tbworld
06-01-2014, 06:53 AM
Using modifications reminder list.
1.) Always backup your board and database before trying new mods. The best practice is to try them on a test board first.
2.) Try not to uninstall a modification, just disable it. Uninstalling a modification usually does NOT delete the files that you uploaded for the modification. There can be left over files on your system that alter the way your board works. (example: xml bitfield files -- which alter the permission systems of your board).
3.) If you are having problems after you uninstalled the modification. Try to reinstall it and then just disable it. This does not always work due to the programming of the modification.
4.) Still having problems. Uninstall the modification and delete all files associated with it. You will have to take a look at a copy of the original modification and find what files were uploaded and delete them. Pay careful attention with files that are stored in the 'XML' directory.
Have fun and be safe -- backup that database! :)
msmayz
06-01-2014, 09:00 PM
Thank you, tbworld! I definitely did a database backup before installing, so we may just have to revert to that.
ETA: We restored a backup version of our forum, and all is well now. I'm not sure what the issue is/was, but I would advise people running VB 4.2.2 not to install this mod.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.