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 |
#12
|
||||
|
||||
Ok, I understand now. I thought it was for disabling it for ALL users. Sorry for the misunderstanding.
Banning is ALWAYS an option, as far as I am concerned. In most situations, it is the ONLY option. But, that is just my 3.5 cents worth (inflation, you know). Is there a way to install this without doing the IP logged disable, since I already have that one done? Quote:
|
#13
|
|||
|
|||
Yes, simply don't do this for the PHP
Code:
+-------------------------------------------------------------------------------------------------+ | In admin/functions.php, replace this code: | +-------------------------------------------------------------------------------------------------+ //highlight words for search engine +-------------------------------------------------------------------------------------------------+ +-------------------------------------------------------------------------------------------------+ | With this code: | +-------------------------------------------------------------------------------------------------+ // Display IP logged or Report post if applicable if (($bbuserinfo[usergroupid]==5 or $bbuserinfo[usergroupid]==6) and $bbuserinfo[canreportposts]==1) { $post[ipreport] = "$post[report] | $post[iplogged]"; } elseif (($bbuserinfo[usergroupid]==5 or $bbuserinfo[usergroupid]==6) and $bbuserinfo[canreportposts]==0) { $post[ipreport] = "$post[iplogged]"; } elseif (($bbuserinfo[usergroupid]!=5 or $bbuserinfo[usergroupid]!=6) and $bbuserinfo[canreportposts]==1) { $post[ipreport] = "$post[report]"; } else { $post[ipreport] = ""; } //highlight words for search engine +-------------------------------------------------------------------------------------------------+ |
#14
|
||||
|
||||
So, I still need to run the vbhacker file then? For the admin cp stuff?
|
#15
|
|||
|
|||
I'd reccomend just using the text file since you're selectively installing PHP.
|
#16
|
||||
|
||||
But don't I have to use the vbhacker file to make the text file? I didn't see anything about the admin cp in the code listed in the thread. If I am missing something, I apologize.
|
#17
|
|||
|
|||
Quote:
|
#18
|
||||
|
||||
Thanks for a great hack! With your instructions and help, it worked like a charm. I might be able to use this after all (eventually).
|
#19
|
||||
|
||||
great hack
my best wish... LORD :smoke: |
#20
|
||||
|
||||
Isn't this just a combination of two hacks, or am I missing something?
https://vborg.vbsupport.ru/showthrea...threadid=31934 https://vborg.vbsupport.ru/showthrea...676#post200676 |
#21
|
||||
|
||||
How do I get the report this post to moderator to not show up if it is the users own post (when you have it turned on in the admin CP) and still not show up anywhere when it is turned off?
Can I just edit this code or do I need to make another piece of code to handle not showing up in the users own post? I'm trying to merge this hack with the hack in the link below and I'm getting confused. (Surprise, surprise, I know. ) https://vborg.vbsupport.ru/showthrea...676#post200676 PHP Code:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|