Page 14 of 18

Re: Ban List Mod

Posted: Sat Aug 15, 2009 7:21 pm
by gregdg1
thx for trying to help out but that did not work i know that this mod works and so does the other one but they just dont work together. sometimes you can have it all and sometimes you dont get what you want lol i just wanted you to know that did not fix it but thx for trying i have just uninstalled this one as i need the other one more thx again

greg

Re: Ban List Mod

Posted: Sat Aug 15, 2009 8:44 pm
by RMcGirr83
gregdg1 wrote:thx for trying to help out but that did not work i know that this mod works and so does the other one but they just dont work together. sometimes you can have it all and sometimes you dont get what you want lol i just wanted you to know that did not fix it but thx for trying i have just uninstalled this one as i need the other one more thx again

greg
Okay I'll install the other one on my forum but it should have worked as I posted. I'll let you know via this topic one way or the other.

Re: Ban List Mod

Posted: Sat Aug 15, 2009 10:31 pm
by gregdg1
ok thx

Re: Ban List Mod

Posted: Sun Aug 16, 2009 1:20 am
by DoYouSpeakWak
Just got a pm from a mod. He is asking about making it easier to get the ip of the banned user. the two lists in acp doesnt really combine username and ip. You have to search two diffrent places.

so i was thinking if it was posible to add to this mod. "last ip user uses at time of ban" or even "Ip from latest topic/post at time of ban" some thing like that. I can imagen its not that simple since the two things are seperated. im not sure how ips get logged according to phpbb functions.

Wak

Re: Ban List Mod

Posted: Sun Aug 16, 2009 4:28 am
by RMcGirr83
gregdg1, please see the new code

DoYouSpeakWak, please try this

OPEN

ban_list.php

FIND

Code: Select all

// grab some naughty users
BEFORE ADD

Code: Select all

// show users last ip address..only for those authed to view it
$sql_select = '';
if ($auth->acl_get('a_'))
{
	$sql_select = ', u.user_ip';
}
FIND

Code: Select all

'SELECT'	=> 'b.*, u.user_id, u.username, u.username_clean, u.user_colour, u.user_warnings, u2.user_id as user_id2, u2.username as username2, u2.user_colour as user_colour2',
REPLACE WITH

Code: Select all

'SELECT'	=> 'b.*, u.user_id, u.username, u.username_clean, u.user_colour, u.user_warnings, u2.user_id as user_id2, u2.username as username2, u2.user_colour as user_colour2' . $sql_select,
FIND

Code: Select all

'USERNAME_FULL'			=> get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']),
AFTER ADD

Code: Select all

			'USER_IP'				=> (!empty($row['user_ip'])) ? $row['user_ip'] : '',
OPEN

styles/xxx/template/ban_list_body.html

FIND

Code: Select all

{banlist_row.USERNAME_FULL}<br /><span>
IN LINE FIND

Code: Select all

<span>
IN LINE AFTER ADD

Code: Select all

<!-- IF banlist_row.USER_IP -->{L_IP} {banlist_row.USER_IP} <br /><!-- ENDIF -->
refresh the template and that will show the users IP as stored in the users table but only to those that have the auths to view IP addresses (namely any user that has admin permissions).

Re: Ban List Mod

Posted: Mon Aug 17, 2009 7:34 pm
by gregdg1
RMcGirr83 dude you are the man it worked great thx for your hard work in making a fix for it. it even tells who did the lats warning and why they were band thx so much

greg

Re: Ban List Mod

Posted: Sat Aug 22, 2009 10:10 pm
by naushadhassam
CAN A MOD DELETE THIS POST PLS

THANKS

Re: Ban List Mod

Posted: Tue Aug 25, 2009 11:09 am
by vert5
Hello , I have som problem with this mod.

Only when I am starting root/db_update.php , it doesn't work , and forum write that i have no premissions to acess this section, whats could be wrong please ?

Or can I create table in phpmyadmin manually instead of usig this db_update.php ?

Thanks. :)

Re: Ban List Mod

Posted: Tue Aug 25, 2009 11:34 am
by RMcGirr83
You have to have either board founder status or admin status to use the db_update.php file. Ensure that you are logged onto your forum prior to browsing to the db_update.php file.

Ban List Mod

Posted: Thu Aug 27, 2009 3:56 am
by DavidIQ
MOD Updated to version 1.0.10
See first post for Download Link

Re: Ban List Mod

Posted: Thu Aug 27, 2009 6:11 am
by autinhyeu
How to upgrade 1.0.9 to 1.0.10???
Thanks

Re: Ban List Mod

Posted: Thu Aug 27, 2009 9:45 am
by RMcGirr83
autinhyeu wrote:How to upgrade 1.0.9 to 1.0.10???
Thanks
Unzip the download and overwrite your ban_list.php in the root of your forum with the new one.

Update fixes the issue with an improper count on the ban list page per this post

Re: Ban List Mod

Posted: Sat Oct 17, 2009 11:57 pm
by anthies
One question about this mod. Does this work on the Xtreme styles?

Re: Ban List Mod

Posted: Mon Nov 23, 2009 6:33 pm
by Neuropass
Is it possible to have the username of who eventually banned the user?

Re: Ban List Mod

Posted: Mon Nov 23, 2009 7:27 pm
by RMcGirr83