Sorry, but that user does not exist.

Makes it possible for admin to create users from admin panel
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Sorry, but that user does not exist.

Postby Rugger on Fri 06. Aug, 2004 19:01

I just added this MOD.

Whenever I try to make a user active or delete a user I get the following message:


Information
Sorry, but that user does not exist.


Can anybody guide me towards a solution?
Rugger
Poster
Poster
 
Posts: 2
Joined: Fri 06. Aug, 2004 00:25

Postby petermakosch on Fri 06. Aug, 2004 19:05

check the code is in the correct places in the php files?
Sorry if my posts read like Comic's :P
petermakosch
Poster
Poster
 
Posts: 18
Joined: Mon 29. Mar, 2004 15:14
Location: UK

Postby Rugger on Fri 06. Aug, 2004 19:07

I loaded this with EasyMOD. Is there a chance that code got placed where it shouldn't have?
Rugger
Poster
Poster
 
Posts: 2
Joined: Fri 06. Aug, 2004 00:25

Postby Neo Soul on Thu 12. Aug, 2004 19:38

I have the same problem, that was happening to me before i added any mods
Neo Soul
Poster
Poster
 
Posts: 1
Joined: Thu 12. Aug, 2004 19:35

Postby dirkling on Tue 24. Aug, 2004 20:20

I'm not sure if it's the same problem for everyone else, but this is what caused the problem on my setup when I used easymod to install.

In the instructions for admin/admin_users.php you'll see:
Code: Select all
#
#-----[ FIND ]------------------------------------------------
#
if ( (
{
$user_id = intval($HTTP_POST_VARS['id']);

#
#-----[ IN-LINE FIND ]------------------------------------------------
#
$user_id = intval($HTTP_POST_VARS['id']);

#
#-----[ IN-LINE REPLACE WITH ]----------------------------------------
#

// Start replacement - Admin add user MOD
$user_id = ($new_user) ? $user_id : intval($HTTP_POST_VARS['id']);
// End replacement - Admin add user MOD


But an in-line replace can only substitute a single line with easymod beta1 (0.1.13) so the last 2 lines are not put in place.

manually add the 2 missing lines.

Code: Select all
#
#-----[ FIND ]------------------------------------------------
# around 152 in already modded file
// Start replacement - Admin add user MOD

#
#-----[ REPLACE ]----------------------------------------
#

// Start replacement - Admin add user MOD
$user_id = ($new_user) ? $user_id : intval($HTTP_POST_VARS['id']);
// End replacement - Admin add user MOD
dirkling
Poster
Poster
 
Posts: 1
Joined: Sat 07. Jun, 2003 09:27

dirkling

Postby Tmod on Thu 26. Aug, 2004 04:01

Thanks for the info it now works great!

Tmod
Tmod
Poster
Poster
 
Posts: 2
Joined: Thu 05. Aug, 2004 02:49

Postby jpb on Thu 26. Aug, 2004 23:10

Yes this fix has worked on my 2.0.10 board.

I think it needs some clarification though.
The changes have not happened properly on about line 152 in admin_users.php.

The area of the original (2.0.6 - 2.0.10) code that should be changed is:
Code: Select all
   //
   // Ok, the profile has been modified and submitted, let's update
   //
   if ( ( $mode == 'save' && isset( $HTTP_POST_VARS['submit'] ) ) || isset( $HTTP_POST_VARS['avatargallery'] ) || isset( $HTTP_POST_VARS['submitavatar'] ) || isset( $HTTP_POST_VARS['cancelavatar'] ) )
   {
      $user_id = intval($HTTP_POST_VARS['id']);

      if (!($this_userdata = get_userdata($user_id)))
      {
         message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] );
      }

Be careful there the "$user_id = intval($HTTP_POST_VARS['id']);" line matches somewhere eles in admin_users.php too!!

The code that "admin_add_users" searches for is:
Code: Select all
if ( (
{
$user_id = intval($HTTP_POST_VARS['id']);


The code after "admin_add_users" has been run through easymod is:

Code: Select all
   if ( ( $mode == 'save' && isset( $HTTP_POST_VARS['submit'] ) ) || isset( $HTTP_POST_VARS['avatargallery'] ) || isset( $HTTP_POST_VARS['submitavatar'] ) || isset( $HTTP_POST_VARS['cancelavatar'] ) )
   {
      // Start replacement - Admin add user MOD
      if (!($this_userdata = get_userdata($user_id)))
      {
         message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] );
      }

Note: A line of code has been replaced by a comment about Admin add user mod

The code should be:
Code: Select all
   if ( ( $mode == 'save' && isset( $HTTP_POST_VARS['submit'] ) ) || isset( $HTTP_POST_VARS['avatargallery'] ) || isset( $HTTP_POST_VARS['submitavatar'] ) || isset( $HTTP_POST_VARS['cancelavatar'] ) )
   {
      // Start replacement - Admin add user MOD
      $user_id = ($new_user) ? $user_id : intval($HTTP_POST_VARS['id']);
      // End replacement - Admin add user MOD      if (!($this_userdata = get_userdata($user_id)))
      {
         message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] );
      }

Note: There is now a comment, a line of code and then another comment.

I hope that is clear for everyone :)

JPB
jpb
Poster
Poster
 
Posts: 5
Joined: Mon 16. Aug, 2004 16:35

Postby hand4all on Fri 04. Feb, 2005 01:13

what happen,when i use the phpbb version 2.0.11 ?
hand4all
Poster
Poster
 
Posts: 1
Joined: Fri 04. Feb, 2005 01:03

Next

Return to Admin add users [2.0.8/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron