Gracias, he buscado entre todos los mods que tengo instalados cuales afectan a functions_user y son los siguientes:
ADJUNTO MI ARCHIVO FUNCTION_USER
- Gallery 1.0.5
Código: Seleccionar todo
Open: includes/functions_user.php
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
if ($config['newest_username'] == $old_name)
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Code:Select all
if (!function_exists('gallery_integrate_user_update_name'))
{
global $phpbb_root_path, $phpEx;
include($phpbb_root_path . GALLERY_ROOT_PATH . 'includes/phpbb_integration.' . $phpEx);
}
gallery_integrate_user_update_name($old_name, $new_name);
Código: Seleccionar todo
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
$table_ary = array(USERS_TABLE, USER_GROUP_TABLE, TOPICS_WATCH_TABLE, FORUMS_WATCH_TABLE, ACL_USERS_TABLE, TOPICS_TRACK_TABLE, TOPICS_POSTED_TABLE, FORUMS_TRACK_TABLE, PROFILE_FIELDS_DATA_TABLE, MODERATOR_CACHE_TABLE, DRAFTS_TABLE, BOOKMARKS_TABLE, SESSIONS_KEYS_TABLE);
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
$table_ary = array_merge($table_ary, array(GALLERY_MODSCACHE_TABLE));
Código: Seleccionar todo
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
// Delete auth entries from the groups table
$sql = 'DELETE FROM ' . ACL_GROUPS_TABLE . "
WHERE group_id = $group_id";
$db->sql_query($sql);
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
// Delete the group from the gallery-moderators
$sql = 'DELETE FROM ' . GALLERY_MODSCACHE_TABLE . "
WHERE group_id = $group_id";
$db->sql_query($sql);
Código: Seleccionar todo
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
if (in_array($config['newest_user_id'], $user_id_ary))
{
set_config('newest_user_colour', $sql_ary['user_colour'], true);
}
}
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
if (!function_exists('gallery_integrate_group_set_user_default'))
{
global $phpbb_root_path, $phpEx;
include($phpbb_root_path . GALLERY_ROOT_PATH . 'includes/phpbb_integration.' . $phpEx);
}
gallery_integrate_group_set_user_default($user_id_ary, $sql_ary);
- AUTOGROUPS 1.02
Código: Seleccionar todo
Open: includes/functions_user.php
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
// Setting the log message before we set the group id (if group gets added)
$log = ($group_id) ? 'LOG_GROUP_UPDATED' : 'LOG_GROUP_CREATED';
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Code:Select all
if (!function_exists('auto_group'))
{
global $phpEx;
include($phpbb_root_path . 'includes/functions_autogroup.'.$phpEx);
}
$make_default = false;
$auto_add_users = auto_groups_create($group_id, $group_attributes, $make_default);
// now we have all the information to insert auto users into the table if required
if (isset($auto_add_users) && sizeof($auto_add_users))
{
group_user_add($group_id, $auto_add_users, false, false, $make_default, 0, 0, false, 1);
unset($auto_add_users);
}
// end auto groups mod
<< Hide
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
function group_user_add
In-line Find
Tip: This is a partial match of a line for in-line operations.
Code:Select all
$group_attributes = false
In-line Add after
Code:Select all
, $auto_group = 0
<< Hide
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
'user_pending' => (int) $pending,
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
'auto_group' => (int) $auto_group,
<< Hide
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
function group_user_del
In-line Find
Tip: This is a partial match of a line for in-line operations.
Code:Select all
$group_name = false
In-line Add after
Code:Select all
, $auto_group = 0
<< Hide
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
$sql = 'DELETE FROM ' . USER_GROUP_TABLE . "
WHERE group_id = $group_id
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
AND (auto_group = $auto_group
OR auto_group = 1)
ULTIMATE POINTS 1.0.7
Código: Seleccionar todo
Open: includes/functions_user.php
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
function user_add($user_row, $cp_data = false)
{
global $db, $user, $auth, $config, $phpbb_root_path, $phpEx;
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
// Start Ultimate Points
global $points_config, $points_values;
if ( $config['points_enable'] )
{
$register_points = $points_values['reg_points_bonus'];
}
else
{
$register_points = 0;
}
// End Ultimate Points
<< Hide
Find
Tip: This may be a partial find and not the whole line.
Code:Select all
'user_inactive_reason' => 0,
'user_inactive_time' => 0,
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Code:Select all
'user_points' => $register_points,
Estos son los unicos mods que tengo instalados que utilicen functions_user