Bug #401

Non-permanent bans dont need demo

Added by Adam 'HiJacker' Lucansky 89 days ago. Updated 89 days ago.

Status:Resolved Start:10/08/2008
Priority:Low Due date:
Assigned to:- % Done:

100%

Category:Web Panel
Target version:1.3.1

Description

In fact .. on my servers, i have for 19 bans without demo, but almost all are bans for barricade destroying, team flashing etc., and i dont think someone who did something wrong, and he will get banned for 5 mins, he need demo ..

History

Updated by Adam 'HiJacker' Lucansky 89 days ago

Damn .. this is feature request , not bug, sorry

Updated by Jannik Hartung 89 days ago

i don't get the problem? so just don't add a demo? or are you talking about the count for bans without demo should just show permanent bans without demo?

Updated by Adam 'HiJacker' Lucansky 89 days ago

Yes .. i mean that "Without demo" counter , it should count only non-perm. bans instead of all

Updated by Jannik Hartung 89 days ago

I think this is a very custom wish!
So just fix it by yourself by editing /pages/admin.admins.php
search for '$nodem' and replace the line with

$nodem = $GLOBALS['db']->Execute("SELECT B.bid AS num FROM `" . DB_PREFIX . "_bans` AS B WHERE B.aid = '".$admin['aid']."' AND B.length = '0' AND NOT EXISTS (SELECT D.demid FROM `" . DB_PREFIX . "_demos` AS D WHERE D.demid = B.bid)");

and /pages/page.banlist.php
search for 'case "nodemo"' and replace the line below with

$where = "WHERE BA.aid = '".$value."' AND BA.length = '0' AND NOT EXISTS (SELECT DM.demid FROM ".DB_PREFIX."_demos AS DM WHERE DM.demid = BA.bid)";

But remember: if you edit your files by hand, you have to reedit it everytime you update sourcebans!

Updated by Jannik Hartung 89 days ago

  • Category set to Web Panel
  • Status changed from New to Resolved
  • Target version set to 1.3.1
  • % Done changed from 0 to 100

Also available in: Atom PDF