[20/01/07] Admin Userlist

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
398
72%
Very Good
98
18%
Good
38
7%
Fair
11
2%
Poor
11
2%
 
Total votes: 556

centrumgroup
Registered User
Posts: 2
Joined: Tue Dec 09, 2003 12:37 pm

No portal

Post by centrumgroup »

There was a problem with file permissions. I fixed that but now I'm stuck on this...

Fatal error: Call to a member function on a non-object in /var/www/html/forum/admin/admin_userlist.php on line 411

help appreciated. thanks in advance.
harwoodspike
Registered User
Posts: 1
Joined: Thu Dec 11, 2003 2:15 am

Post by harwoodspike »

I think this MOD should have an add user option. :lol:
willyfoo
Registered User
Posts: 2
Joined: Wed Dec 17, 2003 9:46 am

Post by willyfoo »

Maxwell Smart wrote: great mod, had it up and running in no time.

I'm new to php and have a question, I'd like to modify it by adding an additional column to show the user's real email address, not a button.

I have managed to modify the userlist_body.tpl file to add a new column for this, but it just shows the email button as in the action column.

Now I know I need to modify the admin_userlist.php file somehow. Am I correct in assuming that I need to modify the following:

Code: Select all

$email_uri = append_sid($phpbb_root_path . "profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id);
$email = '<a href="' . $email_uri . '" class="gen"><img src="../' . $images['icon_email'] . '" alt="' . $lang['Email'] . '" border="0"></a>';
by adding something like

Code: Select all

$realemail='user_email'
do I need to modify this?

Code: Select all

$template->assign_block_vars('memberrow', array(
thanks in advance


You're missing this in admin_userlist.php

Code: Select all

$username = $row['username'];
$user_id = $row['user_id'];
$user_email = $row['user_email'];	//Add this line
$status = $row['user_active'];
willyfoo
Registered User
Posts: 2
Joined: Wed Dec 17, 2003 9:46 am

Text Only / PDA Version

Post by willyfoo »

Just wanted to share what I've done to have a Text Only/PDA/Mobile version.
There are 3 main things here
- Buttons in the 'mobile' template are shown as text instead
- The whole row changes color when the user is not active
- Email address is shown below username in 'subsilver' template

Note:
It's just a quick hack, just copying & pasting this will not work
The the Prefix I used is "TXT"
It does not cater to multiple language yet, but shouldn't be difficult to.
You may need to adjust the colspan for the tables manually
Someone can help to make this MOD compliant?

In admin_userlist.php

Code: Select all

$username = $row['username'];
$user_id = $row['user_id'];
$user_email = $row['user_email'];	//Hack for Text Version
$status = $row['user_active'];

Code: Select all

//permissions
$temp_url = append_sid("admin_ug_auth.$phpEx?mode=user&" . POST_USERS_URL . "=" . $user_id);
$permission = '<a href="' . $temp_url . '" class="gen"><img src="../' . $images['icon_perm'] . '" alt="' . $lang['Edit_Permission'] . '" border="0"></a>';
$txt_permission = '[<a href="' . $temp_url . '" class="gen">Permissions</a>] ';	//Hack for Text Version

//edit profile
$temp_url = append_sid("admin_users.$phpEx?mode=edit&" . POST_USERS_URL . "=" . $user_id);
$edit_profile = '<a href="' . $temp_url . '" class="gen"><img src="../' . $images['icon_mangmt'] . '" alt="' . $lang['Edit_Profile'] . '" border="0"></a>';
$txt_edit_profile = '[<a href="' . $temp_url . '" class="gen">Edit</a>] ';	//Hack for Text Version

//Hack to change bgcolor when user is !active
$txt_activecolor = ($active == "Yes") ? '' : ' style="background-color: #FFDDDD;" ';

Code: Select all

$template->assign_block_vars('memberrow', array(
	'USER_ID' => $user_id,
	'ROW_NUMBER' => $i + ( $HTTP_GET_VARS['start'] + 1 ),
	.
	.
	.

	'EDIT_PROFILE' => $edit_profile,
	'LAST_VISIT' => $last_visit,
	'TXT_EMAIL' => $user_email,	//Hack for Text Version
	'TXT_ACTIVECOLOR' => $txt_activecolor,	//Hack for Text Version
	'TXT_PERMISSION' => $txt_permission,	//Hack for Text Version
	'TXT_EDIT_PROFILE' => $txt_edit_profile,	//Hack for Text Version
In /templates/subSilver/admin/userlist_body.tpl

Code: Select all

	<!-- BEGIN memberrow -->
	<tr>
	  <td {memberrow.TXT_ACTIVECOLOR} class="{memberrow.ROW_CLASS}" align="center"><input type="checkbox" name="user_id_list[]" value="{memberrow.USER_ID}"></td>
	  <td {memberrow.TXT_ACTIVECOLOR} class="{memberrow.ROW_CLASS}" align="Left">
	  	{memberrow.PERMISSION}<br />{memberrow.EDIT_PROFILE}<br />{memberrow.EMAIL}<br />{memberrow.PM}
	  </td>	  
	  <td {memberrow.TXT_ACTIVECOLOR} class="{memberrow.ROW_CLASS}" align="left"><p class="gen">{memberrow.ROW_NUMBER}.&nbsp;<a href="{memberrow.U_VIEWPROFILE}" class="gen">{memberrow.USERNAME}</a>
	  <br>(<a href="mailto:{memberrow.TXT_EMAIL}">{memberrow.TXT_EMAIL}</a>)</p>      </td>
	  <td {memberrow.TXT_ACTIVECOLOR} class="{memberrow.ROW_CLASS}" align="center"><span class="gen">{memberrow.GROUP}&nbsp;</span></td>
	  <td {memberrow.TXT_ACTIVECOLOR} class="{memberrow.ROW_CLASS}" align="center" valign="middle">&nbsp;<b>{memberrow.ACTIVE}</b> / {memberrow.LAST_VISIT}&nbsp;</td>
	  <td {memberrow.TXT_ACTIVECOLOR} class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.JOINED}</span></td>
	  <td {memberrow.TXT_ACTIVECOLOR} class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen"><a href="{memberrow.U_SEARCH_POST}" class="gen">{memberrow.POSTS}</a></span></td>
	</tr>
	<!-- END memberrow -->
In /templates/mobile/admin/userlist_body.tpl

Code: Select all

	<!-- BEGIN memberrow -->
	<tr valign="top" {memberrow.TXT_ACTIVECOLOR}>
	  <td align="center"><!--<span class="gen">{memberrow.ROW_NUMBER}.<br>
	  </span>-->
	    <input type="checkbox" name="user_id_list[]" value="{memberrow.USER_ID}">      </td>
 
	  <td align="left" style="border: 1px blue solid;"><p class="gen">{memberrow.USERNAME}
	    (<a href="mailto:{memberrow.TXT_EMAIL}">{memberrow.TXT_EMAIL}</a>) <br>
        {memberrow.TXT_EDIT_PROFILE}
	    {memberrow.TXT_PERMISSION}
		[<a href="{memberrow.U_SEARCH_POST}" class="gen">{memberrow.POSTS} posts</a>] 
		<br>
		<font size=2>{memberrow.GROUP}</font>
      </td>
	</tr>
	<!-- END memberrow -->
Emberem
Registered User
Posts: 98
Joined: Fri Aug 08, 2003 11:17 am
Location: UK
Contact:

Post by Emberem »

Have this mod installed on my forum- highly useful thanks for writing it!
NoGood
Registered User
Posts: 79
Joined: Tue Dec 23, 2003 3:29 pm

Post by NoGood »

I've also installed it, small chance I've made some mistakes, but I cant't see it either in the ACP. Where should i look for errors i could've made?

I get no errors when browsing my forum (http://fkserv.ugent.be/lombrosiana/PHP/index.php)
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 in the user section of the Admin Panel.
Eric
NoGood
Registered User
Posts: 79
Joined: Tue Dec 23, 2003 3:29 pm

Post by NoGood »

It's already fine, i forgot to upload one file!

thx for the feedback
Traffic Goddess
Registered User
Posts: 47
Joined: Mon Sep 15, 2003 10:55 pm
Location: under your bed
Contact:

Post by Traffic Goddess »

Wow...I've had this MOD in for a few months and I just realized that I had forgotten to upload the .cfg file, too, so don't feel too bad. I think that makes me MORE of an idiot...LOL!

Any chance of ever getting this available in another template? My entire forum loves BlackSoul, so I use that all of the time.

Oh...I also wanted to say that this MOD is one of the best that I've used! So I wanted to thank you for creating it!
If you can't be a good example, be a horrible warning!

http://www.policehub.com/phpbb2
Traffic Goddess
Registered User
Posts: 47
Joined: Mon Sep 15, 2003 10:55 pm
Location: under your bed
Contact:

Post by Traffic Goddess »

Any chance of ever getting this available in another template? My entire forum loves BlackSoul, so I use that all of the time.

Yanno, I decided to play around with this and I have it working in the BlackSoul template, now. It ain't the purtiest thing in the world, but it works and that is all that matters! :D
If you can't be a good example, be a horrible warning!

http://www.policehub.com/phpbb2
chadi
Registered User
Posts: 188
Joined: Fri Apr 25, 2003 3:40 am

megal mail?

Post by chadi »

I don't know why but although Mega Mail was installed correctly each recipient is getting the same copy about 6 times for the same mailing. How do I fix this matter?
evepowr
Registered User
Posts: 85
Joined: Sun Jan 04, 2004 6:54 pm
Contact:

Mod question

Post by evepowr »

So will this mod let me take a bunch of users and allow them access to the private areas of certain forums?
User avatar
beggers
Registered User
Posts: 1257
Joined: Fri Nov 23, 2001 8:19 pm
Location: Las Vegas
Contact:

Post by beggers »

So far this mod seems to be working fine in 2.0.4, in case anyone is interested.
Alex999
Registered User
Posts: 8
Joined: Thu Jan 08, 2004 5:00 pm

Post by Alex999 »

It's probably me just missing something but is this mod v. 2.0.6 compatible :?
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric »

Topic Title wrote: [2.0.6] Admin Userlist


;)
Eric
Post Reply

Return to “[2.0.x] MOD Database Releases”