Admin Tool Kit

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

Admin Tool Kit

Postby EXreaction » 03 Aug 2008, 02:39


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

Re: Admin Tool Kit

Postby igorw » 05 Aug 2008, 23:12

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

Re: Admin Tool Kit

Postby EXreaction » 05 Aug 2008, 23:36

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.

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

Re: Admin Tool Kit

Postby igorw » 17 Aug 2008, 16:01

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

Re: Admin Tool Kit

Postby EXreaction » 17 Aug 2008, 17:07

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

Re: Admin Tool Kit

Postby Erik Frèrejean » 18 Aug 2008, 05:33

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

Postby aminetm » 08 May 2009, 08:59

that's very good


Return to “Tools for MOD authors”

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests