예제 #1
0
function get_wpu_newposts_link()
{
    global $wpuAbs, $phpEx, $scriptPath;
    if ($wpuAbs->user_logged_in()) {
        return '<a href="' . append_sid($scriptPath . 'search.' . $phpEx . '?search_id=newposts') . '"><strong>' . get_wpu_newposts() . "</strong>&nbsp;" . $wpuAbs->lang('Search_new') . "</a>";
    }
}
예제 #2
0
/**
 * Returns the link to phpBB posts since the user's last visit without displaying it
 * @param string args
 * @author John Wells
 */
function get_wpu_newposts_link()
{
    global $phpbbForum, $phpEx;
    if ($phpbbForum->user_logged_in()) {
        return '<a href="' . $phpbbForum->append_sid($phpbbForum->get_board_url() . 'search.' . $phpEx . '?search_id=newposts') . '"><strong>' . get_wpu_newposts() . "</strong>&nbsp;" . __('posts since last visit', 'wp-united') . "</a>";
    }
}