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)

410 09-09-2002 02:31 PM

Mines not showing up in my Postbit...can you look at this??

PHP Code:

    <p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged$post[warnlink] <br><a href='timeonline.php?s=$session[sessionhash]&action=view_leader'>Time Online:</a$post[onlinetime]   </smallfont></p


g-force2k2 09-09-2002 03:05 PM

410 did you submit the options in the vbulletin options in the admin cp? regards... make sure that the usergroupids are configured correctly according to your needs...

g-force2k2

410 09-09-2002 03:07 PM

Yep got it to work..gr8 hack thx!

g-force2k2 09-09-2002 03:12 PM

glad to hear 410 :)

Okiewan...

i just tested the code that i gave you and it worked fine? are you sure you tried a post that you had already warned? regards...

g-force2k2

Dado 09-09-2002 10:05 PM

Quote:

Originally posted by g-force2k2
Okiewan...

i just tested the code that i gave you and it worked fine? are you sure you tried a post that you had already warned? regards...

g-force2k2

It worked for me too :) Thanks!

Sc0rp 09-09-2002 11:20 PM

awesome hack m8! installed it right away:D

one question.. after how many warning points does a user get banned and can I customize this? thanx!!!!:)

sorry one other question.. I noticed the warning wasnt displaying in the postbit.. so I went looking in the install and I found this:

Code:

// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++
                $post[warnlink] = "";
                $warntype = checkwarnlink($bbuserinfo[usergroupid], 0);
                if($warntype == 1) {
                  eval("\$post[warnlink].= \"".gettemplate('warn_seelink')."\";");
                } else {
                  $post[warnlink].= "";
                }
                $warntype2 = checkwarnlink($bbuserinfo[usergroupid], 1);
                if($warntype2 == 1) {
                eval("\$post[warnlink].= \"".gettemplate('warn_viewlink')."\";");
                } else {
                  $post[warnlink].= "";
                }
                $warntype3 = checkwarnlink($bbuserinfo[usergroupid], 2);
                if($warntype3 == 1) {
                  eval("\$post[warnlink].= \"".gettemplate('warn_warnlink')."\";");
            } else {
                  $post[warnlink].= "";
                }
// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++

so my question is.. what would this warnlink have 2 be???

Erwin 09-09-2002 11:24 PM

Quote:

Originally posted by Sc0rp
awesome hack m8! installed it right away:D

one question.. after how many warning points does a user get banned and can I customize this? thanx!!!!:)

Look in your Admin CP under vBulletin Options, Warnings.

g-force2k2 09-09-2002 11:56 PM

yep like Erwin stated it is all customizeable in the vbulletin options in the admin cp... you can update the usergroupids there as well... hope that helps you... regards...

g-force2k2

Sc0rp 09-10-2002 09:29 AM

yeah I customized that but the $post[warnlink] is still not showing when I look in a post (postbit is filled in correct..!) should I have installed a older version first and updated from there?

Dean C 09-10-2002 03:48 PM

deleted all my templates and ran the installer....

this is what it showed:

PHP Code:

Creating Warning Logs Table.

Warning Logs Table Successfully Created!

Creating Warnings Table.

Warnings Table Successfully Created!

Inserting Defualt Warnings Into Warnings Table

Defualt Warning Values Successfully Inserted
!

Altering User TableAdding Warning Level.

User Table Successfully Altered!

Inserting Warning System Settings Into VBulletin Options 

then just below this it says:

PHP Code:

Database error in vBulletin Control Panel 2.2.6:

Invalid SQLINSERT INTO settinggroup VALUES (40'Warnings System'40)
mysql errorDuplicate entry '40' for key 1

mysql error number
1062

Date
Tuesday 10th of September 2002 09:49:11 AM
Script
: [url]http://www.battleboards.com/boards/boards/admin/install_warning.php?step=2[/url]
Referer

:( - any ideas???

- Mist


All times are GMT. The time now is 06:12 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.01517 seconds
  • Memory Usage 1,754KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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