Hey,
i installed the mod a few weeks ago,
but have to change the 4images code to integrate a board.
The Problem is here,
that the code, given on the first site, is not really compatible with 4images,
if you change standard values in session.php & constants.php.
So it would be nice, if a mod could change the code on the frist site,
to make it really 4images compatible.
although i know this would related to only a few members.
This Code:
//-----------------------------------------------------
//--- Last active User --------------------------------
//-----------------------------------------------------
$last_action_user_list = "";
$sql = "SELECT user_name, user_id, user_lastaction FROM ".USERS_TABLE."
WHERE user_level >= '".GUEST."'
ORDER BY user_lastaction DESC
LIMIT 5";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$last_action_user_list .= "<a href =\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$row['user_id'])."\"><b>".$row['user_name']."</b></a><br ><span class=\"smalltext\">".format_date($config['date_format']." ".$config['time_format'], $row['user_lastaction'])."</span><br >";
}
$user_last_action_box = $site_template->parse_template("user_last_action_box");
$site_template->register_vars(array(
"user_last_action_box" => $user_last_action_box,
"lang_user_last_action" => $lang['lang_user_last_action'],
"user_last_action_list" => $last_action_user_list
));
unset($user_last_action_box);
unset($last_action_user_list);
should be like this:
//-----------------------------------------------------
//--- Last active User --------------------------------
//-----------------------------------------------------
$last_action_user_list = "";
$sql = "SELECT ".get_user_table_field("", "user_name").", ".get_user_table_field("", "user_id").", ".get_user_table_field("", "user_lastaction")." FROM ".USERS_TABLE."
WHERE ".get_user_table_field("", "user_level")."l >= '".GUEST."'
ORDER BY ".get_user_table_field("", "user_lastaction")." DESC
LIMIT 5";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$last_action_user_list .= "<a href =\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$row[$user_table_fields['user_id']])."\"><b>".$row[$user_table_fields['user_name']]."</b></a> (<span class=\"smalltext\">".format_date($config['date_format']." ".$config['time_format'], $row[$user_table_fields['user_lastaction']])."</span>), ";
}
$user_last_action_box = $site_template->parse_template("user_last_action_box");
$site_template->register_vars(array(
"user_last_action_box" => $user_last_action_box,
"lang_user_last_action" => $lang['lang_user_last_action'],
"user_last_action_list" => $last_action_user_list
));
unset($user_last_action_box);
unset($last_action_user_list);
as you see i changed only the code to get the right get_user_table_fields, which declared in the config files,
if you dont use the standard config.
thanks