PageTitle = "Trading Card Central - Trading and Marketplace Topics for ".$member . $_POST['hash']; $template->PageTitle = "Trading Card Central - Trading and Marketplace Topics for ".$member; ?> <?=$template->PageTitle?> Start(); ?>
View Forums

'; if (!$member) echo 'No member name was specified.

'; else { // Determine the member ID. $member_id = $SDK->name2id($member); } // Check to see if visitor is a logged-in member. if ($SDK->is_loggedin()) { // Look up the member name for the logged in user. $logged_in_member_data = $SDK->get_advinfo(); } ?> Box->Start("Trading Topics"); ?> TopicStart DateLast ActivityLast PosterPosts'; // Build an array of the trading forums to include. $forum_list = "44,102,45,103,46,104,47,48,105,49,106,50,51,52,108,53,54,55,73,57,56,83,115"; $forums = explode(",", $forum_list); if (count($forums)) { foreach ($forums as $i) { // Get info about this forum. $foruminfo = $SDK->get_forum_info($i); echo ''.$foruminfo['name'].''; $query_string = 'SELECT starter_id, last_post, start_date, tid, title, last_poster_name, posts FROM ibf_topics WHERE forum_id='.$i.' ORDER BY last_post DESC'; $topics = $SDK->DB->query($query_string); $query_string = ""; // RSW 3/14/08 //if ($topics = $SDK->list_forum_topics($i, array("limit" => $foruminfo['topics'], "start" => "0", "order" => "desc", "orderby" => "last_post"), "0")) { if (count($topics)) { // RSW 3/14/08 //foreach ($topics as $j) { // Loop through the results. while($j = $SDK->DB->fetch_row($topics)) { if ($j['starter_id'] == $member_id) { // Check to see if the topic's last post is greater than the logged-in member's last visit. if (($j['last_post'] > $logged_in_member_data['last_visit']) && ($SDK->is_loggedin() == 1)) { $new_phrase = 'NEW POSTS! - '; } else { $new_phrase = ''; } // Get the date of the last post and format it. $j['last_post'] = date('M j Y, h:i A', $j['last_post']); // Get the start date of the topic and format it. $j['start_date'] = date('M j Y, h:i A', $j['start_date']); echo ''.$new_phrase.''.$j['title'].''.$j['start_date'].''.$j['last_post'].''.$j['last_poster_name'].''.$j['posts'].''; } } } // RSW 3/14/08 //} echo ''; } } echo ''; ?> Box->End(); ?>
Box->Start("Marketplace Topics"); ?> TopicStart DateLast ActivityLast PosterPosts'; // Build an array of the marketplace forums to include. $forum_list = "121,58,117,59,118,60,119,61,62,120,63,64,65,66,109,67,68,69,70,72,71,84,116"; $forums = explode(",", $forum_list); if (count($forums)) { foreach ($forums as $i) { // Get info about this forum. $foruminfo = $SDK->get_forum_info($i); echo ''.$foruminfo['name'].''; $query_string = 'SELECT starter_id, last_post, start_date, tid, title, last_poster_name, posts FROM ibf_topics WHERE forum_id='.$i.' ORDER BY last_post DESC'; $topics = $SDK->DB->query($query_string); $query_string = ""; // RSW 3/14/08 //if ($topics = $SDK->list_forum_topics($i, array("limit" => $foruminfo['topics'], "start" => "0", "order" => "desc", "orderby" => "last_post"), "0")) { if (count($topics)) { // RSW 3/14/08 //foreach ($topics as $j) { // Loop through the results. while($j = $SDK->DB->fetch_row($topics)) { if ($j['starter_id'] == $member_id) { // Check to see if the topic's last post is greater than the logged-in member's last visit. if (($j['last_post'] > $logged_in_member_data['last_visit']) && ($SDK->is_loggedin() == 1)) { $new_phrase = 'NEW POSTS! - '; } else { $new_phrase = ''; } // Get the date of the last post and format it. $j['last_post'] = date('M j Y, h:i A', $j['last_post']); // Get the start date of the topic and format it. $j['start_date'] = date('M j Y, h:i A', $j['start_date']); echo ''.$new_phrase.''.$j['title'].''.$j['start_date'].''.$j['last_post'].''.$j['last_poster_name'].''.$j['posts'].''; } } } // RSW 3/14/08 //} echo ''; } } echo ''; ?> Box->End(); ?>
End(); ?>