[MODDB] ACP Add User MOD 1.0.0

Modules for the Admin Control Panel
Forum rules
Image Please feel free to download any MOD's here, support for each MOD is located it's own thread.

To post your own MOD, please first read the MOD Guidelines

How do you like this MOD?

I Loved It! (5 stars)
47
78%
I Really Liked It! (4 stars)
9
15%
I Liked It (3 stars)
2
3%
I Didn't Like It (2 stars)
0
No votes
I Hated It (1 star)
2
3%
 
Total votes : 60

[MODDB] ACP Add User MOD 1.0.0

Postby Highway of Life » 03 Mar 2007, 02:31

Classification: Add-on
phpBB Part: ACP

MOD Name: ACP Add User
MOD Version: 1.0.0
Author: Highway of Life
MOD Description: An Administrator with proper permissions can create a new user account through the ACP.
Notes:

Works with:
  • phpBB 3.0 RC1
  • phpBB 3.0 RC5

Features:
  • Auto Installation: MOD Auto-installs and updates itself, no need for manual SQL queries! (note: does not automatically download an update)
  • Easy Installation: One file to edit, copy 4 files.
  • Support for multiple forms of user activation depending on board settings.
  • Allows Admins to create users and set user registration to (off) effectively creating a private board.
  • Support for specific add_user permission for those who want to keep adding users seperate from user administration.
  • Support for all *required* profile fields and profile fields set to be shown on registration
  • Support for language and birthday settings
  • Auto generates a password and emails it to the user.
  • If set to user activate, MOD will send the user an activation email containing his username and password as well as the activation key required to activate the account.

Support:
STG Support Topic
phpBB.com Support Topic
phpBBModders Support Topic

Notes: Full support is offered here, phpBBModders.net and on the phpBB.com
Responses will be faster on STG

Language: en-GB [British English]

Licence: GNU General Public License v2

Installation Level: Easy
Installation Time: ~3 Minutes
Format:
Image

Screenshot:
acp_add_user_B3.jpg
ACP Add User Module Screenshot


Download File:
acp_add_user_mod.zip
ACP Add User MOD 1.0.0
(37 KiB) Downloaded 1457 times


Beta3 Old Copy:
ACP_add_user_1.0.B3.zip
ACP Add User MOD 1.0.B3
(18.34 KiB) Downloaded 1570 times
Last edited by Highway of Life on 30 Sep 2007, 09:04, edited 4 times in total.
Reason: Beta 3 released
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [Add-on] ACP Add User MOD 1.0.0

Postby Highway of Life » 03 Mar 2007, 17:46

Roadmap:

Yet to be determined versions will have the following features
Although these are features that can/will be accessible via one page user account creation, it is currently possible to go to the manage users after creating a user with one click. Therefore there is currently no timeframe for adding these features to the MOD.
  • Checkbox controlling account activation. =-> User, Instant, Admin
  • Drop down menu for additional groups user can be added to...
  • All custom groups, Global Moderators, and Administrators
  • Multiple groups can be selected
  • Ability to select a default group other than Registered Users from this page
  • One click to upload Avatar
  • Set Special Rank option

If you have any other feature requests, please post them in this topic, and I will add them to the list.
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Add-on] ACP Add User MOD 1.0.0

Postby LiamMac » 03 Mar 2007, 23:03

When it says MODX, how do I use it? Is it kinda like EasyMOD for 2.0.x to automatically install the MOD? I have always installed traditionally but auto sounds much easier.
Star Trek Guide Forums Moderation Team
Image
phpBB3 MODs and Styles Development - Olympus MOD Database - phpBB / PHP programming Academy and Discussion Forum
User avatar
LiamMac    
Supporter
Supporter
 
Posts: 535
Joined: 12 Sep 2006, 00:10
Location: The Land of Aoteroa or New Zealand
Gender: Male
phpBB Knowledge: 4

Re: [Add-on] ACP Add User MOD 1.0.0

Postby LiamMac » 03 Mar 2007, 23:22

Ok I got this Error when I added
Code: Select all
include('add_user.' . $phpEx);
to language>en>acp>common.php
Code: Select all
[phpBB Debug] PHP Notice: in file /language/en/acp/common.php on line 707: main(add_user.php): failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /language/en/acp/common.php on line 707: main(): Failed opening 'add_user.php' for inclusion (include_path='.:/usr/local/php4/share/pear')
[phpBB Debug] PHP Notice: in file /adm/index.php on line 156: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3264)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 158: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3264)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 159: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3264)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 160: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3264)
Star Trek Guide Forums Moderation Team
Image
phpBB3 MODs and Styles Development - Olympus MOD Database - phpBB / PHP programming Academy and Discussion Forum
User avatar
LiamMac    
Supporter
Supporter
 
Posts: 535
Joined: 12 Sep 2006, 00:10
Location: The Land of Aoteroa or New Zealand
Gender: Male
phpBB Knowledge: 4

Re: [Add-on] ACP Add User MOD 1.0.0

Postby eviL3 » 04 Mar 2007, 03:38

What the Java.NullPointerException? That would not work, as the path is relative to the script being executed, not the included one. But why not use $user->add_lang() anyway? Blink

EDIT: There's some wierd mac files in the archive, and you have no license.txt in the zip root Wink

EDIT2: Some characters look really messed up... wrong encoding or something?
Code: Select all
   'LOG_USER_ADDED'      => '<strong>New User Added</strong><br />» %s',
   'ADMIN_ACTIVATE'      => 'Activate account',
   'CONTINUE_EDIT_USER'   => '%1$sClick here to the Manage %2$sâ??s profile%3$s',
Image
User avatar
eviL3    
MOD Author
MOD Author
 
Posts: 1002
Joined: 05 Nov 2006, 08:14
Location: Cooking in the MODs kitchen
Gender: Male

Re: [Add-on] ACP Add User MOD 1.0.0

Postby Handyman » 04 Mar 2007, 13:01

This:
Code: Select all
include('add_user.' $phpEx);

should be:
Code: Select all
include($phpbb_root_path 'language/en/acp/add_user.' $phpEx);

or better yet, use an add_lang like evil3 suggested.
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7454
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [Add-on] ACP Add User MOD 1.0.0

Postby eviL3 » 04 Mar 2007, 13:36

Handyman, i smell a remote file inclusion vurnablility (for those with register_globals enabled). Those are imo the most dangerous!
Image
User avatar
eviL3    
MOD Author
MOD Author
 
Posts: 1002
Joined: 05 Nov 2006, 08:14
Location: Cooking in the MODs kitchen
Gender: Male

Re: [Add-on] ACP Add User MOD 1.0.0

Postby Highway of Life » 04 Mar 2007, 13:45

Liam, it looks like you don't have add_user.php uploaded to the /language/en/acp/ directory. Double check to make sure it?s uploaded, and clear your forum cache.

Igor, you can?t use $user->add_lang() in this case because the language is needed for several Admin pages...
Modules, Main, and Logs. So it needs to be included with the common, otherwise, it would need to be added to multiple admin pages.
Realistically, I could add the variables to the common.php, but I?m trying to keep as much code out of core as possible, so I used an includes here... I did test it, so I know it works.

#2: What kind of mac files do you speak of?
I used the .DS_Store cleaner... but I?m not aware of any others... Confused

#3 Never needed a license file, the license information is included on each of the files used.
Would there be a reason I need it? Confused

#4 That?s odd... shows up fine for me, double checking the encoding...

?

Okay, just double checked... it is UTF-8... both my editors display it correctly...
What editor did you open that file in?
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Add-on] ACP Add User MOD 1.0.0

Postby Handyman » 04 Mar 2007, 13:55

Ok, I just tested it.
Code: Select all
include('add_user.' $phpEx);

does work perfectly? as long as you have the add_user.php in the right place.
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7454
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [Add-on] ACP Add User MOD 1.0.0

Postby eviL3 » 04 Mar 2007, 14:49

#1: Okay, i didn't test the include personally, just couldn't imagine it working, but maybe you can explain that to me (i thought it was relative to the file being called, not to the included file?).
But i still don't like having an uninitialized variable in a lang file without IN_PHPBB check (even though $phpEx is much less critical than $phpbb_root_path). IMO the most logical place to put it would be adm/index.php, but that's just a suggestion. Right after:
Code: Select all
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('acp/common');
// End session management


#2: There's 2 folders in the zip root: "ACP Add User 1.0.0" and "__MACOSX", wich includes a folder named "ACP Add User 1.0.0". In there there are the same files like in the correct folder, but the file names are prefixed with "._", for example "._install.xml". Very strange. I'm on windows, using WinRAR.

#3: Because the MOD team requires it. Tongue

#4: Opened the file using WinRAR's file viewer, now i checked in ZDE (Zend Development Enviroment), wich doesn't seem to like it. It displayed correctly in PSPad and in Dreamweaver though. Also in notepad, but it didn't like the \n's ROTFL

Update: I just had to open it in UTF-8 compatibility mode in ZDE, and now it's working. It didn't recognize it automatically... glad i found that Good
Image
User avatar
eviL3    
MOD Author
MOD Author
 
Posts: 1002
Joined: 05 Nov 2006, 08:14
Location: Cooking in the MODs kitchen
Gender: Male

Next

Return to ACP

Who is online

Users browsing this forum: No registered users and 0 guests