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)

Beorn 08-20-2003 10:49 PM

The only thing that I can think may be causing it is a few queries running that shouldn't be.

Open global.php. Find:
PHP Code:

if($today $last_warn_update && $WarnOnOff) { 

Add after it, but put in your e-mail address:
PHP Code:

mail("my@emailaddress.com","Updating","Updating warnings at timestamp: ".time()); 

Upload the file, browse your forums for 5 minutes, then reupload the file without that line. If that is where the problem is, you should get a bunch of e-mails. If not, you won't. Let me know what the result is.

Morgalis 08-22-2003 05:40 AM

Quote:

08-15-03 at 01:20 PM Beorn said this in Post #76
I'm not sure what the problem is. Change the while line to the about 20 lines provided in the hacking instructions...
if i am to understand correctly i would change this code

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"

to this code?
PHP Code:

// Copyright ? 2003 Michael Benza. All Rights Reserved 
// <a href="http://www.benza.us" target="_blank">[url]http://www.benza.us[/url]</a> 

$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")."\";"); 
        }
 
 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";
// END WARNING SYSTEM! 

one bracket can mess everything up, i want to be certain i am doing this correct

Morgalis 08-22-2003 05:41 AM

Quote:

08-15-03 at 11:40 AM Morgalis said this in Post #75
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!

* Morgalis installs.. well most of it anyway ;)


this is still an issue which does not allow me to fully use this back

can you comment on it?

Beorn 08-22-2003 12:42 PM

Quote:

Today at 02:40 AM Morgalis said this in Post #82


one bracket can mess everything up, i want to be certain i am doing this correct [/B]

No, that is not correct. Start with the code you have BEFORE installing the hack. REPLACE the line
PHP Code:

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

with the code provided in the instructions.

Quote:

this is still an issue which does not allow me to fully use this back

can you comment on it?
The instructions do not say to add
PHP Code:

$header='';
$footer=''

anywhere. You want to add code after that.

Morgalis 08-23-2003 03:01 PM

maybe i have not made myself clear, let me try again :)

i NEED to keep this code in, as it is part of another hack

PHP Code:

$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>"
    } 

I cannot just leave that out or the functionality of another hack will not work

are you saying that all of your code should go before that if statement and to only keep that if statement there?

in respect to adding the code in after this
PHP Code:

$header='';
$footer=''

when i do that, i lose my forum style.. i am not adding that in, i am referring to when i add in the code that is provided

again, i use vbPortal and wonder if that has affected this hack

i'm trying to understand this, it's just a little tricky once you have other hacks involved

Beorn 08-24-2003 10:54 PM

Please PM me your showthread.php. My e-mail address will be in your inbox...

Exo 08-26-2003 11:34 PM

when will the next version released?

ciaranirl 09-06-2003 08:51 PM

How do you change the text size in it?

Beorn 09-06-2003 09:48 PM

Quote:

Today at 05:51 PM ciaranirl said this in Post #88
How do you change the text size in it?

Use <smallfont></smallfont> and <normalfont></normalfont> in the templates...

lasto 09-06-2003 09:53 PM

can we choose any usergroup to ban em to ?

say i never wanted em to go to total ban but had certain bits of board restricted is this possible


All times are GMT. The time now is 10:28 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.01286 seconds
  • Memory Usage 1,788KB
  • 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
  • (9)bbcode_php_printable
  • (5)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