PORTAL sayfasında kenarda çıkan bilgileri nasıl anasayfaya da ekleyebilirim? (1. resimdeki bilgileri portal sekmesinden. portal. php dosyasındaki kodlarla anasayfamda yandaki boş kısma eklemek istiyorum) Bilgisi olanlar yardımcı olurlarsa sevinirim 1 -

yokmu bilgisi olan portal. php aşağıdaki gibidir. HTML: <?php / MyBB 1.6 Copyright 2010 MyBB Group, All Rights Reserved Website: http://mybb.com License: http://mybb.com/about/license $Id$ / define("IN_MYBB", 1); define("IN_PORTAL", 1); define ; // set the path to your forums directory here $forumdir = "./"; // end editing $change_dir = "./"; if(!@chdir && ! empty { if(@is_dir else } $templatelist = "portal_welcome, portal_welcome_membertext, portal_stats, portal_search, portal_whosonline_memberbit, portal_whosonline, portal_latestthreads_thread, portal_latestthreads, portal_announcement_numcomments_no, portal_announcement, portal_announcement_numcomments, portal_pms, portal"; $templatelist.= ", portal_welcome_guesttext, postbit_attachments_thumbnails_thumbnail, postbit_attachments_images_image, postbit_attachments_attachment, postbit_attachments_thumbnails, postbit_attachments_images, postbit_attachments"; require_once $change_dir."/global. php"; require_once MYBB_ROOT."inc/functions_post. php"; require_once MYBB_ROOT."inc/functions_user. php"; require_once MYBB_ROOT."inc/class_parser. php"; $parser = new postParser; // Load global language phrases $lang->load ; // Fetch the current URL $portal_url = get_current_location ; add_breadcrumb ; $plugins->run_hooks ; // get forums user cannot view $unviewable = get_unviewable_forums ; if // If user is known, welcome them if($mybb->settings != 0) { if($mybb->user != 0) { // Get number of new posts, threads, announcements $query = $db->simple_select("posts", "COUNT AS newposts", "visible=1 AND dateline>'".$mybb->user ."' $unviewwhere"); $newposts = $db->fetch_field ; if { // If there aren't any new posts, there is no point in wasting two more queries $query = $db->simple_select("threads", "COUNT AS newthreads", "visible=1 AND dateline>'".$mybb->user ."' $unviewwhere"); $newthreads = $db->fetch_field ; if(! empty { $announcementsfids = explode ; if(is_array { foreach $announcementsfids = implode ; $query = $db->simple_select("threads", "COUNT AS newann", "visible=1 AND dateline>'".$mybb->user ."' AND fid IN $unviewwhere"); $newann = $db->fetch_field ; } } if if } else // Make the text if($newann 1) else if($newthreads 1) else if($newposts 1) else eval("\$welcometext = \"".$templates->get ."\";"); } else { $lang->guest_welcome_registration = $lang->sprintf ; $mybb->user = $lang->guest; switch eval("\$welcometext = \"".$templates->get ."\";"); } $lang->welcome = $lang->sprintf ; eval("\$welcome = \"".$templates->get ."\";"); if($mybb->user 0) } // Private messages box if($mybb->settings != 0) { if($mybb->user != 0 && $mybb->user != 0 && $mybb->usergroup != 0 && $mybb->settings != 0) { switch // the SUM thing returns "" instead of 0 if $lang->pms_received_new = $lang->sprintf ; eval("\$pms = \"".$templates->get ."\";"); } } // Get Forum Statistics if($mybb->settings != 0) { $stats = $cache->read ; $stats = my_number_format ; $stats = my_number_format ; $stats = my_number_format ; if else eval("\$stats = \"".$templates->get ."\";"); } // Search box if($mybb->settings != 0) // Get the online users if($mybb->settings != 0 && $mybb->usergroup != 0) { $timesearch = TIME_NOW - $mybb->settings ; $comma = ''; $guestcount = 0; $membercount = 0; $onlinemembers = ''; $query = $db->query(" SELECT s. sid, s. ip, s. uid, s. time, s. location, u. username, u. invisible, u. usergroup, u. displaygroup FROM ". TABLE_PREFIX."sessions s LEFT JOIN ". TABLE_PREFIX."users u ON WHERE s. time>'$timesearch' ORDER BY u. username ASC, s. time DESC "); while($user = $db->fetch_array { // Create a key to test if this user is a search bot. $botkey = my_strtolower(str_replace ; if($user "0") elseif(my_strpos ! false && $session->bots ) else { if { ++$membercount; $doneusers[$user ] = $user ; // If the user is logged in anonymously, update the count for that. if($user 1) if($user 1) else if(($user 1 && ($mybb->usergroup 1 || $user $mybb->user )) || $user != 1) } } } $onlinecount = $membercount + $guestcount + $botcount; // If we can see invisible users add them to the count if($mybb->usergroup 1) // If we can't see invisible users but the user is an invisible user incriment the count by one if($mybb->usergroup != 1 && $mybb->user 1) // Most users online $mostonline = $cache->read ; if $recordcount = $mostonline ; $recorddate = my_date ; $recordtime = my_date ; if($onlinecount 1) else $lang->online_counts = $lang->sprintf ; eval("\$whosonline = \"".$templates->get ."\";"); } // Latest forum discussions if($mybb->settings != 0 && $mybb->settings ) { $altbg = alt_trow ; $threadlist = ''; $query = $db->query(" SELECT t. , u. username FROM ". TABLE_PREFIX."threads t LEFT JOIN ". TABLE_PREFIX."users u ON WHERE 1=1 $unviewwhere AND t. visible='1' AND t. closed NOT LIKE 'moved|%' ORDER BY t. lastpost DESC LIMIT 0, ".$mybb->settings ); while($thread = $db->fetch_array { $forumpermissions[$thread ] = forum_permissions ; // Make sure we can view this thread if($forumpermissions[$thread ] 0 || $forumpermissions[$thread ] 0 || $forumpermissions[$thread ] 1 && $thread != $mybb->user ) $lastpostdate = my_date ; $lastposttime = my_date ; // Don't link to guest's profiles . if($thread 0) else if(my_strlen > 25) $thread = htmlspecialchars_uni($parser->parse_badwords ; $thread = get_thread_link ; $thread = get_thread_link($thread , 0, "lastpost"); eval("\$threadlist.= \"".$templates->get ."\";"); $altbg = alt_trow ; } if } $announcements = ''; if(! empty { // Get latest news announcements // First validate announcement fids: $announcementsfids = explode ; if(is_array { foreach $announcementsfids = implode ; } // And get them! foreach { if(is_array && in_array } $numannouncements = intval ; if $pids = ''; $tids = ''; $comma = ''; $posts = array ; $query = $db->query(" SELECT p. pid, p. message, p. tid, p. smilieoff FROM ". TABLE_PREFIX."posts p LEFT JOIN ". TABLE_PREFIX."threads t ON WHERE t. fid IN AND t. visible='1' AND t. closed NOT LIKE 'moved|%' AND t. firstpost=p. pid ORDER BY t. dateline DESC LIMIT 0, " ); while($getid = $db->fetch_array { $pids.= ",' '"; $tids.= ",' '"; $posts[$getid ] = $getid; } if(! empty { $pids = "pid IN(0 )"; // Now lets fetch all of the attachments for these posts $query = $db->simple_select ; while($attachment = $db->fetch_array if(is_array { foreach } $icon_cache = $cache->read ; $query = $db->query(" SELECT t. , t. username AS threadusername, u. username, u. avatar, u. avatardimensions FROM ". TABLE_PREFIX."threads t LEFT JOIN ". TABLE_PREFIX."users u ON WHERE t. fid IN AND t. tid IN (0 ) AND t. visible='1' AND t. closed NOT LIKE 'moved|%' ORDER BY t. dateline DESC LIMIT 0, " ); while($announcement = $db->fetch_array { // Make sure we can view this announcement if($forumpermissions[$announcement ] 0 || $forumpermissions[$announcement ] 0 || $forumpermissions[$announcement ] 1 && $announcement != $mybb->user ) $announcement = $posts[$announcement ] ; $announcement = $posts[$announcement ] ; $announcement = $posts[$announcement ] ; $announcement = get_thread_link ; if($announcement 0) else if $announcement = htmlspecialchars_uni($parser->parse_badwords ; if($announcement > 0 && $icon_cache[$announcement ]) { $icon = $icon_cache[$announcement ]; $icon = "<img src=\" \" alt=\" \" />"; } else if { $avatar_dimensions = explode ; if($avatar_dimensions && $avatar_dimensions ) { $avatar_width_height = "width=\" \" height=\" \""; } if (! stristr $avatar = "<td class=\"trow1\" width=\"1\" align=\"center\" valign=\"top\"><img src=\" \" alt=\"\" /></td>"; } else $anndate = my_date ; $anntime = my_date ; if else $plugins->run_hooks ; $parser_options = array( "allow_html" => $forum[$announcement ] , "allow_mycode" => $forum[$announcement ] , "allow_smilies" => $forum[$announcement ] , "allow_imgcode" => $forum[$announcement ] , "allow_videocode" => $forum[$announcement ] , "filter_badwords" => 1 ); if($announcement 1) $message = $parser->parse_message ; if(is_array { // This post has 1 or more attachments $validationcount = 0; $id = $announcement ; foreach { if { // There is an attachment thats visible! $attachment = htmlspecialchars_uni ; $attachment = get_friendly_size ; $ext = get_extension ; if else $attachment = get_attachment_icon ; // Support for code if(stripos ! false) { if elseif($attachment "SMALL" && $forumpermissions[$announcement ] 1) else $message = preg_replace ; } else { if { // We have a thumbnail to show eval("\$post .= \"".$templates->get ."\";"); if($tcount 5) ++$tcount; } elseif($attachment "SMALL" && $forumpermissions[$announcement ] 1) else } } else } if if if } eval("\$announcements.= \"".$templates->get ."\";"); unset ; } } } $plugins->run_hooks ; eval("\$portal = \"".$templates->get ."\";"); output_page ; ?>