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)

Kuipo 11-01-2002 07:29 AM

just ignore the line "warnconfig.php (admin directory)"

that file doesnt exist anymore ^^

You can make a user group later. But its not needed for instalation. It's an option in the control panel. ^^ see attached picture ^^

So the user group can be changed later on anyways ^^ i did all that last ;) :bunny:

:banana:

Mr_P 11-01-2002 08:07 AM

gotya and cheers Kuipo

Its different to version 1 so thats what threw me a bit.

Kuipo 11-01-2002 08:26 AM

yup yup, i figured after reading about 15 of the 17 pages of posts. Got a lof of user on our forums at all times, dont wana make a fool of us by installing somthing wrong ;) you know how it is.

I just wanted to make it a little more clear for people hehe ^^ :bunny: cheers :bunny:

Dynamic One 11-01-2002 06:48 PM

Thanks for this super hack m8.

Martin64 11-02-2002 12:36 AM

This hack is just gold, and was very easy to install. I gave my moderators the Warn options in the Mod CP, and they're loving it (perfect for keeping track of who has been banned, been warned and why. Thanks!

drumsy 11-07-2002 03:29 PM

What kind of query can I run to clear out the "40" portion. It seems like unless you do this install right the first time, I'm jinxed to this error, and I don't know how to go about doing the switching the number to 99 or so. What can I do to clear that out and start a-fresh???

ryans 11-07-2002 04:53 PM

in the instructions you say upload warnconfig.php but in your zip file there is no such file?

drumsy 11-07-2002 05:20 PM

There is no need for warnconfig. Originally, you would have to edit the group ID number for the "Banned by Warning" group in the warnconfig.php file, but now all you do is updated it under vBulletin Options > Warnings System in the Admin CP

Also, a fix for those of you who have installed it, uninstalled it, and get the "40" error.

In install_warning.php find:

PHP Code:

$DB_site->query("DELETE FROM settinggroup WHERE displayorder=44");
$DB_site->query("DELETE FROM setting WHERE settinggroupid=44"); 

and replace with:

PHP Code:

$DB_site->query("DELETE FROM settinggroup WHERE displayorder=40");
$DB_site->query("DELETE FROM setting WHERE settinggroupid=40"); 

Upload to your admin directory and now you can install/uninstall at your whim without worrying about getting the "40" error.

ryans 11-07-2002 05:32 PM

Ok, great! I got it working, well mostly. Now when I go to warn a user the warn box comes up and I put in the warning text. After hitting submit it goes to the next page and says this:

Please go back and fill in the reason for warning and then resubmit!

I checked the source on the page it looks correct:

<table cellpadding="4" cellspacing="1" border="0" width="100%" bgcolor="#cfd7e0"><tr>
<form action="/boards/warn.php" method=post>
<input type="hidden" name="action" value="insert_warn">
<input type="hidden" name="postid" value="xxxx"> "x'd out for security reasons"
<input type="hidden" name="userid" value="xxx">
<td bgcolor="#1B1B4B" align="center"><font face="arial, helvetica" size="2" color="#EEEEFF"><b>Warning ryanstest</b></font></td></tr><tr>
<td bgcolor="#879CB4"><font face="verdana,arial,helvetica" size="1" color="#000000">Reason for Warning:<br><input type="text" name="reason" value="" maxlength="100" size="30">
<!-- go button -->
<input type="image" src="images/new/go.gif" border="0"
align="absbottom"></td></tr><tr>
<td bgcolor="#B4C0CF"><font face="verdana,arial,helvetica" size="1" color="#000000">Send Warning PM to User?&nbsp;<input type="checkbox" name="dowarnpm" value="yes" CHECKED></td></form></tr><tr>
<td bgcolor="#879CB4" align="center"><font face="verdana,arial,helvetica" size="1" color="#000000"><a href="javascript:window.close();">[ Close Window ]</a></font></td></tr></table>

drumsy 11-07-2002 06:04 PM

Did you click the dropdown and select the warning you wished to use?


All times are GMT. The time now is 05:43 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.02788 seconds
  • Memory Usage 1,748KB
  • 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_php_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