[Final] Admin Userlist 1.4.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

[Final] Admin Userlist 1.4.0

Post by wGEric »

## EasyMod 0.0.7 compliant
##############################################################
## MOD Title: Admin Userlist
## MOD Author: wGEric < eric@wwegcodes.com > (Eric) http://www.wwelitegamers.com/
## MOD Description: This mod enables you to see a list of every user on your board. From the list you can choose to email a user, edit permissions or profile of a user, see the posts of a user, change their activation status, send them a Personal Message, ban the username, or delete their account.
## MOD Version: 1.4.0
##
## Installation Level: easy
## Installation Time: 1 Minute
## Files To Edit: lang_admin.php
## Included Files: admin_userlist.php
## userlist_body.tpl
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes:
##
## Special Thanks to pollix for helping me out with the bugs.
##
##############################################################
## MOD History:
## 03/24/03 - Final 1.4.0 - Made it so you can see what groups the user is in.
##
## 02/??/03 - Beta 1.3.0 - Added features and changed look.
##
## 02/15/03 - Beta 1.2.0 - Added the delete option and added the alphabetic order (http://www.phpbb.com/phpBB/viewtopic.php?t=22307)
##
## 02/13/03 - Beta 1.1.0 - Fixed more bugs in the code. Changed it so when you click on their email address it uses the boards built in emailer even if you have it disabled. I also made it so you can change their status from the userlist.
##
## 02/12/03 - Beta 1.0.1 released - This fixed a bug.
##
## 02/11/03 - Beta 1 Released
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################


Download Admin Userlist 1.4.0 (Current Version)
Download Admin Userlist 1.3.0

Features
  • Delete Users
  • Ban their username
  • Change their Active Status
  • Email them
  • PM them
  • Edit their Permissions
  • Edit their Profile
  • See what group they are in
I have submitted it to the Mod Database
Last edited by wGEric on Wed Mar 26, 2003 3:06 am, edited 12 times in total.
Eric
Acecool
Registered User
Posts: 1013
Joined: Sat Jul 13, 2002 4:51 am
Location: Behind my computer
Contact:

Post by Acecool »

This code is ALMOST "EXACT" of smartors user list
Looks like just a few things were changed

Code: Select all

<h1>{L_ADMIN_USERS_LIST_TITLE}</h1>

<p>{L_ADMIN_USERS_LIST_EXPLAIN}</p>

<form action="{U_LIST_ACTION}" method="post">
<p>{L_SELECT_SORT_METHOD}
<select name="sort">
<option value="user_id" class="genmed">ID</option>
<option value="username" class="genmed">{L_USERNAME}</option>
<option value="user_posts" class="genmed">{L_POSTS}</option>
<option value="user_regdate" class="genmed">{L_JOINED}</option>
<option value="user_lastvisit" class="genmed">{L_LAST_VISIT}</option>
</select>
&{L_ORDER}
<select name="order">
<option value="ASC">{L_SORT_ASCENDING}</option>
<option value="DESC">{L_SORT_DESCENDING}</option>
</select>
&<input type="submit" value="{L_SORT}" class="liteoption">
</form>

<table width="100%" cellpadding="6" cellspacing="1" border="0" class="forumline">
	<tr>
		<th class="thCornerL" height="25" valign="middle" nowrap="nowrap">#</th>
		<th class="thTop" height="25" valign="middle" nowrap="nowrap">{L_ACTION}</th>
		<th class="thTop" height="25" valign="middle" nowrap="nowrap">{L_USERNAME}</th>
		<th class="thTop" height="25" valign="middle" nowrap="nowrap">{L_EMAIL}</th>
		<th class="thTop" height="25" valign="middle" nowrap="nowrap">{L_POSTS}</th>
		<th class="thTop" height="25" valign="middle" nowrap="nowrap">{L_JOINED}</th>
		<th class="thTop" height="25" valign="middle" nowrap="nowrap">{L_LAST_VISIT}</th>
		<th class="thCornerR" height="25" valign="middle" nowrap="nowrap">{L_ACTIVE}</th>
	</tr>
	<!-- BEGIN userrow -->
	<tr>
		<td class="{userrow.COLOR}" align="center" valign="middle" height="28" nowrap="nowrap"><span class="genmed">{userrow.NUMBER}</span></td>
		<td class="{userrow.COLOR}" align="center" valign="middle" height="28" nowrap="nowrap"><span class="gensmall"><a href="{userrow.U_ADMIN_USER}">Edit</a><br /><a href="{userrow.U_ADMIN_USER_AUTH}">Permission</a></span></td>
		<td class="{userrow.COLOR}" align="center" valign="middle" height="28" nowrap="nowrap"><span class="genmed">{userrow.USERNAME}</span></td>
		<td class="{userrow.COLOR}" align="center" valign="middle" height="28" nowrap="nowrap"><span class="genmed">{userrow.EMAIL}</span></td>
		<td class="{userrow.COLOR}" align="center" valign="middle" height="28" nowrap="nowrap"><span class="genmed">{userrow.POSTS}</span></td>
		<td class="{userrow.COLOR}" align="center" valign="middle" height="28" nowrap="nowrap"><span class="genmed">{userrow.JOINED}</span></td>
		<td class="{userrow.COLOR}" align="center" valign="middle" height="28" nowrap="nowrap"><span class="genmed">{userrow.LAST_VISIT}</span></td>
		<td class="{userrow.COLOR}" align="center" valign="middle" height="28" nowrap="nowrap"><span class="genmed">{userrow.ACTIVE}</span></td>
	</tr>
	<!-- END userrow -->
	<tr>
		<td class="catBottom" height="28" align="center" valign="middle" colspan="8">
		</td>
	</tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr>
		<td align="left" valign="middle" nowrap="nowrap"><span class="nav">{PAGE_NUMBER}</span></td>
		<td align="right" valign="middle"><span class="nav">{PAGINATION}</span></td>
	</tr>
</table>

<br />

VS

Code: Select all

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr>
		<td align="left"><h1>{L_USER_LIST_TITLE}</h1></td>
	</tr>
	<tr>
		<td align="left">{L_USER_LIST_DESCRIPTION}</td>
	</tr>
</table>

<form method="post" action="{S_MODE_ACTION}">
  <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr> 
	  <td align="left">&</td>
	  <td align="right" nowrap="nowrap"><span class="genmed">{L_SELECT_SORT_METHOD}:&{S_MODE_SELECT}&&{L_ORDER}&{S_ORDER_SELECT}&& 
		<input type="submit" name="submit" value="{L_SUBMIT}" class="liteoption" />
		</span></td>
	</tr>
  </table>
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
	<tr> 
	  <th class="thCornerL" nowrap="nowrap">{L_ACTION}</th>
	   <th class="thTop" nowrap="nowrap">{L_USERNAME}</th>
	  <th class="thTop" nowrap="nowrap">{L_EMAIL}</th>
	  <th class="thTop" nowrap="nowrap">{L_JOINED}</th>
	  <th class="thTop" nowrap="nowrap">{L_ACTIVE}</th>
	  <th class="thTop" nowrap="nowrap">{L_POSTS}</th>
	  <th class="thCornerR" nowrap="nowrap">{L_PM}</th>
	</tr>
	<!-- BEGIN memberrow -->
	<tr> 
	
	  <td class="{memberrow.ROW_CLASS}" align="Left">
	  	<a href="{memberrow.U_EDIT_PERMISSION}" class="gen">{L_EDIT_PERMISSION}</a><br><a href="{memberrow.U_EDIT_PROFILE}" class="gen">{L_EDIT_PROFILE}</a>
	  </td>
	  
	  <td class="{memberrow.ROW_CLASS}" align="left"><span class="gen">{memberrow.ROW_NUMBER}.&<a href="{memberrow.U_VIEWPROFILE}" class="gen">{memberrow.USERNAME}</a></span></td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle">&{memberrow.EMAIL}&</td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.JOINED}</span></td>
	  <td class="{memberrow.ROW_CLASS}" align="center">&{memberrow.ACTIVE}&</td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen"><a href="{memberrow.U_SEARCH_POST}" class="gen">{memberrow.POSTS}</a></span></td>
	  
	  <td class="{memberrow.ROW_CLASS}" align="center">&{memberrow.PM}&</td>
	</tr>
	<!-- END memberrow -->
	<tr> 
	  <td class="catbottom" colspan="8" height="28">&</td>
	</tr>
  </table>
  <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
	<tr> 
	  <td align="right" valign="top"></td>
	</tr>
  </table>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
  <tr> 
	<td><span class="nav">{PAGE_NUMBER}</span></td>
	<td align="right"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span></td>
  </tr>
</table></form>
Visit Acecoolco.com :: Image

If you plan on contacting me, please read this: Legal Terms & Conditions
User avatar
Daz
Registered User
Posts: 5236
Joined: Fri Dec 07, 2001 2:39 pm
Location: Yorkshire, UK

Post by Daz »

Hi,

It may possibly be because they are both based upon memberlist_body.tpl
Please and Thank You works wonders...
I reserve the right to post illogical (and totally wrong) replies.
...It's the subtle perfection in attention to detail that makes your work rock the way it does - cdkrg
Think simple - it's not necessarily what you draw that matters, it's what you perceive - Daz

Note: ForumImages<dot>com is no longer anything to do with me.
Acecool
Registered User
Posts: 1013
Joined: Sat Jul 13, 2002 4:51 am
Location: Behind my computer
Contact:

Post by Acecool »

Hmm, possibly.
Why make a mod that already exists?
Visit Acecoolco.com :: Image

If you plan on contacting me, please read this: Legal Terms & Conditions
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric »

It is based on the memberlist that is already there.
Why make a mod that already exists?


I haven't seen one that is on the site that works with 2.0.4. or easymod. If you could show me where his is. I can't find it using the searching the posts or looking in the mod database. If you could tell me where it is on phpbb.com I would be happy. :)

I also made this so I know how it works so I can add some more features to it later on. I don't want to add features to someone else's code and call it mine. I would rather make my own code and change that.

Has anyone tried installing this on their site? If you have did it work out?
Eric
senghong79
Registered User
Posts: 311
Joined: Wed Oct 30, 2002 2:45 pm
Location: Malaysia

Post by senghong79 »

I think since this is currently heavily based on the memberlist, I don't think there is much need to credit anyone else (except phpbb group, of course!)

Code: Select all

Author Notes: I am hoping to add in the future a checkbox next to each username so you can delete multiple names at once. Also make it so you can PM them or email all of them.
Possible include activate/deactivate mulitple users at once too? That would make it even more useful. Will download it and test it out today...
pollix
Registered User
Posts: 153
Joined: Tue Jul 23, 2002 6:29 pm
Location: Ridgecrest, CA
Contact:

Post by pollix »

I don't know about anyone else... but I have the following problems...

1. E-Mail link. When I click on it it points to http://www.myforum.com/admin/profile.php?mode=email

2. Private Message Link. When I click on it, it points to http://www.myforum.com/admin/privmsg.php?mode=post

Of course what I have underlined should not be there. I'm checking some other mods that I put on to see if they might be causing problems. Other than the above stated... I like this mod! It is real user friendly and I'm keeping it up! :D
senghong79
Registered User
Posts: 311
Joined: Wed Oct 30, 2002 2:45 pm
Location: Malaysia

Post by senghong79 »

I have the same problem too. I think a few places needs

Code: Select all

$phpbb_root_path .
The sort is also not working coz of this problem.

I see that it already list down the activation status. Nice! Can I suggest "sort by activation status"? Then perhaps, the "yes" will link to deactivate the user and "no" will link to "activate" users. :D

Extra suggestion: Probably add the "alphabetic order in memberlist"

http://www.phpbb.com/phpBB/viewtopic.php?t=22307

or even the "advanced user lookup" and this will be the PERFECT admin tool!

(personally, I'm going to add the real name mod)
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric »

That problem with the PM and profile links should be fixed now.

I'll work on getting those other things you have requested. Thanks for testing it out.
Eric
pollix
Registered User
Posts: 153
Joined: Tue Jul 23, 2002 6:29 pm
Location: Ridgecrest, CA
Contact:

Post by pollix »

wGEric wrote: That problem with the PM and profile links should be fixed now.


I would really like to upgrade my user_list.php, but... I get a 404 error when I try to download... :cry:
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric »

:oops: I'm so sorry. You can tell this is my first mod . . .

I had the file uploaded. Forgot to change the link to the right one though. It works now. :)
Eric
pollix
Registered User
Posts: 153
Joined: Tue Jul 23, 2002 6:29 pm
Location: Ridgecrest, CA
Contact:

Post by pollix »

ok... just one more error and everything will work!! I already fixed mine! Real simple fix!

On line 158 of admin_userlist.php

Code: Select all

$email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id) : 'mailto:' . $row['user_email'];
Needs to be changed to:

Code: Select all

$email_uri = ( $board_config['board_email_form'] ) ? append_sid($phpbb_root_path . "profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id) : 'mailto:' . $row['user_email'];

Now everything works as you wanted advertised! :wink: GREAT MOD! It's much easier and convienent for me!!

**EDIT** I found more errors. :wink:

On line 119 of admin_userlist.php:

Code: Select all

'S_MODE_ACTION' => append_sid("memberlist.$phpEx"))
Needs to be changed to:

Code: Select all

'S_MODE_ACTION' => append_sid("admin_userlist.$phpEx"))
On line 228 of admin_userlist.php:

Code: Select all

$pagination = generate_pagination("memberlist.$phpEx?mode=$mode&order=$sort_order", $total_members, $board_config['topics_per_page'], $start). '&';
Needs to be changed to:

Code: Select all

$pagination = generate_pagination("admin_userlist.$phpEx?mode=$mode&order=$sort_order", $total_members, $board_config['topics_per_page'], $start). '&';
This will fix pretty much all of the errors. You had memberlist.php as the link and should of had it link to admin_userlist.php :wink: You should make these changes. That's it! It works perfect now!
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric »

Thanks for the help. It is updated to the lastest version now.

Should I submit it to the database now or wait until I add some other features?
Eric
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

1.1.0 beta released.

Post by wGEric »

I changed a couple of things in it like when you click on the users email address it goes to the boards built in emailer even if you have it disabled.

I also made it so when you click on the persons active status it switches it to the opposite one. So if their status is not activated then it will switch it to activated.

Unless I can get some help with the checkboxes this will be the final.
Eric
Linkooseven
Registered User
Posts: 70
Joined: Sun Dec 22, 2002 11:30 pm
Location: Michigan, USA
Contact:

Post by Linkooseven »

The kind of mods I like. Simple yet effective.

Thanks! Note though, you should add a few more features to it.
Locked

Return to “[2.0.x] MODs in Development”