• 16-10-2009, 16:14:40
    #1
    Mobilya Dekorasyon Rehberi, Ev, Ofis, Mağaza Dekorasyonu için tasarımlar ve fikirler... tema sorunsuz bir şekilde çalışıyor, fakat admin paneline girişte http://www.mobilyadekorasyonrehberi.com/wp-admin/ bir hata alıyorum nedenini çözemedim temayı değiştirdiğimde hiçbir sorun yok sadece bu temayı aktif ettiğimde admin paneline giriş yapamıyorum bu konu hakkında bilgisi olan varmı arkadaşlar ?daha önce başınıza böyle bir olay geldimi ?
  • 16-10-2009, 16:42:48
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    themes/PinkyPink/functions.php ilk satirlarini kopyalarsan yardimci olabilirim
  • 16-10-2009, 16:49:29
    #3
    dosyaları tekrar atmayı dene düzelebilir : )
  • 16-10-2009, 16:55:35
    #4
    <?php
    /*
    Plugin Name: Recent Comments
    */
    
    if (function_exists('mdv_recent_comments')) { 
    }else{
    		
    	function mdv_recent_comments($no_comments = 10, $comment_lenth = 5, $before = '<li>', $after = '</li>', $show_pass_post = false) {
    	    global $wpdb;
    	    $request = "SELECT ID, comment_ID, comment_content, comment_author, comment_author_url, post_title FROM $wpdb->comments LEFT JOIN $wpdb->posts ON $wpdb->posts.ID=$wpdb->comments.comment_post_ID WHERE post_status IN ('publish','static') ";
    		if(!$show_pass_post) $request .= "AND post_password ='' ";
    		$request .= "AND comment_approved = '1' ORDER BY comment_ID DESC LIMIT $no_comments";
    		$comments = $wpdb->get_results($request);
    	    $output = '';
    		if ($comments) {
    			foreach ($comments as $comment) {
    				$comment_author = stripslashes($comment->comment_author);
    				if ($comment_author == "")
    					$comment_author = "anonymous"; 
    				$comment_content = strip_tags($comment->comment_content);
    				$comment_content = stripslashes($comment_content);
    				$words=split(" ",$comment_content); 
    				$comment_excerpt = join(" ",array_slice($words,0,$comment_lenth));
    				$permalink = get_permalink($comment->ID)."#comment-".$comment->comment_ID;
    	
    				$output .= $before . '<strong>' . $comment_author . ' - </strong><a href="' . $permalink;
    				$output .= '" title="' . $comment_author.' yazmış">' . $comment_excerpt.'</a>' . $after;
    				
    			}
    			$output = convert_smilies($output);
    		} else {
    			$output .= $before . "Hiç yorum yok" . $after;
    		}
    	    echo $output;
    	}
    }
    
    
    function wp_sayfanavi($before = '', $after = '', $prelabel = '', $nxtlabel = '', $pages_to_show = 5, $always_show = false) {
    	global $request, $posts_per_page, $wpdb, $paged;
    	if(empty($prelabel)) {
    		$prelabel  = '<strong>&laquo; geri</strong>';
    	}
    	if(empty($nxtlabel)) {
    		$nxtlabel = '<strong>ileri &raquo;</strong>';
    	}
    	$half_pages_to_show = round($pages_to_show/2);
    	if (!is_single()) {
    		if(!is_category()) {
    			preg_match('#FROM\s(.*)\sORDER BY#siU', $request, $matches);		
    		} else {
    			preg_match('#FROM\s(.*)\sGROUP BY#siU', $request, $matches);		
    		}
    		$fromwhere = $matches[1];
    		$numposts = $wpdb->get_var("SELECT COUNT(DISTINCT ID) FROM $fromwhere");
    		$max_page = ceil($numposts /$posts_per_page);
    		if(empty($paged)) {
    			$paged = 1;
    		}
    		if($max_page > 1 || $always_show) {
    			echo "$before <div class='Nav'><span>Sayfalar ($max_page): </span>";
    			if ($paged >= ($pages_to_show-1)) {
    				echo '<a href="'.get_pagenum_link().'">&laquo; İlk Sayfa</a> ... ';
    			}
    			previous_posts_link($prelabel);
    			for($i = $paged - $half_pages_to_show; $i  <= $paged + $half_pages_to_show; $i++) {
    				if ($i >= 1 && $i <= $max_page) {
    					if($i == $paged) {
    						echo "<strong class='on'>$i</strong>";
    					} else {
    						echo ' <a href="'.get_pagenum_link($i).'">'.$i.'</a> ';
    					}
    				}
    			}
    			next_posts_link($nxtlabel, $max_page);
    			if (($paged+$half_pages_to_show) < ($max_page)) {
    				echo ' ... <a href="'.get_pagenum_link($max_page).'">Son Sayfa &raquo;</a>';
    			}
    			echo "</div> $after";
    		}
    	}
    }
    ?>
  • 16-10-2009, 16:56:41
    #5
    TekimNet adlı üyeden alıntı: mesajı görüntüle
    themes/PinkyPink/functions.php ilk satirlarini kopyalarsan yardimci olabilirim
    functions.php sayfasındaki kodları ekledim...

    Silvers adlı üyeden alıntı: mesajı görüntüle
    dosyaları tekrar atmayı dene düzelebilir : )
    daha önce denedim ama düzelmedi...
  • 16-10-2009, 17:09:14
    #6
    ilk satirdaki bu kodlari silip denermisin

    if (function_exists('mdv_recent_comments')) {
    }else{
  • 16-10-2009, 17:23:58
    #7
    TekimNet adlı üyeden alıntı: mesajı görüntüle
    ilk satirdaki bu kodlari silip denermisin
    if (function_exists('mdv_recent_comments')) {
    }else{
    bu sefer site komple gidiyor
  • 16-10-2009, 17:28:40
    #8
    UTF-8 BOM (Byte Order Mark) Nedir? | yakuter.com

    şu adresi inceleyerek dosyanızı utf-8 with bom olarak kaydedip atınız.

    kolay gelsin.