in which case or regular?VOLKERMORD wrote:in user_weather/user_map.php
Code: Select all
[phpBB Debug] PHP Notice: in file [ROOT]/user_weather/user_map.php on line 59: Undefined variable: user_id_array
in which case or regular?VOLKERMORD wrote:in user_weather/user_map.php
Code: Select all
[phpBB Debug] PHP Notice: in file [ROOT]/user_weather/user_map.php on line 59: Undefined variable: user_id_array
Code: Select all
if ($config['load_onlinetrack'] && sizeof($user_id_array))
Code: Select all
if ($config['load_onlinetrack'] && (isset($user_id_array) && sizeof($user_id_array)))
Code: Select all
if(isset($config['user_map_weather']))
Code: Select all
// The following assigns all _common_ variables that may be used at any point in a template.
$template->assign_vars(array(
Code: Select all
// jQ User Map api3 / 4seven / 2012
if(isset($config['user_map_weather']))
{
$config_user_map_weather = $config['user_map_weather'];
}
else
{
$config_user_map_weather = 1;
}
// jQ User Map api3 / 4seven / 2012
Code: Select all
'S_DISPLAY_ONLINE_LIST' => ($l_online_time) ? 1 : 0,
'S_DISPLAY_SEARCH' => (!$config['load_search']) ? 0 : (isset($auth) ? ($auth->acl_get('u_search') && $auth->acl_getf_global('f_search')) : 1),
'S_DISPLAY_PM' => ($config['allow_privmsg'] && !empty($user->data['is_registered']) && ($auth->acl_get('u_readpm') || $auth->acl_get('u_sendpm'))) ? true : false,
// jQ User Map api3 / 4seven / 2012
if(isset($config['user_map_weather']))
{
$config_user_map_weather = $config['user_map_weather'];
}
else
{
$config_user_map_weather = 1;
}
// jQ User Map api3 / 4seven / 2012
'S_DISPLAY_MEMBERLIST' => (isset($auth)) ? $auth->acl_get('u_viewprofile') : 0,
// jQ User Map api3 / 4seven / 2012
'USER_MAP_IMG' => "{$phpbb_root_path}images/user_map.png",
'U_USER_MAP' => append_sid("{$phpbb_root_path}user_weather/user_map.$phpEx"),
'S_USER_WEATHER_MAP' => ($config_user_map_weather == 1) ? true : false,
// jQ User Map api3 / 4seven / 2012
'S_NEW_PM' => ($s_privmsg_new) ? 1 : 0,
'S_REGISTER_ENABLED' => ($config['require_activation'] != USER_ACTIVATION_DISABLE) ? true : false,
'S_FORUM_ID' => $forum_id,
'S_TOPIC_ID' => $topic_id,
Code: Select all
// The following assigns all _common_ variables that may be used at any point in a template.
$template->assign_vars(array(
find/after-/before-/add/replace with
syntax a bit.