Ejemplo n.º 1
0
                 $goto_page .= ', ';
             }
         }
         $times++;
     }
     $goto_page .= ' ] ';
 } else {
     $goto_page = '';
 }
 $view_topic_url = append_sid("viewtopic.{$phpEx}?" . POST_TOPIC_URL . "={$topic_id}");
 $topic_author_color = $rcs->get_colors($topic_rowset[$i]);
 $topic_author = $topic_rowset[$i]['user_id'] != ANONYMOUS ? '<a href="' . $get->url('userlist', array('mode' => 'viewprofile', POST_USERS_URL => $topic_rowset[$i]['user_id']), true) . '"' . $topic_author_color . '>' : '';
 $topic_author .= $topic_rowset[$i]['user_id'] != ANONYMOUS ? $topic_rowset[$i]['username'] : ($topic_rowset[$i]['post_username'] != '' ? $topic_rowset[$i]['post_username'] : $lang['Guest']);
 $topic_author .= $topic_rowset[$i]['user_id'] != ANONYMOUS ? '</a>' : '';
 $first_post_time = create_date2($board_config['default_dateformat'], $topic_rowset[$i]['topic_time'], $board_config['board_timezone']);
 $last_post_time = create_date2($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']);
 $last_post_author_color = $rcs->get_colors($topic_rowset[$i], '', false, 'group_id2', 'color2', 'level2');
 $last_post_author = $topic_rowset[$i]['id2'] == ANONYMOUS ? $topic_rowset[$i]['post_username2'] != '' ? $topic_rowset[$i]['post_username2'] : $lang['Guest'] : '<a href="' . $get->url('userlist', array('mode' => 'viewprofile', POST_USERS_URL => $topic_rowset[$i]['id2']), true) . '"' . $last_post_author_color . '>' . $topic_rowset[$i]['user2'] . '</a>';
 $last_post_url = '<a href="' . append_sid("viewtopic.{$phpEx}?" . POST_POST_URL . '=' . $topic_rowset[$i]['topic_last_post_id']) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>';
 $views = $topic_rowset[$i]['topic_views'];
 $row_color = !($i % 2) ? $theme['td_color1'] : $theme['td_color2'];
 $row_class = !($i % 2) ? $theme['td_class1'] : $theme['td_class2'];
 $topic_mod = '';
 if ($is_auth['auth_mod']) {
     $topic_mod .= '<div style="float:right; margin-right: 10px; display: inline-block;">';
     $topic_mod .= '<span class="topicmod" id="tmod_' . $topic_id . '">';
     $topic_mod .= "<a href=\"modcp.{$phpEx}?" . POST_TOPIC_URL . "={$topic_id}&amp;mode=delete&amp;sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_delete'] . '" alt="' . $lang['Delete_topic'] . '" title="' . $lang['Delete_topic'] . '" border="0" /></a>&nbsp;';
     $topic_mod .= "<a href=\"modcp.{$phpEx}?" . POST_TOPIC_URL . "={$topic_id}&amp;mode=move&amp;sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_move'] . '" alt="' . $lang['Move_topic'] . '" title="' . $lang['Move_topic'] . '" border="0" /></a>&nbsp;';
     $topic_mod .= $topic_rowset[$i]['topic_status'] == TOPIC_UNLOCKED ? "<a href=\"modcp.{$phpEx}?" . POST_TOPIC_URL . "={$topic_id}&amp;mode=lock&amp;sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_lock'] . '" alt="' . $lang['Lock_topic'] . '" title="' . $lang['Lock_topic'] . '" border="0" /></a>&nbsp;' : "<a href=\"modcp.{$phpEx}?" . POST_TOPIC_URL . "={$topic_id}&amp;mode=unlock&amp;sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_unlock'] . '" alt="' . $lang['Unlock_topic'] . '" title="' . $lang['Unlock_topic'] . '" border="0" /></a>&nbsp;';
     $topic_mod .= "<a href=\"modcp.{$phpEx}?" . POST_TOPIC_URL . "={$topic_id}&amp;mode=split&amp;sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_split'] . '" alt="' . $lang['Split_topic'] . '" title="' . $lang['Split_topic'] . '" border="0" /></a>&nbsp;';
     $topic_mod .= '</span>';
Ejemplo n.º 2
0
 if ($_sf_is_sub && $_sf_first_sub) {
     $template->assign_block_vars('catrow.forumrow.sub', array());
 }
 //balance parens
 //-- mod: sf - end
 $posts = $forum_data[$j]['forum_posts'];
 $topics = $forum_data[$j]['forum_topics'];
 $icon = $forum_data[$j]['forum_icon'];
 // Forum Icon Mod
 if ($forum_data[$j]['forum_last_post_id']) {
     $topic_title = $forum_data[$j]['topic_title'];
     // V: QTE -- addon Last topic on index
     $qte->attr($topic_title, $forum_data[$j]['topic_attribute']);
     $forum_data[$j]['topic_title_normal'] = $topic_title;
     $last_post = '<a href="' . append_sid("viewtopic.{$phpEx}?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a> ';
     $last_post_time = create_date2($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
     $last_post .= '<span class="date-general">' . $last_post_time . '</span><br /><b>' . $lang['TY-in'] . '</b>';
     // Trim the topic title to the configured amount from within the ACP
     // www.phpBB-SEO.com SEO TOOLKIT BEGIN
     $seo_topic_name = $topic_title;
     // www.phpBB-SEO.com SEO TOOLKIT END
     // V: use forum_data's topic_title rather than $topic_title since we don't want HTML in there
     $last_post .= '<a href="' . append_sid("viewtopic.{$phpEx}?" . POST_TOPIC_URL . '=' . $forum_data[$j]['topic_id']) . '" title="' . $lang['Go_to_topic'] . $forum_data[$j]['topic_title'] . '">';
     if (strlen($forum_data[$j]['topic_title']) > $board_config['ty_lastpost_cutoff']) {
         $last_post .= substr($topic_title, 0, $board_config['ty_lastpost_cutoff']) . $board_config['ty_lastpost_append'];
     } else {
         $last_post .= $topic_title;
     }
     $last_post .= '</a><br /><b>' . $lang['TY-by'] . '</b>';
     $style_color = $rcs->get_colors($forum_data[$j]);
     if (!isset($phpbb_seo->seo_url['user'][$forum_data[$j]['user_id']])) {
Ejemplo n.º 3
0
 //-- topics nav buttons
 $num_row++;
 $nav_buttons = empty($i) ? '<a href="' . append_sid('viewtopic.' . $phpEx . '?' . POST_TOPIC_URL . '=' . $topic_id . '&amp;view=previous') . '"><img alt="" src="' . $images['nav_prev'] . '" title="' . $lang['View_previous_topic'] . '" border="0" /></a>' : '';
 $nav_buttons .= $i == $total_posts - 1 && $total_posts != 1 ? '<a href="#top"><img alt="" src="' . $images['nav_top'] . '" title="' . $lang['Back_to_top'] . '" border="0" /></a>' : '';
 $nav_buttons .= !empty($i) ? '<a href="#' . ($num_row - 1) . '"><img alt="" src="' . $images['nav_prev_post'] . '" title="' . $lang['View_previous_post'] . '" border="0" /></a>' : '';
 $nav_buttons .= $i != $total_posts - 1 ? '<a href="#' . ($num_row + 1) . '"><img alt="" src="' . $images['nav_next_post'] . '" title="' . $lang['View_next_post'] . '" border="0" /></a>' : '';
 $nav_buttons .= empty($i) ? '<a href="#bot"><img alt="" src="' . $images['nav_bot'] . '" title="' . $lang['Go_to_bottom'] . '" border="0" /></a>' : '';
 $nav_buttons .= empty($i) ? '<a href="' . append_sid('viewtopic.' . $phpEx . '?' . POST_TOPIC_URL . '=' . $topic_id . '&amp;view=next') . '"><img alt="" src="' . $images['nav_next'] . '" title="' . $lang['View_next_topic'] . '" border="0" /></a>' : '';
 $poster_id = $postrow[$i]['user_id'];
 $poster = $poster_id == ANONYMOUS ? $lang['Guest'] : $postrow[$i]['username'];
 //-- mod : flags ---------------------------------------------------------------
 $poster_flag = $postrow[$i]['user_id'] != ANONYMOUS ? $postrow[$i]['user_flag'] : '';
 //-- mod : birthday ------------------------------------------------------------
 $poster_birthday = $postrow[$i]['user_id'] != ANONYMOUS ? $postrow[$i]['user_birthday'] : '';
 $poster_zodiac = $postrow[$i]['user_id'] != ANONYMOUS ? $postrow[$i]['user_zodiac'] : '';
 $post_date = create_date2($board_config['default_dateformat'], $postrow[$i]['post_created'], $board_config['board_timezone']);
 // DEBUT MOD Postographie d'un membre depuis viewtopic
 // $poster_posts = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Posts'] . ': ' . $postrow[$i]['user_posts'] : '';
 $poster_posts = $postrow[$i]['user_id'] != ANONYMOUS ? $lang['Posts'] . ' : <a href="' . append_sid("search.{$phpEx}?user_id" . "=" . $poster_id) . '" title="' . sprintf($lang['Search_user_posts'], $poster) . '" class="gensmall">' . $postrow[$i]['user_posts'] . '</a>' : '';
 // FIN MOD Postographie d'un membre depuis viewtopic
 $poster_from = $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : '';
 $poster_joined = $postrow[$i]['user_id'] != ANONYMOUS ? $lang['Joined'] . ': ' . create_date($lang['DATE_FORMAT'], $postrow[$i]['user_regdate'], $board_config['board_timezone']) : '';
 $poster_avatar = '';
 if ($postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar']) {
     switch ($postrow[$i]['user_avatar_type']) {
         case USER_AVATAR_UPLOAD:
             $poster_avatar = $board_config['allow_avatar_upload'] ? '<img onload="rmwa_img_loaded(this,' . $board_config['avatar_max_width'] . ',' . $board_config['avatar_max_height'] . ')"' . ' src="' . $board_config['avatar_path'] . '/' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />' : '';
             break;
         case USER_AVATAR_REMOTE:
             $poster_avatar = $board_config['allow_avatar_remote'] ? '<img onload="rmwa_img_loaded(this,' . $board_config['avatar_max_width'] . ',' . $board_config['avatar_max_height'] . ')"' . ' src="' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />' : '';
             break;