Open: includes/functions_posting.php
คำค้นหา
โค้ด: เลือกทั้งหมด
$update_sql[$forum_id][] = "forum_last_poster_colour = ''";
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$update_sql[$forum_id][] = "forum_last_poster_avatar = ''";
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
เพิ่มก่อนคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
}
$db->sql_freeresult($result);
}
unset($empty_forums, $ids, $last_post_ids);
เพิ่มก่อนคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$avatar_info = serialize(array(
'avatar' => $row['user_avatar'],
'type' => (int) $row['user_avatar_type'],
'width' => (int) $row['user_avatar_width'],
'height' => (int) $row['user_avatar_height'],
));
$update_sql[$row["{$type}_id"]][] = "{$type}_last_poster_avatar = '" . $db->sql_escape($avatar_info) . "'";
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
เพิ่มก่อนคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
// Decrementing topic_replies here is fine because this case only happens if there is more than one post within the topic - basically removing one "reply"
เพิ่มก่อนคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$avatar_info = serialize(array(
'avatar' => $row['user_avatar'],
'type' => (int) $row['user_avatar_type'],
'width' => (int) $row['user_avatar_width'],
'height' => (int) $row['user_avatar_height'],
));
$sql_data[TOPICS_TABLE] .= ', topic_first_poster_avatar = \'' . $db->sql_escape($avatar_info) . '\'';
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
if (isset($poll['poll_options']) && !empty($poll['poll_options']))
เพิ่มก่อนคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$sql_data[TOPICS_TABLE]['sql'] += array(
'topic_first_poster_avatar' => serialize(array(
'avatar' => $user->data['user_avatar'],
'type' => $user->data['user_avatar_type'],
'width' => $user->data['user_avatar_width'],
'height' => $user->data['user_avatar_height'],
)),
'topic_last_poster_avatar' => '',
);
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
}
unset($sql_data[POSTS_TABLE]['sql']);
}
$make_global = false;
เพิ่มก่อนคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$sql_data[TOPICS_TABLE]['sql']['topic_last_poster_avatar'] = serialize(array(
'avatar' => $user->data['user_avatar'],
'type' => $user->data['user_avatar_type'],
'width' => $user->data['user_avatar_width'],
'height' => $user->data['user_avatar_height'],
));
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_colour = '" . $db->sql_escape($user->data['user_colour']) . "'";
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$avatar_info = serialize(array(
'avatar' => $user->data['user_avatar'],
'type' => (int) $user->data['user_avatar_type'],
'width' => (int) $user->data['user_avatar_width'],
'height' => (int) $user->data['user_avatar_height'],
));
$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_avatar = '" . $db->sql_escape($avatar_info) . "'";
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
// salvation, a post is found! jam it into the forums table
เพิ่มก่อนคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_colour = '" . $db->sql_escape($row['user_colour']) . "'";
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$avatar_info = serialize(array(
'avatar' => $row['user_avatar'],
'type' => (int) $row['user_avatar_type'],
'width' => (int) $row['user_avatar_width'],
'height' => (int) $row['user_avatar_height'],
));
$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_avatar = '" . $db->sql_escape($avatar_info) . "'";
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_colour = ''";
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_avatar = ''";
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
// salvation, a post is found! jam it into the forums table
เพิ่มก่อนคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_colour = '" . $db->sql_escape($row['user_colour']) . "'";
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$avatar_info = serialize(array(
'avatar' => $row['user_avatar'],
'type' => (int) $row['user_avatar_type'],
'width' => (int) $row['user_avatar_width'],
'height' => (int) $row['user_avatar_height'],
));
$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_avatar = '" . $db->sql_escape($avatar_info) . "'";
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_colour = ''";
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_avatar = ''";
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
// salvation, a post is found! jam it into the forums table
เพิ่มก่อนคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_colour = '" . $db->sql_escape($row['user_colour']) . "'";
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$avatar_info = serialize(array(
'avatar' => $row['user_avatar'],
'type' => (int) $row['user_avatar_type'],
'width' => (int) $row['user_avatar_width'],
'height' => (int) $row['user_avatar_height'],
));
$sql_data[FORUMS_TABLE]['stat'][] = "forum_last_poster_avatar = '" . $db->sql_escape($avatar_info) . "'";
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
$sql_data[TOPICS_TABLE]['stat'][] = 'topic_last_post_time = ' . (int) $current_time;
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$avatar_info = serialize(array(
'avatar' => $user->data['user_avatar'],
'type' => (int) $user->data['user_avatar_type'],
'width' => (int) $user->data['user_avatar_width'],
'height' => (int) $user->data['user_avatar_height'],
));
$sql_data[TOPICS_TABLE]['stat'][] = "topic_last_poster_avatar = '" . $db->sql_escape($avatar_info) . "'";
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
// salvation, a post is found! jam it into the topics table
เพิ่มก่อนคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$sql = str_replace('SELECT ', 'SELECT u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height, ', $sql);
//-- fin mod : apiv ------------------------------------------------------------
คำค้นหา
โค้ด: เลือกทั้งหมด
$sql_data[TOPICS_TABLE]['stat'][] = "topic_last_poster_colour = '" . $db->sql_escape($row['user_colour']) . "'";
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
//-- mod : apiv ----------------------------------------------------------------
//-- add
$avatar_info = serialize(array(
'avatar' => $row['user_avatar'],
'type' => (int) $row['user_avatar_type'],
'width' => (int) $row['user_avatar_width'],
'height' => (int) $row['user_avatar_height'],
));
$sql_data[TOPICS_TABLE]['stat'][] = "topic_last_poster_avatar = '" . $db->sql_escape($avatar_info) . "'";
//-- fin mod : apiv ------------------------------------------------------------