Quote: › All files except integration.xml, modx.prosilver.en.xsl and license.txt should be removed or moved to contrib/. Same for most of the dirs.
All new files added by your MOD should be placed in a directory called root/.
Quote: › Regarding easymod, it is recommended these mods be carried out by hand. It is not garaunteed that easymod will be be able to process all of these mods correctly. Because:
1. The integration has not been tested with easymod.
2. The # sign is a valid .css character and it is the comment character for phpBB mod files.
3. Directories named 'local' need to be created in the gallery themes templates directories and files copied there.
4. There are mods to Gallery 2 files that normally reside outside of the phpBB directory.
5. The entire g2image directory needs to be copied to the phpBB3 directory.
If you insist on using easymod, it will be up to you to ensure that all mods are carried out correctly and you do so at your own risk!
There is no easymod for phpBB3.
New permissions should not be added with a sql query, but with a correct call to the function in includes/acp/auth.php.
Code: ›
$referer = (empty($_SERVER['HTTP_REFERER'])) ? "{$phpbb_root_path}index.$phpEx" : $_SERVER['HTTP_REFERER'];
if ($user->data['is_registered'])
{
redirect(append_sid($referer));
}
login_box(request_var('redirect', $referer));
Should use $user->page to prevent XSS.
Instead of adding a new table for config settings I suggest you use phpbb_config. This will cause for less needed querys.
All files containing php should have as extension .php. Also, all included file should have a check for IN_PHPBB.
trigger_error should be used for error handling, not msg_handler();.
coding guidelines stuff: New braces should be always at a newline.
Code: ›
$sql = 'SELECT DISTINCT g.group_name FROM ' . GROUPS_TABLE . ' g, ' . USER_GROUP_TABLE . " ug WHERE ug.user_id = $id AND ug.group_id = g.group_id AND g.group_name NOT IN (" . implode(', ', $phpbbDefaultGroups) . ')';
Should use $db->sql_in_set.
templates/ dir doesnt follow package guidelines.
Please read our package guidelines and code guidelines before you resubmit your MOD.