vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Only Show IP:Logged if user is admin or supermod, and disable Post report by user (https://vborg.vbsupport.ru/showthread.php?t=41084)

Fallout2man 07-15-2002 08:25 PM

O_o;; wow, you don't hang around vb.org for a while and look what happens. Before anyone asks this hack was entirely hand coded, while apparently my variables may be the same I did not steal code from anyone.

anyway Boofo just change firefly's first line of code from

Code:

if ($post[userid]==$bbuserinfo[userid] or ($bbuserinfo[usergroupid]=="5" or $bbuserinfo[usergroupid]=="6" or $bbuserinfo[usergroupid]=="7")) {
to

Code:

if ($post[userid]==$bbuserinfo[userid] or $bbuserinfo[canreportposts]==0 or ($bbuserinfo[usergroupid]=="5" or $bbuserinfo[usergroupid]=="6" or $bbuserinfo[usergroupid]=="7")) {

Boofo 07-15-2002 08:35 PM

Shouldn't there be an "or" between these?

PHP Code:

$bbuserinfo[canreportposts]==($bbuserinfo[usergroupid]=="5" 


Fallout2man 07-15-2002 08:37 PM

Sorry, I'm making quick edits to my post because I realized I originally left an and statement and have been trying to correct my mistakes. One moment while I edit....again :p

Fallout2man 07-15-2002 08:41 PM

As for my code, yes just remove if if you're going with firefly's. Since they both aim to define the same variable.

Remi 07-15-2002 09:35 PM

Thanks Fallout2man

Can I temporarily disable the a post been reported more than twice

Thanks

Boofo 07-15-2002 09:44 PM

What you gave me didn't work. I finally figured it out though. :) Here's what I put to make it work the way it should (by using Firefly's code, too). The line "and $bbuserinfo[canreportposts]==1" needed to go in the second part of the code, not the first. :)

PHP Code:

if ($post[userid]==$bbuserinfo[userid] or ($bbuserinfo[usergroupid]=="5" or $bbuserinfo[usergroupid]=="6" or $bbuserinfo[usergroupid]=="7")) {
            eval(
"\$post[editpost] = \"".gettemplate("postbit_editpost")."\";");
        } else {
            
$post[editpost]="";
        }

        if (
$post[userid]!=$bbuserinfo[userid] and $bbuserinfo[canreportposts]==1) {
            eval(
"\$post[report] = \"".gettemplate("postbit_report")."\";");
        } else {
            
$post[report]="";
        } 


Fallout2man 07-17-2002 12:35 AM

Quote:

Originally posted by Remi
Thanks Fallout2man

Can I temporarily disable the a post been reported more than twice

Thanks


Yes, but I'd have to modify the hack and add a table to the database for reported posts. If you really want me to I'll work on it.

Remi 07-17-2002 06:36 AM

Yes Fallout2man, I realy need it

So if you have the time, I will be more than grateful

DrkFusion 07-24-2002 02:26 AM

Hey Fallout2man, sup, its me ;) You know who I am
Nice, as my new forums become popular I might be needing, just tested it, works good.

Drk

Fallout2man 07-24-2002 12:05 PM

Well hopefully this hack will be upgraded soon, I've been working on the extra feature that guy wanted, and maybe a little something else I thought up, just been busy with server work lately so I haven't had a chance to perfect the next stuff yet.


All times are GMT. The time now is 08:45 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01053 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete