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)
-   -   Warnings System Hack v2.1 (https://vborg.vbsupport.ru/showthread.php?t=43265)

thesteveco 10-09-2002 07:58 AM

Oh... I did add one tiny tweak... I don't display Warning Levels to anyone unless it's greater than zero...

REPLACED:

Code:

if ($warntype == 1) {
    eval("\$post[warnlink] .= \"".gettemplate('warn_seelink')."\";");
} else {
    $post[warnlink] .= "";
}

WITH:

Code:

if ($warntype == 1) {
    if ($post[warninglvl] > 0) {
        eval("\$post[warnlink] .= \"".gettemplate('warn_seelink')."\";");
    }
    // (removed the following as it seems extraneous)
    // } else {
    // $post[warnlink] .= "";
}

Hope ya don't mind :D

g-force2k2 10-09-2002 02:20 PM

thesteveco no i don't mind ;) glad to see you got the problem resolved :)

btw mewgood there is no warnconfig.php anymore... i think i've answered that question at least ten times now ;) regards...

g-force2k2

mewgood 10-09-2002 09:33 PM

?
so HOw I gonna install it?
you didn't change the txt file..

thesteveco 10-09-2002 10:46 PM

mewgood - the warnconfig file is no longer necessary. You need to go to the Admin Control Panel and save the vBulletin Options. Down at the bottom of the page you'll notice some new data - that is the information that was previously stored in the file you're looking for.

I think that g-force2k2 was trying to encourage you to read the previous answers to the same question.

mewgood 10-10-2002 01:24 AM

oh
ok
sry
thx for your answer:D

mewgood 10-10-2002 01:36 AM

error
when I try to click on the View warning log in the admin cp it has an error. As well where do I set the limit?

Quote:

Warning: Division by zero in /usr/local/psa/home/vhosts/wcgalaxy.com/httpdocs/vbb/admin/admin_warning.php on line 87
Database error in vBulletin Control Panel 2.2.6:

Invalid SQL:
SELECT logid, username, userid, target, targetid, timestamp, type, postid, comment
FROM warnings_log
ORDER BY logid
LIMIT 0,
mysql error: You have an error in your SQL syntax near '' at line 5

mysql error number: 1064

Date: Wednesday 09th of October 2002 09:26:51 PM
Script: http://www.wcgalaxy.com/vbb/vbb/admi...tion=view_logs
Referer: http://www.wcgalaxy.com/vbb/admin/in...n=nav&cpnavjs=

Devil-GOD 10-10-2002 08:29 AM

Great!

*installs*

g-force2k2 10-10-2002 05:12 PM

mewgood you get that error because thesteveco stated you must submit your vbulletin options... regards...

g-force2k2

StevenTN 10-10-2002 09:00 PM

Hi,

I work with cklaszlo on our website. After fumbling with all the stuff, and almost having to use clear eyes in reading this thread, we got it up and running.

Good hack!

mewgood 10-10-2002 10:35 PM

Quote:

Originally posted by g-force2k2
mewgood you get that error because thesteveco stated you must submit your vbulletin options... regards...

g-force2k2

dont understand/???


All times are GMT. The time now is 10:00 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.02440 seconds
  • Memory Usage 1,740KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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