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

Author Topic: [MOD] Ban v1.7  (Read 358714 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.2
« Reply #135 on: May 08, 2006, 07:48:28 AM »
No, it wont.
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 boerdi

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: [MOD] Ban v1.6.2
« Reply #136 on: May 10, 2006, 08:41:25 PM »
Heb folgendes Problem..und zwar:

DB Error: Bad SQL Query: SELECT b.*, l.*, u.user_name, u.user_level FROM 4images_ban_logs l LEFT JOIN 4images_ban b ON (b.id = l.ban_id) LEFT JOIN user u ON (u.user_id = l.user_id) ORDER BY l.date asc LIMIT 0, 30
Unknown column 'u.user_name' in 'field list'

Habe VBULLETIN INTEGRIERT!

Kann mir wer helfen?

lg

Offline boerdi

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: [MOD] Ban v1.6.2
« Reply #137 on: May 11, 2006, 04:54:20 PM »
nobody here who can help me, please??

i have following problem:

when i click on logs.....this message appears aboth the list:

DB Error: Bad SQL Query: SELECT b.*, l.*, u.user_name, u.user_level FROM 4images_ban_logs l LEFT JOIN 4images_ban b ON (b.id = l.ban_id) LEFT JOIN user u ON (u.user_id = l.user_id) ORDER BY l.date desc LIMIT 0, 30
Unknown column 'u.user_name' in 'field list'


thank´s a lot!

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.2
« Reply #138 on: May 12, 2006, 12:27:34 AM »
Sorry, current version does not support integrations... :(
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 boerdi

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: [MOD] Ban v1.6.2
« Reply #139 on: May 12, 2006, 05:45:11 PM »
ok!
and how i can reinstall this mod???

Offline boerdi

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: [MOD] Ban v1.6.2
« Reply #140 on: May 12, 2006, 05:51:18 PM »
what you mean with current version???

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [MOD] Ban v1.6.2
« Reply #141 on: May 20, 2006, 05:57:38 PM »
Hi,

I have one question. Can guests or normal users see profile of banned user?

Asking becouse as admin I can't see profile (banned sign), but if I visit banned profile as guest or regular user I can see it.

Is there a bug in my code or is it normal?

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.2
« Reply #142 on: May 20, 2006, 06:14:09 PM »
This mod does not affect other members/visitors in any way. So, if you cant see profiles of banned members - I have no clue what could be wrong...
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 Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [MOD] Ban v1.6.2
« Reply #143 on: May 20, 2006, 06:16:44 PM »
I tried to change line:

Quote
   if ($user_info['user_level'] == ADMIN)
in function.php to:

Quote
if ($user_info['user_level'] == GUEST)

Then as admin I could see banned user profile, but as guest I wasn't able.

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.2
« Reply #144 on: May 20, 2006, 06:54:41 PM »
hmmmm...you know, you are right...I guess I never tested it properly with user id banned...

replace
Code: [Select]
   if ($user_info['user_level'] == ADMIN)
with
Code: [Select]
  if (isset($HTTP_GET_VARS['bantest']) && $user_info['user_level'] == ADMIN)
(or redo step 3 if you wish)

And redownload the package, replace ban.php
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 Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [MOD] Ban v1.6.3
« Reply #145 on: May 20, 2006, 07:02:50 PM »
But now you are able to see banned profile even if you are admin, registered user or guest?

I would like to unable viewing profile for all users - except for admin.

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.3
« Reply #146 on: May 20, 2006, 07:40:55 PM »
opss....
1) please remove the changes above, and redo step 3 instead otherwise admin can get banned when trying access member profile page
2) I've added step 8 ;)
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 #147 on: May 22, 2006, 08:27:12 PM »
Hi V@no,

if I redo step 3 I can't test the bans :(
Is that intended to work this way?

BTW: thank you for this mod after a huge spam-attack last month I was forced to implement it...
MAяTRIX


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 #148 on: May 23, 2006, 02:12:54 AM »
if I redo step 3 I can't test the bans :(
Is that intended to work this way?
1) did you replace ban.php with the new version?
2) when you click on test link, do you see bantest in the url? if not, look 1) ;)
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 #149 on: May 23, 2006, 10:01:20 AM »
1) did you replace ban.php with the new version?
2) when you click on test link, do you see bantest in the url? if not, look 1) ;)

ad 1) yes
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...
MAяTRIX