The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Only Show IP:Logged if user is admin or supermod, and disable Post report by user Details »» | |||||||||||||||||||||||||||
Only Show IP:Logged if user is admin or supermod, and disable Post report by user
Developer Last Online: Mar 2004
At one of my boards, we had a paticular problem with one user. He kept reporting bogus posts just to try and get people he didn't like banned. I warned him but he didn't stop. So I instituted a hack that allows admins, via the admin user editor, to disable a user's ability to report posts. While I was at it today, I had a spurt of inspiration and decided to add another part that disables the "IP:logged" part of the post from showing to any groups other then admins and supermods (the only groups at that board allowed to view IPs).
So here it is, all in one nice, neat little vBhacker package. Show Your Support
|
Comments |
#2
|
|||
|
|||
Can you post a text file also?
|
#3
|
||||
|
||||
Cool, although if I were you and that guy disobayed my warning and continued to be a jackass--man, I sure wouldn't want to be in his shoes
Good hack ^_^ I did you the pleasure of making a text file for it: |
#4
|
|||
|
|||
Thanks, and the main reason I did this was because one of the supermods demanded the entire feature be removed. I decided to meet him halfway and make a hack. Plus this is a good way to test the PHP I've learned over the past six months. A demo of this hack can be found at Anime Rebirth
|
#5
|
|||
|
|||
Uh-oh, that text file generated some uneccesary slashes on the template and SQL query. I hate it how vBhacker sometimes does that. Here's the correct code
Code:
+-------------------------------------------------------------------------------------------------+ | Create a new template named "postbit_report" with this: | +-------------------------------------------------------------------------------------------------+ <a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> +-------------------------------------------------------------------------------------------------+ + +++ + +-------------------------------------------------------------------------------------------------+ | In the "postbit" template, replace this code: | +-------------------------------------------------------------------------------------------------+ <a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged] +-------------------------------------------------------------------------------------------------+ +-------------------------------------------------------------------------------------------------+ | With this code: | +-------------------------------------------------------------------------------------------------+ $post[ipreport] +-------------------------------------------------------------------------------------------------+ + +++ + +-------------------------------------------------------------------------------------------------+ | Run this query: | +-------------------------------------------------------------------------------------------------+ alter table user add column canreportposts smallint(6) DEFAULT '1' NOT NULL; +-------------------------------------------------------------------------------------------------+ |
#6
|
||||
|
||||
THX, I've got just befor you post this a problem with the SQL Syntax
|
#7
|
||||
|
||||
I guess I don't understnad this hack. Isn't that what "report this post to moderator" is for? If the admins and mods are the only ones to see it, who are they supposed to report the post to?
|
#8
|
||||
|
||||
heh, it always seems like Boofo is the one confused, j/k
This hack basically allows you to disable certain members, who say abuse the rights, to using the report-a-thread-to-moderator link. The hiding part doesn't hide the "report-a-thread-to-moderator" part, it just hides the IP:Logged part, since only admins/mods are suppose to see that anyway. It only hides the "report-a-thread-to-moderator" link if the option for it in the admincp is enabled, as I explained above. |
#9
|
||||
|
||||
I'm not confused (hard to believe, I know ), I just think that by having to disable the report this post to moderator option because of one person puts the Admin at a disadvantage by letting the users force him/her to have to make changes to his board because of one user. That's what banning is for. If a user doesn't want to follow the rules and do what they are asked, then they need to be gone, IMHO. If you're going to diable it (even for one user), why not just take it out of the postbit altogether?
As far as hiding the IP logged feature, that has already been done. Quote:
|
#10
|
|||
|
|||
The idea of disabling it is because the administration at that particular board is very leniant on bannings. This way we can take away the problem without me having to rally for a ban and get the other two admins to agree with me. It easily removes the itch, and since this user was a problem to begin with (repeatedly banned and unbanned by the other admins) I figured this was a just punishment since banning was not an option.
Edit: As well I should point out that it is disabled per user, so not everyone was affected, only this one person. You might believe this to be a waste of code, but the only other option was alltogether removing it, and that I see as way too harsh a thing to do. So I wrote my own hack to solve the problem and at the same time test my knowledge of PHP. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|