• [MOD] Ban v1.7 3 0 5 1
Currently:  

Author Topic: [MOD] Ban v1.7  (Read 359806 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Ban v1.7
« Reply #150 on: May 23, 2006, 02:37:29 PM »
ad 2) yes - i did download the ban.php from your page (even if it says 1.6 there)
:)
But I'll better re-check it again...
Yes, re-check that, because the current version in the package is v1.6.3 ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [MOD] Ban v1.7
« Reply #151 on: June 15, 2006, 02:31:08 PM »
just block
217.*.*.*
and
220.*.*.*
and both IP-ranges will be blocked
MAяTRIX


Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [MOD] Ban v1.7
« Reply #152 on: June 16, 2006, 11:01:07 AM »
Yep, paging would be nice :) and easier than going to PHPMyAdmin to see all the logs :)
MAяTRIX


Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Ban v1.7
« Reply #153 on: June 16, 2006, 10:08:59 PM »
can some body give me the package @ Step 7

the site is block for me!

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Ban v1.7
« Reply #154 on: June 16, 2006, 10:30:02 PM »
thanks buddy :)

I just install it and will see if this gone to stop the spam :)

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [MOD] Ban v1.7
« Reply #155 on: June 17, 2006, 10:26:59 AM »
Hi,

just a minor tweak fo FF users:

in ban.php find:

Code: [Select]
          $username = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$username;
replace with:
Code: [Select]
          $username = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" title=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$username;
find:
Code: [Select]
          echo "<td><img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$lang['userlevel_guest']."</td>\n";
and replace it with:

Code: [Select]
          echo "<td><img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" title=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0> ".$lang['userlevel_guest']."</td>\n";

Now also FF users will see a tooltip-text over the flag ;)
MAяTRIX


Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Ban v1.7
« Reply #156 on: June 17, 2006, 06:38:51 PM »
unfortunately this patch can't help me to stop the SPAM with changable IP

 :cry: :cry: :cry: :cry:

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] Ban v1.7
« Reply #157 on: June 17, 2006, 08:51:30 PM »
-> nnjj, you are right, try a MOD "secure code" for comments or guestbook!

Project offline

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Ban v1.7
« Reply #158 on: June 18, 2006, 09:08:00 AM »
I did try it, dosn't help as well!  :roll:

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Ban v1.7
« Reply #159 on: June 19, 2006, 03:44:59 PM »
so people any ideas!  :roll:

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Ban v1.7
« Reply #160 on: June 22, 2006, 07:51:05 PM »
so??? :cry:

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Ban v1.7
« Reply #161 on: June 29, 2006, 08:01:48 PM »
Hallo Ivan, hallo martrix,

... habe das gleiche Problem mit dem Paging ...
... und dabei festgestellt, dass ein Form in $action == "logs" fehlt , dass die Loggs/Seite setzt (Dropdown) ...
... dieses Problem kann man aber vorläufig schnell lösen ...
... wobei dann die Logs/Seite mit dem Filter in der Bann-Liste, also gleich Bans/Seite, identisch gesetzt werden ...
... das ist noch keine endgültige Lösung, da die Logs/Seite nicht unabhängig von den Bans/Seite gesetzt werden können ...
... um das Problem perfekt zu lösen, müsste wie gesagt noch das Form in $action == "logs" eingebaut werden ...
... dennoch ist meine Lösung zunächst absolut praktikabel ... und vielleicht meldet sich V@no ja noch ...

also was ist zu tun :

1. finde in ban.php in if ($action == "logs") { folgendes :
Code: [Select]
$perpage = $site_sess->get_session_var("ban_logs_perpage");
und ersetze es durch :
Code: [Select]
$perpage = $site_sess->get_session_var("ban_perpage");

2. finde in ban.php in if ($action == "logs") { folgendes :
Code: [Select]
$getpaging = new Paging($page, $perpage, $result['num'], $site_sess->url(ROOT_PATH."admin/plugins/ban.php"));
und ersetze es durch :
Code: [Select]
$getpaging = new Paging($page, $perpage, $result['num'], $site_sess->url(ROOT_PATH."admin/plugins/ban.php?action=logs"));

... so, wie gesagt, das Paging funktioniert jetzt bei mir bestens ...
... vielleicht fällt mir zu dem Form <select name=\"perpage\"> in $action == "logs" ja auch noch was ein ...
... wobei ich mir sicher bin, dass V@no sich vorher melden wird ...

Das Resultat :

« Last Edit: June 29, 2006, 10:12:52 PM by mawenzi »
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [MOD] Ban v1.7
« Reply #162 on: June 29, 2006, 08:21:00 PM »
funzt bei mir leider nicht - danke aber für die Bemühung, mawenzi!
MAяTRIX


Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Ban v1.7
« Reply #163 on: June 29, 2006, 08:34:43 PM »
@ martrix

... bevor du in die Logliste gehst, musst du vorher noch die Seitenanzahl im Filter in der Ban-Liste setzen ...  :!:
... ist vielleicht in meiner Beschreibung nicht ganz so rüber gekommen ...
... wie gesagt, von dort wird dann die Einstellung für das Paging übernommen ...
... und wenn der Filter nicht gesetzt ist ... dann funktioniert das Paging in der Log-List auch nicht ...
... ist halt noch 'ne Übergangslösung ... die aber funktioniert ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [MOD] Ban v1.7
« Reply #164 on: June 29, 2006, 08:44:52 PM »
Habe ich auch gemacht - wahrscheinlich habe ich auch die Datei falsch geändert,
weil ich bei einem Versuch auf Seite n zu kommen aber auf die Homepage komme...
MAяTRIX