ค้นหา
โค้ด: เลือกทั้งหมด
$preview_message = $message_parser->format_display($post_data['enable_bbcode'], $post_data['enable_urls'], $post_data['enable_smilies'], false);
เพิ่มหลังคำที่ค้นหา
โค้ด: เลือกทั้งหมด
// Begin cBB Follower
if(!empty($follower->active))
{
$follower->display($preview_message);
}
// End cBB Follower
ค้นหา
เพิ่มก่อนคำที่ค้นหา
โค้ด: เลือกทั้งหมด
// Begin cBB Follower
if(!empty($follower))
{
$follower->edit($message_parser->message);
}
// End cBB Follower
เปิดไฟล์ : viewtopic.php
ค้นหา
โค้ด: เลือกทั้งหมด
if (isset($cp_row['row']) && sizeof($cp_row['row']))
เพิ่มก่อนคำที่ค้นหา
โค้ด: เลือกทั้งหมด
// Begin cBB Follower
if(class_exists('follower_hook'))
{
follower_hook::viewtopic($postrow, $poster_id);
}
// End cBB Follower
เปิดไฟล์ : includes/functions_admin.php
ค้นหา
โค้ด: เลือกทั้งหมด
$table_ary = array(POSTS_TABLE, REPORTS_TABLE);
เพิ่มหลังคำที่ค้นหา
โค้ด: เลือกทั้งหมด
// Begin cBB Follower
if(class_exists('follower_hook'))
{
follower_hook::delete_post($table_ary);
}
// End cBB Follower
เปิดไฟล์ : includes/functions_content.php
ค้นหา
โค้ด: เลือกทั้งหมด
$text = str_replace(array("\n", "\r"), array('<br />', "\n"), $text);
เติมหลังคำที่ค้นหา
โค้ด: เลือกทั้งหมด
// Begin cBB Follower
if(class_exists('follower_hook'))
{
follower_hook::bbcode_nl2br($text);
}
// End cBB Follower
ค้นหา
โค้ด: เลือกทั้งหมด
$_profile_cache['base_url'] = append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u={USER_ID}');
เพิ่มหลังคำที่ค้นหา
โค้ด: เลือกทั้งหมด
// Begin cBB Follower
if(class_exists('follower_hook'))
{
follower_hook::get_username_string($_profile_cache);
}
// End cBB Follower
เปิดไฟล์ : includes/functions_posting.php
ค้นหา
โค้ด: เลือกทั้งหมด
$result = $db->sql_query($sql);
$bbcode_bitfield = '';
เพิ่มก่อนคำที่ค้นหา
โค้ด: เลือกทั้งหมด
// Begin cBB Follower
if(class_exists('follower_hook'))
{
$follower_enabled = follower_hook::topic_review($sql);
}
// End cBB Follower
ค้นหา
โค้ด: เลือกทั้งหมด
'U_POST_AUTHOR' => get_username_string('profile', $poster_id, $row['username'], $row['user_colour'], $row['post_username']),
เติมหลังคำที่ค้นหา
โค้ด: เลือกทั้งหมด
// Begin cBB Follower
'MENTION_BUTTON' => (empty($follower_enabled) ? '' : follower_hook::create_button('poster_mention', array(
'FOLLOWNAME' => $row['user_follow_name'],
'TITLE' => $user->lang('MENTION_TITLE', $row['user_follow_name'])
))),
// End cBB Follower