How to manage user accounts in the admin panel?

Any hacks and modifications will be in here...

How to manage user accounts in the admin panel?

Postby Morbo » Wed Sep 19, 2012 1:44 pm

How to change the user registration to be made by the administrator in the Admin Panel > Users
Morbo
Newbie Member
 
Posts: 2
Joined: Wed Sep 19, 2012 1:38 pm

Re: How to manage user accounts in the admin panel?

Postby SamEA » Thu Sep 20, 2012 6:44 pm

You mean only the administrator (Admin) can register users? In other words, disable user registration and only the admin can register users?
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: How to manage user accounts in the admin panel?

Postby Morbo » Thu Sep 20, 2012 6:57 pm

Yes, I mean to implement something like that.

Regards
Morbo
Newbie Member
 
Posts: 2
Joined: Wed Sep 19, 2012 1:38 pm

Re: How to manage user accounts in the admin panel?

Postby SamEA » Wed Sep 26, 2012 5:06 am

Allowing only the Admin to access the user registration page:

Find in ./pages/register.php:
Code: Select all
if(in_array($language, $LANGUAGE_LIST)) {
  include('./lang/'.$language.'.php');
} else {
  include('./lang/'.$LANGUAGE_LIST[0].'.php');
}


Add after:

Code: Select all
if(!$_SESSION['user'] == "admin"){
echo "Sorry only the Admin can register users.";
die();
}
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: How to manage user accounts in the admin panel?

Postby ideal » Sat Feb 07, 2015 10:56 am

Hey Sam, its not working do you think if I give FTP access you can help me out.
adil
ideal
Newbie Member
 
Posts: 1
Joined: Sat Feb 07, 2015 10:54 am

Re: How to manage user accounts in the admin panel?

Postby SamEA » Sat Feb 07, 2015 9:49 pm

What issues are you having in implementing the above? Also, please post the full file with the above modification applied to it and I will investigate further.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm


Return to Hacks and Modifications

Who is online

Users browsing this forum: No registered users and 10 guests

cron