Thanks for mod but newbie has some problems?

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 !

Thanks for mod but newbie has some problems?

Postby zoombini on Sun 14. Sep, 2003 13:39

Hello, I have no doubt that you have had this many times before, but I have just stared setting up a phpbb forum and this was the first mod that I am using so that I can add new users easily.

I installed V0.10.0 Beta into 2.06

However I have a few questions.
If you could show the bits of code to find/replace that would be most helpful as I do not know php.


1) How do I make it so that the default profile that it uses is a generic members one rather than my own admin one?
I added a new user and it used my profile and made them an admin!
This I could not find to change.

I can see the section;
// 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');

Is this what needs something changing etc?

2) My "delete user" tick box is still there in users profile, however the section to the right with the text on etc has now gone blank?
What could have done this and how should I fix it?

Thankyou, Zoombini
zoombini
Poster
Poster
 
Posts: 32
Joined: Sun 14. Sep, 2003 13:25

Postby MoonWalker on Mon 15. Sep, 2003 01:38

Code: Select all
define('DEFAULT_USER_ID', 2);

mean User id 2 will be used as a 'template' for the new user, so if that's an admin account, yes new user will be admin :-) so create an account the usual way and lookup the user id in db and change accordingly.

However, I noticed an other issue with this hack, it not only used user 2 as template but also replaced the account with the new user! Not sure what cause this but possibly because there is an annonymous account (-1) setup on install of 2.0.6 screwing up the counter or something?

Someone have this problem?
MoonWalker
Poster
Poster
 
Posts: 5
Joined: Mon 15. Sep, 2003 01:23

Postby zoombini on Mon 15. Sep, 2003 20:09

Ah, so if I change the "2" to be the number of another member (a dummy one created just for testing) then it should work..

Funny thing is, I'm the first member so shouldnt i have user number 1?

Any ideas on the non displaying problem?

Thanks, Zoombini
zoombini
Poster
Poster
 
Posts: 32
Joined: Sun 14. Sep, 2003 13:25

Postby Dj_Ranjha on Sat 15. Nov, 2003 20:21

hey zoombini i have the same problem..
i installed the mod and removed teh register link from the links so that only i can register.. but when i register a new user it registers it with the same profile as me...so thats a admin too..

i will try to fix that by the method u explained

my question is

in the admin CP when u create a new account.. can u have an option like.. add user to a group..??
so that u have the option of adding the user to a group while registering teh new account..?.. i really need this.. :)
Dj_Ranjha
Poster
Poster
 
Posts: 2
Joined: Sat 15. Nov, 2003 20:01

Postby Dj_Ranjha on Sat 15. Nov, 2003 20:27

plus i have another problem

when i register a new user and try to login with that account it says:
You have specified an incorrect or inactive username, or an invalid password.

so i have to goto adminCP again and set a new password .. when i come back it works is this a bug..?
Dj_Ranjha
Poster
Poster
 
Posts: 2
Joined: Sat 15. Nov, 2003 20:01


Return to Admin add users [2.0.8/EM]

Who is online

Users browsing this forum: No registered users and 0 guests

cron