Admin Tool Kit

Tools by the phpBBModders team and Community contributed tools.
Forum rules
Only post tools related to modding in here, simple.
Post Reply
User avatar
EXreaction
New member
New member
Posts: 11
Joined: 19 Jul 2008, 16:33
Real name: Nathan
Contact:

Admin Tool Kit

Post by EXreaction »

igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Admin Tool Kit

Post by igorw »

Very interesting, i still need to test this! :)

Some things i encountered when peeking into the files.

index.php
Use $phpEx:

Code: Select all

if (substr($file, -(strlen($phpEx) + 1)) != '.' . $phpEx || $file == 'tutorial.php')

Use semantic variable names:

Code: Select all

$t = '';


root/atk/tools/fix_modules.php
I don't like how this is just in the file like that:

Code: Select all

if (!defined('IN_PHPBB'))
{
   exit;
}

// Add the required language file
$user->add_lang('atk/tools/fix_modules');

class fix_modules


root/atk/tools/make_founder.php
utf_normalize_nfc()?

Code: Select all

$user_req = request_var('user_to_founder', '', true);



I really like the idea of this and the way it's structured. I may even contribute something myself, for example something like "merge users". :D Nice work nathan, keep it up!
User avatar
EXreaction
New member
New member
Posts: 11
Joined: 19 Jul 2008, 16:33
Real name: Nathan
Contact:

Re: Admin Tool Kit

Post by EXreaction »

I fixed all but the language addition.

That is just the best place for it unless I were to have it automatically load all language files in atk/tools/ (which I may do, I am not sure yet). Otherwise it has to be repeated in the 3 functions (and can possibly be called twice).

What would be great is to have a Developer tool for auto creating install instructions or something. You could get the path to the unedited files by having an input box for the relative url. :)

Perhaps a tool to run SQL queries as well.
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Admin Tool Kit

Post by igorw »

Okay, i've tested it, and i't a nice tool.

merge_groups gives me a notice. reparse_bbcodes gives me "BBCODE_REPARSE_CONFIRM".
User avatar
EXreaction
New member
New member
Posts: 11
Joined: 19 Jul 2008, 16:33
Real name: Nathan
Contact:

Re: Admin Tool Kit

Post by EXreaction »

Yep, the reparse bbcode needs to be looked over. It's on my to-do list once I get some time.

I am not sure about the merge groups, I haven't really looked at it. Could you bring it up in the topic at phpbb.com?
Erik Frèrejean
New member
New member
Posts: 2
Joined: 06 Jun 2008, 14:54
Real name: Erik
Location: USERS_TABLE
Contact:

Re: Admin Tool Kit

Post by Erik Frèrejean »

I've just fixed the problem in the merge group tool.
aminetm
New member
New member
Posts: 1
Joined: 08 May 2009, 08:56

Re: Admin Tool Kit

Post by aminetm »

that's very good
Post Reply