admin userlist problem

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   admin userlist problem
jsterling
CZ Newbie
jsterling has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Sep 08, 2003
0.00 posts per day
Posts: 5
Points: 2,538
   
Great mod..

But when I try and delete a single or multiple users I get this error.

//
// Admin Userlist Start
//
$lang['Userlist'] = 'User list';
$lang['Userlist_description'] = 'View a complete list of your users and perform various actions on them';

$lang['Add_group'] = 'Add to a Group';
$lang['Add_group_explain'] = 'Select which group to add the selected users to';

$lang['Open_close'] = 'Open/Close';
$lang['Active'] = 'Active';
$lang['Group'] = 'Group(s)';
$lang['Rank'] = 'Rank';
$lang['Last_activity'] = 'Last Activity';
$lang['Never'] = 'Never';
$lang['User_manage'] = 'Manage';
$lang['Find_all_posts'] = 'Find All Posts';

$lang['Select_one'] = 'Select One';
$lang['Ban'] = 'Ban';
$lang['Activate_deactivate'] = 'Activate/De-activate';

$lang['User_id'] = 'User id';
$lang['User_level'] = 'User Level';
$lang['Ascending'] = 'Ascending';
$lang['Descending'] = 'Descending';
$lang['Show'] = 'Show';

$lang['Member'] = 'Member';
$lang['Pending'] = 'Pending';

$lang['Confirm_user_ban'] = 'Are you sure you want to ban the selected user(s)?';
$lang['Confirm_user_deleted'] = 'Are you sure you want to detele the selected user(s)?';

$lang['User_status_updated'] = 'User(s) status updated successfully!';
$lang['User_banned_successfully'] = 'User(s) banned successfully!';
$lang['User_deleted_successfully'] = 'User(s) deleted successfully!';

$lang['Click_return_userlist'] = 'Click %shere%s to return to the User List';
//
// Admin Userlist End
//


Any ideas?

Also, all join dates are listed as Dec. 31, 1969


Back to top Reply with quote
#2   re: admin userlist problem
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 42
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.04 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
All this is done in the admin_users.php file.

To fix the users registration date find this:
'JOINED' => create_date('d M Y', $row['user_regdate'], $board_config['board_timezone']),


Replace with this:
'JOINED' => $row['user_regdate'],


If you want the date for last activity to show up like this: Month Day, Year then all you have to do is change 'd M Y' to 'M d, Y'

I also found the rank image would not show up unless it was a special rank. To fix this find:
$rank_image = ( $ranksrow[$ji]['rank_image'] ) ? '<img src="' . $ranksrow[$ji]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';


And replace it with this:
$rank_image = ( $ranksrow[$ji]['rank_image'] ) ? '<img src="../../../' . $ranksrow[$ji]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';


This is for people who have the custom title mod installed and would like the users custom title to be displayed in the admin page of this mod instead of the default on.

Find this twice:
$poster_rank = $ranksrow[$ji]['rank_title'];


And replace it with this twice:
if( $row['user_custom_title'] == ''){
$poster_rank = $ranksrow[$ji]['rank_title'];}
else{
$poster_rank = $row['user_custom_title'];}


I was also able to change this so if you had the email thru the board option enabled in the forum ACP you are able to use that when you click email instead the the "mailto: user" that opens your default email client.

If anyone wants I will post that too.


Back to top Reply with quote
#3   re: admin userlist problem
jsterling
CZ Newbie
jsterling has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Sep 08, 2003
0.00 posts per day
Posts: 5
Points: 2,538
   
Yes, the email hack would be nice....

Also, when you click on a username it brings up a cannot be found page...

The link adds an extra modules/forums that is not needed causing the blank page. I have removed this line from the configuration page a long time ago so thats not the problem. Avatars also have the same problem with the extra modules/Forums and when clicking on the find allposts it gives modules/Forums/admin. Any idea how to fix this? Thanks.



Back to top Reply with quote
#4   re: admin userlist problem
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 42
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.04 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
I forgot I fixed them also. It will probably be easier if I attach the files already changed.

For the email in the admin_userlist.php

Find:
'EMAIL' => $row['user_email'],


Replace with:
'EMAIL' => append_sid('../../../profile.'.$phpEx.'?mode=email&' . POST_USERS_URL .'=' . $row['user_id']),


Open userlist_body.tpl

Find:
<a href="mailto:{user_row.EMAIL}" class="gen">{L_EMAIL}</a><br />


Replace with:
<a href="{user_row.EMAIL}" class="gen">{L_EMAIL}</a><br />


NOTE: The email hack will only work if the admin has enabled the users to send email to each other thru the board.


Attached Files
admin_userlist.zip (7.96 KB, Downloaded: 5235 Time(s))


Back to top Reply with quote
#5   re: admin userlist problem
jsterling
CZ Newbie
jsterling has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Sep 08, 2003
0.00 posts per day
Posts: 5
Points: 2,538
   
and the other problems? COuld you upload your changed files? Thanks.



Back to top Reply with quote
#6   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 42
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.04 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
I did upload the changed files. They are at the bottom of the post above your last. Overwrite you current files with the two I attached. They already include the email change. Only two of the three files change. userlist_group stays the same. I just reread your first post. I don't know about the deleting of users. I haven't tried it.



Back to top Reply with quote
#7   re: admin userlist problem
jsterling
CZ Newbie
jsterling has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Sep 08, 2003
0.00 posts per day
Posts: 5
Points: 2,538
   
Yeah, so the deleting of users is still giving me the error....

There is a version of this same mod available at nukeresources.com that eliminates this problem but I dont know what the changes are. Problem is that all the others are not fixed..... Could you take a look at that version and see if you notice anything... Thanks for all your help so far.


EDIT: Looks like they have fixed the version over at nukeresources and only thing that is not included is the email from the forums part.. Thanks again...



Back to top Reply with quote
#8   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
The fixes where also applied to the original version ported by me. Unfortunalty my power went out before i could upload them. But they have been updated and the mod works fine.

JRusso

Email me the add-on and I will add it into it and give you credit for it.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#9   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 42
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.04 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
Just sent them. So in the version you are going to upload the delete functions work?



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum