DEFAULT_USER_ID not set correctly? [SOLVED]

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 !

DEFAULT_USER_ID not set correctly? [SOLVED]

Postby mcboots on Fri 11. Jun, 2004 05:01

The DEFAULT_USER_ID are not set correctly, please correct this in admin/admin_users.php


I used your hack and got this error message when I tried to register a new member... if I tried to add a name thats already taken it tells so - so that part works... heres the code for that page
<?php
/***************************************************************************
* admin_users.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: admin_users.php,v 1.57.2.25 2003/06/20 07:40:27 acydburn Exp $
*
*
***************************************************************************/

/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/

define('IN_PHPBB', 1);
// Start add - Admin add user MOD
// define a "dummy user", the profile settings of this user, will be used as default settings for new users
define('DEFAULT_USER_ID', 2);
define('DEFAULT_PASSWD', '123456');
// End add - Admin add user MOD
if( !empty($setmodules) )
{
$filename = basename(__FILE__);
$module['Users']['Manage'] = $filename;

return;
}
[/b]
Last edited by mcboots on Mon 14. Jun, 2004 11:49, edited 2 times in total.
mcboots
Poster
Poster
 
Posts: 4
Joined: Fri 11. Jun, 2004 04:53

Postby mcboots on Mon 14. Jun, 2004 11:42

The MOD told me to add this code but the highlighted part is suppose to be changed to a profile number of a current user that you want to be used as a starting point...
// Start add - Admin add user MOD
// define a "dummy user", the profile settings of this user, will be used as default settings for new users
define('DEFAULT_USER_ID', 2);
define('DEFAULT_PASSWD', '123456');
// End add - Admin add user MOD


I was told by some very helpful people on here that this 'DEFAULT_USER_ID' can be found by login to your forums and click on member you want to use as a template. Look at the number at the end of the http:// address on their PROFILE page
http://www.yoursite.com/forumname/profile.php?mode=viewprofile&u=3
mcboots
Poster
Poster
 
Posts: 4
Joined: Fri 11. Jun, 2004 04:53


Return to Admin add users [2.0.8/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron