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

Author Topic: [MOD] Ban v1.7  (Read 357367 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.6
« Reply #75 on: May 21, 2005, 04:31:38 PM »
my suspicion is magick quotes that is turned on your server (btw, is zend optimizer was updated on your server?)
so try replace unserialize($ban_banned) with unserialize(stripslashes($ban_banned))

P.S. u forgot restore $force variable to 'false' ?
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 universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] Ban v1.6
« Reply #76 on: May 21, 2005, 04:36:44 PM »
yeah sorry i restored true to false not in that place where you wanted, now i fixed it
and replaced unserialize($ban_banned) too

I am not sure about zend optimizer...
Again this addres?!
http://www.funny.lt

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.6
« Reply #77 on: May 21, 2005, 04:38:20 PM »
ok, I think it should work now,  u can remove the debug code ;)
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 universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] Ban v1.6
« Reply #78 on: May 21, 2005, 04:44:26 PM »
are you sure about that? because i think it does not work for me...
and what is the meaning of red column? When [ 2005-05-21 17:39:51 ] column is red?
Again this addres?!
http://www.funny.lt

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.6
« Reply #79 on: May 21, 2005, 05:12:53 PM »
the red color indicates a "problem" either the ban has not active yet (the start date is in the future) or the end date is in the past (expired)

and its working for me, I'm banned on your site now :P
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 universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] Ban v1.6
« Reply #80 on: May 21, 2005, 05:16:06 PM »
yeah, you are banned because a ban was set a time ago, but why the ban not activates after when i add it?
Again this addres?!
http://www.funny.lt

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.6
« Reply #81 on: May 21, 2005, 05:18:22 PM »
I asume your host has different time then the time where u live...this mod does not support time offset (maybe yet?)
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 universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] Ban v1.6
« Reply #82 on: May 21, 2005, 05:23:20 PM »
oh... I forgot server time... it offset is about 9h... so this script can`t take time offset of 4images settings?
Again this addres?!
http://www.funny.lt

Offline Xandra

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • D-zynez Graphics
Re: [MOD] Ban v1.6
« Reply #83 on: June 01, 2005, 09:32:15 PM »
I successfully installed this mod - thank you!  :D (go me lol).. have not tested it yet though if banning works.

I have no idea where to place this query of mine but since it concerns banning, I thought I'd post it here:

In ACP under EDIT USERS (where I get the list of all registered users - activated and non-activated -  when doing a search), I would like their IP addresses to be added in the table. How do I go about with this? I feel this is vital to have this feature showing there
- in order to be able to check the users before giving them access to the Members' area
- for the banning process

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.6
« Reply #84 on: June 02, 2005, 12:14:13 AM »
4images does not log visitor's IPs, only stores IPs of currently active sessions.
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 Xandra

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • D-zynez Graphics
Re: [MOD] Ban v1.6
« Reply #85 on: June 02, 2005, 12:21:55 AM »
4images does not log visitor's IPs, only stores IPs of currently active sessions.

Does this mean, that I would have to take notes of their IPs separately? I mean, if I would ban a registered user via Email address, user Id or the name, that banned person could just make a new account if I would not ban his/her IP.

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.6
« Reply #86 on: June 02, 2005, 12:46:29 AM »
Does this mean, that I would have to take notes of their IPs separately? I mean, if I would ban a registered user via Email address, user Id or the name, that banned person could just make a new account if I would not ban his/her IP.
That is correct.
A little help would be if the user posted a comment, it logs the IP.

But then ofcourse u can add a little code in includes/sessions.php that would save IPs of each visitor in the database ;)
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 Xandra

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • D-zynez Graphics
Re: [MOD] Ban v1.6
« Reply #87 on: June 02, 2005, 12:50:30 AM »
But then ofcourse u can add a little code in includes/sessions.php that would save IPs of each visitor in the database ;)

lol that would be great.. but what "little code" would that be?
I have no PHP knowledge (guess it's time to edit my profile here and put this line as signature  :lol:)

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.6
« Reply #88 on: June 02, 2005, 12:59:03 AM »
but what "little code" would that be?
some how I had a feeling this is going to be next question...:lol:
Well, since its not really related to this mod, perhaps u should start a new topic in the mod requests forum ;)
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 Xandra

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • D-zynez Graphics
Re: [MOD] Ban v1.6
« Reply #89 on: June 02, 2005, 06:40:06 PM »
some how I had a feeling this is going to be next question...:lol:
Well, since its not really related to this mod, perhaps u should start a new topic in the mod requests forum ;)

you know, I already did.. so how about giving me that "little code" instruction?  :lol:
http://www.4homepages.de/forum/index.php?topic=8220.0