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)
-   -   Mike's Warning System 1.0 (https://vborg.vbsupport.ru/showthread.php?t=53596)

volitaire 08-09-2003 07:31 PM

no.. theyre like 21/24/36/37 etc.. i have like 10 mod groups to seperate different types of mods / users

is there a place somewhere where i can change it? if you have it set to not give full powers to?

Beorn 08-10-2003 03:12 AM

Around line 39, find this:
PHP Code:

if(!$WarnModOverrideDefault && in_array($bbuserinfo['usergroupid'],array(5,7))) { 

Change the array to hold the correct user groups for mods...

volitaire 08-10-2003 03:26 AM

thanks!, i was looking for that but for some reason coudln't see it

Morgalis 08-15-2003 08:40 AM

alright.. i've done some hacking and this crosses over into it

i don't know enough about php to make the confident edits to make this hack work alongside the others

this replacement in showthread.php
PHP Code:

while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) { 

is this according to the hack
PHP Code:

// Copyright ? 2003 Michael Benza. All Rights Reserved
// [url]http://www.benza.us[/url]

$WarnUserGroups explode(",",$WarnUserGroups);
$WarnUserGroupsView explode(",",$WarnUserGroupsView);
$WarnUserGroupsSum explode(",",$WarnUserGroupsSum);
$WarnUserGroupsUnwarnable explode(",",$WarnUserGroupsUnwarnable);


while (
$post=$DB_site->fetch_array($posts) and $counter++<$perpage) {
    if(
$WarnOnOff) {
        if(
in_array($bbuserinfo['usergroupid'],$WarnUserGroupsSum)) {
            eval(
"\$post['warninglvlwords'] = \"".gettemplate("warn_postbitsum")."\";");
        }
        if(
in_array($bbuserinfo['usergroupid'],$WarnUserGroupsView)) {
            eval(
"\$post['viewwarnings'] = \"".gettemplate("warn_postbitview")."\";");
        }
        if(
in_array($bbuserinfo['usergroupid'],$WarnUserGroups) && !in_array($post['usergroupid'],$WarnUserGroupsUnwarnable)) {
            eval(
"\$post['addwarning'] = \"".gettemplate("warn_postbitadd")."\";");
        }
    
        if(
$post['warninglvlwords'] || $post['viewwarnings'] || $post['addwarning']) {
            eval(
"\$post[warnlink] = \"".gettemplate("warn_postbitaddin")."\";");
        }
    }
// END WARNING SYSTEM! 

what mine really looks like is this
PHP Code:

while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {

  if (
$postdone[$post[postid]]) {
    
$counter--;
    continue;
  } else {
    
$postdone[$post[postid]]=1;
  }

  
$onlinestat "";
  if((
$post[miserable] == 1) || ($post[stunned] & 4)){
    if((
$bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 6) or ($bbuserinfo[usergroupid] == 7)) {
      
$onlinestat "$onlinestat<br><font color=\"red\"><b>Miserable User</b></font>";
    }
  }
  
$post[posts]="$post[posts]$onlinestat"

how do i encorporate the two hacks? i am forgoing this part of miserable users [i LOVE that hack] while i am waiting for some help in this thread

Morgalis 08-15-2003 09:40 AM

youch.. ran into another major problem! o.O

i have commented it all out as i can do without the expiring for the time being

when i add this in following
$header='';
$footer='';
PHP Code:

// ###################### Start Decrease Warning Points ###################### 

i lose my forum style!!

I have vbportal hacked in so this must tie in somewhere.. imagine my surprise when my forums are reverted to the default and no header

i can live without expiring warnings, but i would rather have them

thanks in advance and cheers!

[high]* Morgalis installs.. well most of it anyway ;)[/high]

Beorn 08-15-2003 11:20 AM

Quote:

Today at 05:40 AM Morgalis said this in Post #74
alright.. i've done some hacking and this crosses over into it

i don't know enough about php to make the confident edits to make this hack work alongside the others

how do i encorporate the two hacks? i am forgoing this part of miserable users [i LOVE that hack] while i am waiting for some help in this thread


I'm not sure what the problem is. Change the while line to the about 20 lines provided in the hacking instructions...

drumsy 08-19-2003 10:58 PM

Is there any problems with 2.3.2? I'm trying to install it and it's just bogging my server down!! :(

Oblivion Knight 08-19-2003 11:37 PM

Quote:

Today at 12:58 AM drumsy said this in Post #77
Is there any problems with 2.3.2? I'm trying to install it and it's just bogging my server down!! :(
No problems here on 2.3.2.! :classic:

DeadGaze 08-20-2003 03:05 PM

well done m8...this will come in to very good use

Thank you

drumsy 08-20-2003 04:31 PM

Quote:

Yesterday at 08:37 PM Oblivion Knight said this in Post #78
No problems here on 2.3.2.! :classic:
Very very weird. It spikes my server load up to an insane load when I get it all installed! :(


All times are GMT. The time now is 08:42 PM.

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.03471 seconds
  • Memory Usage 1,775KB
  • 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
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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