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)

Capt PPRuNe 09-09-2002 12:33 AM

Ignore everything after "good morning!". I just ran the installer into step 3 and voila! All working hunkydory.

Pity it wiped my previous warned user list though. With 54,000 members I have to keep this list current and now all the mods will have to start again.

Nice hack. Could possibly be a little bit clearer with the instructions ref the vB settings in the CP and deletion of the warnings config file.

Erwin 09-09-2002 01:28 AM

Quote:

Originally posted by Capt PPRuNe
With 54,000 members I have to keep this list current and now all the mods will have to start again...
54,000 member... I'm impressed. How old are the forums?

Okiewan 09-09-2002 01:45 AM

Question... if there any way to limit the number of warnings a particular post can get? The mods know to look at the warnings before issuing one, but... I can see it happening, someone getting warned 5 times by 5 mods for the same post. Just a thought.

g-force2k2 09-09-2002 01:56 AM

Okiewan:

open warn.php (2)

find: (1)

PHP Code:

require('./global.php'); 

above it add:

PHP Code:

$temlatesused.= ",warn_error_postwarned"

find: (2)

PHP Code:

    if(empty($info[postid])) {
        eval(
"standarderror(\"".gettemplate('warn_error_postnoexist')."\");");
      exit;
      } 

Under it add:

PHP Code:

$getwarn $DB_site->query_first("
  SELECT postid, type
  FROM warnings_log 
  WHERE postid='
$info[postid]'");
if(
$getwarn[postid] != "") {
  eval(
"standarderror(\"".gettemplate('warn_error_postwarned')."\");");
  exit;


Create a new template called:

warn_error_postwarned
-------
Sorry $bbuserinfo[username], but $info[username] was already wanred on this post for $getwarn[type]. Please select a different post to warn.

And that should do the trick Okiewan... sorry i didn't test it yet... just made it up ;)

Capt Prrune sorry to hear ;\ i thought the instrucstions stated that... besides the systems aren't compatible at all... last system was based on pure warnings no matter what the reason.... this one has a warning points system... regards...

g-force2k2

Okiewan 09-09-2002 03:25 AM

g-force2k2,
Thanks for trying but she no work :(
Multiple warnings on the same post still works.

C.Birch 09-09-2002 07:25 AM

right i have installed the hack and it all works apart from in the admin cp for its settings look at the screen shot to see what i mean.

g-force2k2 09-09-2002 11:40 AM

C.Birch try uninstalling and then reinstalling... if that doesn't work then i will make you an installer to fit your needs... can you tell me what the last settinggroupid is that you've used? regards...
try opening the install_warning.php

find:

PHP Code:

$DB_site->query("INSERT INTO settinggroup VALUES (NULL, 'Warnings System', 40)");
$DB_site->query("INSERT INTO setting VALUES (NULL,40, 'Warning Logs Per Page', 'WLOGSpp', '20', 'The number of warning logs to show per page!', '', 1)");
$DB_site->query("INSERT INTO setting VALUES (NULL,40, 'Register Group', 'REGgroup', '2', 'The usergroupid for the registered usergroup!', '', 2)");
$DB_site->query("INSERT INTO setting VALUES (NULL,40, 'Maximum Ban Limit', 'BANtot', '25', 'The total amount of warning points before user is banned!', '', 3)");
$DB_site->query("INSERT INTO setting VALUES (NULL,40, 'Banned by Warnings Group', 'BANgroup', '8', 'The usergroupid for the banned by warnings usergroup', '', 4)");
$DB_site->query("INSERT INTO setting VALUES (NULL,40, 'No Warning Usergroups', 'NOwarn', '6', 'The usergroupids for the usergroups that can\'t be warned! (seperate each usergroupid by a comma)', '', 5)");
$DB_site->query("INSERT INTO setting VALUES (NULL,40, 'Can See Warnings Levels', 'CANseewarn', '2,5,6,7', 'The usergroupids for the usergroups that can see the warning levels! (seperate each usergroupid by a comma!', '', 6)");
$DB_site->query("INSERT INTO setting VALUES (NULL,40, 'Can View Warnings', 'CANview', '5,6,7', 'The usergroupids for the usergroups that can view user warnings! (seperate each usergroupid by a comma)', '', 7)");
$DB_site->query("INSERT INTO setting VALUES (NULL,40, 'Can Issue Warnings', 'CANwarn', '5,6,7', 'The usergroupids for the usergroups tat can warn users! (seperate each usergroupid by a comma)', '', 8)");
$DB_site->query("INSERT INTO setting VALUES (NULL,40, 'Email Ban User', 'BANemail', '1', 'Emails the user when they\'re banned by exceeding the ban limit!', 'yesno', 9)"); 

and all of the '40' change to the number of the next settinggroupid... you can check the last settinggroupid by going to admin/setting.php in your browser... regards...

g-force2k2

C.Birch 09-09-2002 01:22 PM

its working now before i tryed it how someone said before to do it turn 40 in to 140 and that never worked but i just turned them in to 42 and that worked because last one was 41. thanx and cool hack :)

lynda 09-09-2002 01:34 PM

I installed the hack with no problems at all - absolutely everything was working (I ended up uninstalling it because it doesn't look like we really need it yet)

The only two changes I made were I changed 40 to another number...

The other thing looks like it might be an error and might be what's causing the blank pages?

The install.txt file says this:

PHP Code:

open member.php (2)

find: (1)

  
$templatesused "getinfo_sendpm,aol,icq,yahoo,getinfo_birthday,getinfo_customfields,getinfo";

under it add:

// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++
  
$templatesused ",warn_getinfo_warning,warn_userinfo";
// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++ 

If that's done, if the new $templatesused is added UNDER the current one as the instructions suggest, won't that just overwrite the $templatesused variable nullifying the first one?

I just added warn_getinfo_warning,warn_userinfo to the end of my current templatesused variable, but I think this also would work if you placed it under the first $templatesused variable.. perhaps this is what it's supposed to say?:
PHP Code:

   $templatesused $templatesused ",warn_getinfo_warning,warn_userinfo"


g-force2k2 09-09-2002 01:57 PM

lynda: thanks for the bug exploit :p

it won't really effect the hack no... but just change:

PHP Code:

  $templatesused ",warn_getinfo_warning,warn_userinfo"

to this:

PHP Code:

  $templatesused.= ",warn_getinfo_warning,warn_userinfo"

regards...

g-force2k2


All times are GMT. The time now is 03:29 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.01478 seconds
  • Memory Usage 1,768KB
  • 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
  • (1)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