Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
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
Version: 1.00, by Fallout2man Fallout2man is offline
Developer Last Online: Mar 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-14-2002 Last Update: Never Installs: 9
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-15-2002, 06:59 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Originally posted by Fallout2man
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.
Reply With Quote
  #13  
Old 07-15-2002, 07:04 AM
Fallout2man Fallout2man is offline
 
Join Date: Dec 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
+-------------------------------------------------------------------------------------------------+
and you'll have to edit the postbit template manually to add the $post[report] variable that checks whether or not a user can report the posts then either displays a link or not.
Reply With Quote
  #14  
Old 07-15-2002, 07:11 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, I still need to run the vbhacker file then? For the admin cp stuff?
Reply With Quote
  #15  
Old 07-15-2002, 07:35 AM
Fallout2man Fallout2man is offline
 
Join Date: Dec 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd reccomend just using the text file since you're selectively installing PHP.
Reply With Quote
  #16  
Old 07-15-2002, 07:45 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 07-15-2002, 09:57 AM
Fallout2man Fallout2man is offline
 
Join Date: Dec 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
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.
Velocd posted the text file from vBhacker already, I just fixed some errors in it and posted the corrected code. The rest of the edits are in his text file.
Reply With Quote
  #18  
Old 07-15-2002, 11:17 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #19  
Old 07-15-2002, 01:32 PM
lordnet's Avatar
lordnet lordnet is offline
 
Join Date: Mar 2002
Location: Bahrain
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great hack

my best wish...

LORD :smoke:
Reply With Quote
  #20  
Old 07-15-2002, 04:03 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #21  
Old 07-15-2002, 07:56 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
  // Report Post Disable Hack
  
if ($bbuserinfo[canreportposts]==1) {
eval(
"\$post[report] .= \"".gettemplate("postbit_report")."\";");
         } else {
    
$post[report] = "";
    } 
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04811 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete