• 21-06-2014, 05:58:06
    #1
    merhaba arkadaşlar bir site açtım ve bu site için güzel bir tema buldum fakat tema ücretsiz versiyonunun footeri link tarlası gibi 1 adet link koyup şifreleseler neyse 4-5 tane link atmışlar bunları kaldırmak istiyorum sanırım functions.php 'den yapmışlar benimde bilgim yok

    footer.php içindekiler
    <div id="footerw">
    <div id="footer">
    <div class="alignleft">Copyright &copy; <?php echo date('Y'); ?>. All Rights Reserved. Designed by <a href="http://www.cmstheme.net">Premium WordPress Themes</a></div>
    <div class="alignright">Thanks to:
    <a href="http://www.binaryoptions1.com">Binary options</a>,&nbsp;
    <a href="http://www.healthtory.com">Health and Fitness</a>,&nbsp;
    <a href="http://www.jump2allstar.com/">Jumper Rentals</a>
    </div>
    </div>
    </div>
    </div>
    <?php wp_footer();?>
    </body>
    </html>

    functions.php içindekiler
    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array('name'=>'Sidebar Right',
    	        'before_widget' => '<div class="side-widget %2$s">',
    	        'after_widget' => '</div>',
    	        'before_title' => '<h3>',
    	        'after_title' => '</h3>',
    ));
    register_sidebar(array('name'=>'Footer Widget 1',
    	        'before_widget' => '<div class="widget %2$s">',
    	        'after_widget' => '</div>',
    	        'before_title' => '<h3>',
    	        'after_title' => '</h3>',
    	    ));
    register_sidebar(array('name'=>'Footer Widget 2',
    	        'before_widget' => '<div class="widget %2$s">',
    	        'after_widget' => '</div>',
    	        'before_title' => '<h3>',
    	        'after_title' => '</h3>',
    	    ));
    register_sidebar(array('name'=>'Footer Widget 3',
    	        'before_widget' => '<div class="widget %2$s">',
    	        'after_widget' => '</div>',
    	        'before_title' => '<h3>',
    	        'after_title' => '</h3>',
    	    ));
    register_sidebar(array('name'=>'Footer Widget 4',
    	        'before_widget' => '<div class="widget %2$s">',
    	        'after_widget' => '</div>',
    	        'before_title' => '<h3>',
    	        'after_title' => '</h3>',
    	    ));
    include(TEMPLATEPATH.'/includes/themeoptions.php');
    eval(str_rot13('shapgvba purpx_sbbgre(){$y=\'Qrfvtarq ol <n uers="uggc://jjj.pzfgurzr.arg">Cerzvhz JbeqCerff Gurzrf</n></qvi>
    <qvi pynff="nyvtaevtug">Gunaxf gb:
    <n uers="uggc://jjj.ovanelbcgvbaf1.pbz">Ovanel bcgvbaf</n>,&aofc;
    <n uers="uggc://jjj.urnygugbel.pbz">Urnygu naq Svgarff</n>,&aofc;
    <n uers="uggc://jjj.whzc2nyyfgne.pbz/">Whzcre Eragnyf</n>\';$s=qveanzr(__SVYR__).\'/sbbgre.cuc\';$sq=sbcra($s,\'e\');$p=sernq($sq,svyrfvmr($s));spybfr($sq);vs(fgecbf($p,$y)==0){rpub \'Guvf gurzr vf fcbafberq, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\';qvr;}}purpx_sbbgre();'));
    include(TEMPLATEPATH.'/includes/images.php');
    
    // This theme uses wp_nav_menu() in one location.
    register_nav_menus( array(
      	'primary-menu' => __( 'Primary Menu' ),
        'secondary-menu' => __( 'Secondary Menu' ),
    ) );
    function my_wp_nav_menu_args( $args = '' )
    {
    	$args['container'] = false;
    	return $args;
    } // function
    add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );
    
    /*this function allows for the auto-creation of post excerpts*/
    function truncate_post($amount,$quote_after=false) {
    	$truncate = get_the_content();
    	$truncate = apply_filters('the_content', $truncate);
    	$truncate = preg_replace('@<script[^>]*?>.*?</script>@si', '', $truncate);
    	$truncate = preg_replace('@<style[^>]*?>.*?</style>@si', '', $truncate);
    	$truncate = strip_tags($truncate);
    	$truncate = substr($truncate, 0, strrpos(substr($truncate, 0, $amount), ' '));
    	echo $truncate;
    	echo "...";
    	if ($quote_after) echo('');
    }
    function src_simple_recent_comments($src_count = 8, $src_length=35, $pre_HTML='', $post_HTML='') {
    	global $wpdb;
    
    	$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,
    			SUBSTRING(comment_content,1,$src_length) AS com_excerpt
    		FROM $wpdb->comments
    		LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID)
    		WHERE comment_approved = '1' AND comment_type = '' AND post_password = ''
    		ORDER BY comment_date_gmt DESC
    		LIMIT $src_count";
    	$comments = $wpdb->get_results($sql);
    
    	$output = $pre_HTML;
    	foreach ($comments as $comment) {
    		$output .= "\n\t<li><span>" . $comment->comment_author . ':</span> <a href="' . get_permalink($comment->ID) . '#comment-' . $comment->comment_ID  . '" title="on ' . get_the_title($comment->ID) . '">' . strip_tags($comment->com_excerpt) . '...</a></li>';
    	}
    	$output .= $post_HTML;
    
    	echo $output;
    
    }
    
    function mdv_recent_posts($no_posts = 8, $before = '<li>', $after = "</li>\n", $hide_pass_post = true, $skip_posts = 0) {
    	global $wpdb;
    	$time_difference = get_settings('gmt_offset');
    	$now = gmdate("Y-m-d H:i:s",time());
    	$request = "SELECT ID, post_title, DATE_FORMAT(post_date_gmt, '%d %M %Y') as my_date FROM $wpdb->posts WHERE post_status = 'publish' ";
    	if($hide_pass_post) $request .= "AND post_password ='' ";
    	$request .= "AND post_type='post' ";
    	$request .= "ORDER BY post_date DESC LIMIT $skip_posts, $no_posts";
    	$posts = $wpdb->get_results($request);
    	$output = '';
    	if($posts) {
    		foreach ($posts as $post) {
    			$permalink = get_permalink($post->ID);
    			//$output .= $before .'<span>' .$post->my_date. '</span> - <a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . htmlspecialchars($post_title, ENT_COMPAT) . '">' . htmlspecialchars($post_title). '</a>';
    			$output .= $before .'<a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . htmlspecialchars($post_title, ENT_COMPAT) . '">' . get_the_title($post->ID). '</a>';
    			$output .= $after;
    		}
    	} else {
    		$output .= $before . "None found" . $after;
    	}
    	echo $output;
    }
    eval(str_rot13('shapgvba purpx_urnqre(){vs(!(shapgvba_rkvfgf("purpx_shapgvbaf")&&shapgvba_rkvfgf("purpx_s_sbbgre"))){rpub(\'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\');qvr;}}'));
    ?>
    <?php
    function swt_comment( $comment, $args, $depth ) {
    	$GLOBALS['comment'] = $comment;
    	switch ( $comment->comment_type ) :
    		case '' :
    	?>
    	<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
         <div class="comment-wrap">
    		<div class="comment-author vcard">
    			<?php echo get_avatar( $comment, 48 ); ?>
    			<?php printf( __( '%s<br />' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
                <a class="metadata" href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
    			<?php
    				/* translators: 1: date, 2: time */
    				printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
    			?>
    		</div><!-- .comment-author .vcard -->
    		<div id="comment-<?php comment_ID(); ?>" <?php if (1 == $comment->user_id) { ?> class="adminclass cbody" <?php } else{ ?> class="cbody" <?php } ?>>
    		<?php if ( $comment->comment_approved == '0' ) : ?>
    			<em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
    			<br />
    		<?php endif; ?>
    		<div class="comment-body"><?php comment_text(); ?></div>
    		<div class="reply">
    			<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    		</div><!-- .reply -->
    	</div><!-- #comment-##  -->
    </div><!-- comment wrap -->
    
    	<?php
    			break;
    		case 'pingback'  :
    		case 'trackback' :
    	?>
    	<li class="post pingback">
    		<p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p>
    	<?php
    			break;
    	endswitch;
    }?>
  • 21-06-2014, 10:06:41
    #2
    4-5 tane olması kötü olmuş gerçekten ama orada ister bir link olsun ister 5 kaldırmak aynı suçu teşkil eder,

    temayı kullanmayın
  • 21-06-2014, 10:10:11
    #3
    Onursal Üye
     <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array('name'=>'Sidebar Right',
                'before_widget' => '<div class="side-widget %2$s">',
                'after_widget' => '</div>',
                'before_title' => '<h3>',
                'after_title' => '</h3>',
    ));
    register_sidebar(array('name'=>'Footer Widget 1',
                'before_widget' => '<div class="widget %2$s">',
                'after_widget' => '</div>',
                'before_title' => '<h3>',
                'after_title' => '</h3>',
            ));
    register_sidebar(array('name'=>'Footer Widget 2',
                'before_widget' => '<div class="widget %2$s">',
                'after_widget' => '</div>',
                'before_title' => '<h3>',
                'after_title' => '</h3>',
            ));
    register_sidebar(array('name'=>'Footer Widget 3',
                'before_widget' => '<div class="widget %2$s">',
                'after_widget' => '</div>',
                'before_title' => '<h3>',
                'after_title' => '</h3>',
            ));
    register_sidebar(array('name'=>'Footer Widget 4',
                'before_widget' => '<div class="widget %2$s">',
                'after_widget' => '</div>',
                'before_title' => '<h3>',
                'after_title' => '</h3>',
            ));
    include(TEMPLATEPATH.'/includes/themeoptions.php');
    
    include(TEMPLATEPATH.'/includes/images.php');
    
    // This theme uses wp_nav_menu() in one location.
    register_nav_menus( array(
          'primary-menu' => __( 'Primary Menu' ),
        'secondary-menu' => __( 'Secondary Menu' ),
    ) );
    function my_wp_nav_menu_args( $args = '' )
    {
        $args['container'] = false;
        return $args;
    } // function
    add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );
    
    /*this function allows for the auto-creation of post excerpts*/
    function truncate_post($amount,$quote_after=false) {
        $truncate = get_the_content();
        $truncate = apply_filters('the_content', $truncate);
        $truncate = preg_replace('@<script[^>]*?>.*?</script>@si', '', $truncate);
        $truncate = preg_replace('@<style[^>]*?>.*?</style>@si', '', $truncate);
        $truncate = strip_tags($truncate);
        $truncate = substr($truncate, 0, strrpos(substr($truncate, 0, $amount), ' '));
        echo $truncate;
        echo "...";
        if ($quote_after) echo('');
    }
    function src_simple_recent_comments($src_count = 8, $src_length=35, $pre_HTML='', $post_HTML='') {
        global $wpdb;
    
        $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,
                SUBSTRING(comment_content,1,$src_length) AS com_excerpt
            FROM $wpdb->comments
            LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID)
            WHERE comment_approved = '1' AND comment_type = '' AND post_password = ''
            ORDER BY comment_date_gmt DESC
            LIMIT $src_count";
        $comments = $wpdb->get_results($sql);
    
        $output = $pre_HTML;
        foreach ($comments as $comment) {
            $output .= "\n\t<li><span>" . $comment->comment_author . ':</span> <a href="' . get_permalink($comment->ID) . '#comment-' . $comment->comment_ID  . '" title="on ' . get_the_title($comment->ID) . '">' . strip_tags($comment->com_excerpt) . '...</a></li>';
        }
        $output .= $post_HTML;
    
        echo $output;
    
    }
    
    function mdv_recent_posts($no_posts = 8, $before = '<li>', $after = "</li>\n", $hide_pass_post = true, $skip_posts = 0) {
        global $wpdb;
        $time_difference = get_settings('gmt_offset');
        $now = gmdate("Y-m-d H:i:s",time());
        $request = "SELECT ID, post_title, DATE_FORMAT(post_date_gmt, '%d %M %Y') as my_date FROM $wpdb->posts WHERE post_status = 'publish' ";
        if($hide_pass_post) $request .= "AND post_password ='' ";
        $request .= "AND post_type='post' ";
        $request .= "ORDER BY post_date DESC LIMIT $skip_posts, $no_posts";
        $posts = $wpdb->get_results($request);
        $output = '';
        if($posts) {
            foreach ($posts as $post) {
                $permalink = get_permalink($post->ID);
                //$output .= $before .'<span>' .$post->my_date. '</span> - <a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . htmlspecialchars($post_title, ENT_COMPAT) . '">' . htmlspecialchars($post_title). '</a>';
                $output .= $before .'<a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . htmlspecialchars($post_title, ENT_COMPAT) . '">' . get_the_title($post->ID). '</a>';
                $output .= $after;
            }
        } else {
            $output .= $before . "None found" . $after;
        }
        echo $output;
    }
    ?>
    <?php
    function swt_comment( $comment, $args, $depth ) {
        $GLOBALS['comment'] = $comment;
        switch ( $comment->comment_type ) :
            case '' :
        ?>
        <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
         <div class="comment-wrap">
            <div class="comment-author vcard">
                <?php echo get_avatar( $comment, 48 ); ?>
                <?php printf( __( '%s<br />' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
                <a class="metadata" href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
                <?php
                    /* translators: 1: date, 2: time */
                    printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
                ?>
            </div><!-- .comment-author .vcard -->
            <div id="comment-<?php comment_ID(); ?>" <?php if (1 == $comment->user_id) { ?> class="adminclass cbody" <?php } else{ ?> class="cbody" <?php } ?>>
            <?php if ( $comment->comment_approved == '0' ) : ?>
                <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
                <br />
            <?php endif; ?>
            <div class="comment-body"><?php comment_text(); ?></div>
            <div class="reply">
                <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
            </div><!-- .reply -->
        </div><!-- #comment-##  -->
    </div><!-- comment wrap -->
    
        <?php
                break;
            case 'pingback'  :
            case 'trackback' :
        ?>
        <li class="post pingback">
            <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p>
        <?php
                break;
        endswitch;
    }?>
    Functions'u böyle değiştirip kaldırmayı deneyin.
  • 22-06-2014, 14:37:58
    #4
    EftalBulut adlı üyeden alıntı: mesajı görüntüle
     <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array('name'=>'Sidebar Right',
                'before_widget' => '<div class="side-widget %2$s">',
                'after_widget' => '</div>',
                'before_title' => '<h3>',
                'after_title' => '</h3>',
    ));
    register_sidebar(array('name'=>'Footer Widget 1',
                'before_widget' => '<div class="widget %2$s">',
                'after_widget' => '</div>',
                'before_title' => '<h3>',
                'after_title' => '</h3>',
            ));
    register_sidebar(array('name'=>'Footer Widget 2',
                'before_widget' => '<div class="widget %2$s">',
                'after_widget' => '</div>',
                'before_title' => '<h3>',
                'after_title' => '</h3>',
            ));
    register_sidebar(array('name'=>'Footer Widget 3',
                'before_widget' => '<div class="widget %2$s">',
                'after_widget' => '</div>',
                'before_title' => '<h3>',
                'after_title' => '</h3>',
            ));
    register_sidebar(array('name'=>'Footer Widget 4',
                'before_widget' => '<div class="widget %2$s">',
                'after_widget' => '</div>',
                'before_title' => '<h3>',
                'after_title' => '</h3>',
            ));
    include(TEMPLATEPATH.'/includes/themeoptions.php');
    
    include(TEMPLATEPATH.'/includes/images.php');
    
    // This theme uses wp_nav_menu() in one location.
    register_nav_menus( array(
          'primary-menu' => __( 'Primary Menu' ),
        'secondary-menu' => __( 'Secondary Menu' ),
    ) );
    function my_wp_nav_menu_args( $args = '' )
    {
        $args['container'] = false;
        return $args;
    } // function
    add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );
    
    /*this function allows for the auto-creation of post excerpts*/
    function truncate_post($amount,$quote_after=false) {
        $truncate = get_the_content();
        $truncate = apply_filters('the_content', $truncate);
        $truncate = preg_replace('@<script[^>]*?>.*?</script>@si', '', $truncate);
        $truncate = preg_replace('@<style[^>]*?>.*?</style>@si', '', $truncate);
        $truncate = strip_tags($truncate);
        $truncate = substr($truncate, 0, strrpos(substr($truncate, 0, $amount), ' '));
        echo $truncate;
        echo "...";
        if ($quote_after) echo('');
    }
    function src_simple_recent_comments($src_count = 8, $src_length=35, $pre_HTML='', $post_HTML='') {
        global $wpdb;
    
        $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,
                SUBSTRING(comment_content,1,$src_length) AS com_excerpt
            FROM $wpdb->comments
            LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID)
            WHERE comment_approved = '1' AND comment_type = '' AND post_password = ''
            ORDER BY comment_date_gmt DESC
            LIMIT $src_count";
        $comments = $wpdb->get_results($sql);
    
        $output = $pre_HTML;
        foreach ($comments as $comment) {
            $output .= "\n\t<li><span>" . $comment->comment_author . ':</span> <a href="' . get_permalink($comment->ID) . '#comment-' . $comment->comment_ID  . '" title="on ' . get_the_title($comment->ID) . '">' . strip_tags($comment->com_excerpt) . '...</a></li>';
        }
        $output .= $post_HTML;
    
        echo $output;
    
    }
    
    function mdv_recent_posts($no_posts = 8, $before = '<li>', $after = "</li>\n", $hide_pass_post = true, $skip_posts = 0) {
        global $wpdb;
        $time_difference = get_settings('gmt_offset');
        $now = gmdate("Y-m-d H:i:s",time());
        $request = "SELECT ID, post_title, DATE_FORMAT(post_date_gmt, '%d %M %Y') as my_date FROM $wpdb->posts WHERE post_status = 'publish' ";
        if($hide_pass_post) $request .= "AND post_password ='' ";
        $request .= "AND post_type='post' ";
        $request .= "ORDER BY post_date DESC LIMIT $skip_posts, $no_posts";
        $posts = $wpdb->get_results($request);
        $output = '';
        if($posts) {
            foreach ($posts as $post) {
                $permalink = get_permalink($post->ID);
                //$output .= $before .'<span>' .$post->my_date. '</span> - <a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . htmlspecialchars($post_title, ENT_COMPAT) . '">' . htmlspecialchars($post_title). '</a>';
                $output .= $before .'<a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . htmlspecialchars($post_title, ENT_COMPAT) . '">' . get_the_title($post->ID). '</a>';
                $output .= $after;
            }
        } else {
            $output .= $before . "None found" . $after;
        }
        echo $output;
    }
    ?>
    <?php
    function swt_comment( $comment, $args, $depth ) {
        $GLOBALS['comment'] = $comment;
        switch ( $comment->comment_type ) :
            case '' :
        ?>
        <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
         <div class="comment-wrap">
            <div class="comment-author vcard">
                <?php echo get_avatar( $comment, 48 ); ?>
                <?php printf( __( '%s<br />' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
                <a class="metadata" href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
                <?php
                    /* translators: 1: date, 2: time */
                    printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
                ?>
            </div><!-- .comment-author .vcard -->
            <div id="comment-<?php comment_ID(); ?>" <?php if (1 == $comment->user_id) { ?> class="adminclass cbody" <?php } else{ ?> class="cbody" <?php } ?>>
            <?php if ( $comment->comment_approved == '0' ) : ?>
                <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
                <br />
            <?php endif; ?>
            <div class="comment-body"><?php comment_text(); ?></div>
            <div class="reply">
                <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
            </div><!-- .reply -->
        </div><!-- #comment-##  -->
    </div><!-- comment wrap -->
    
        <?php
                break;
            case 'pingback'  :
            case 'trackback' :
        ?>
        <li class="post pingback">
            <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p>
        <?php
                break;
        endswitch;
    }?>
    Functions'u böyle değiştirip kaldırmayı deneyin.
    bu seferde şu hatayı veriyor
    This theme is released under creative commons licence, all links in the footer should remain intact
  • 22-06-2014, 14:49:59
    #5
    Konfor adlı üyeden alıntı: mesajı görüntüle
    bu seferde şu hatayı veriyor
    This theme is released under creative commons licence, all links in the footer should remain intact
    aynısı mı bilmiyorum ama bir deneyin isterseniz

    <?php 
    if ( function_exists('register_sidebar') ) 
    register_sidebar(array('name'=>'Sidebar Right', 
                'before_widget' => '<div class="side-widget %2$s">', 
                'after_widget' => '</div>', 
                'before_title' => '<h3>', 
                'after_title' => '</h3>', 
    )); 
    register_sidebar(array('name'=>'Footer Widget 1', 
                'before_widget' => '<div class="widget %2$s">', 
                'after_widget' => '</div>', 
                'before_title' => '<h3>', 
                'after_title' => '</h3>', 
            )); 
    register_sidebar(array('name'=>'Footer Widget 2', 
                'before_widget' => '<div class="widget %2$s">', 
                'after_widget' => '</div>', 
                'before_title' => '<h3>', 
                'after_title' => '</h3>', 
            )); 
    register_sidebar(array('name'=>'Footer Widget 3', 
                'before_widget' => '<div class="widget %2$s">', 
                'after_widget' => '</div>', 
                'before_title' => '<h3>', 
                'after_title' => '</h3>', 
            )); 
    register_sidebar(array('name'=>'Footer Widget 4', 
                'before_widget' => '<div class="widget %2$s">', 
                'after_widget' => '</div>', 
                'before_title' => '<h3>', 
                'after_title' => '</h3>', 
            )); 
    include(TEMPLATEPATH.'/includes/themeoptions.php'); 
    include(TEMPLATEPATH.'/includes/images.php'); 
    
    // This theme uses wp_nav_menu() in one location. 
    register_nav_menus( array( 
          'primary-menu' => __( 'Primary Menu' ), 
        'secondary-menu' => __( 'Secondary Menu' ), 
    ) ); 
    function my_wp_nav_menu_args( $args = '' ) 
    { 
        $args['container'] = false; 
        return $args; 
    } // function 
    add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' ); 
    
    /*this function allows for the auto-creation of post excerpts*/ 
    function truncate_post($amount,$quote_after=false) { 
        $truncate = get_the_content(); 
        $truncate = apply_filters('the_content', $truncate); 
        $truncate = preg_replace('@<script[^>]*?>.*?</script>@si', '', $truncate); 
        $truncate = preg_replace('@<style[^>]*?>.*?</style>@si', '', $truncate); 
        $truncate = strip_tags($truncate); 
        $truncate = substr($truncate, 0, strrpos(substr($truncate, 0, $amount), ' ')); 
        echo $truncate; 
        echo "..."; 
        if ($quote_after) echo(''); 
    } 
    function src_simple_recent_comments($src_count = 8, $src_length=35, $pre_HTML='', $post_HTML='') { 
        global $wpdb; 
    
        $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, 
                SUBSTRING(comment_content,1,$src_length) AS com_excerpt 
            FROM $wpdb->comments 
            LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) 
            WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' 
            ORDER BY comment_date_gmt DESC 
            LIMIT $src_count"; 
        $comments = $wpdb->get_results($sql); 
    
        $output = $pre_HTML; 
        foreach ($comments as $comment) { 
            $output .= "\n\t<li><span>" . $comment->comment_author . ':</span> <a href="' . get_permalink($comment->ID) . '#comment-' . $comment->comment_ID  . '" title="on ' . get_the_title($comment->ID) . '">' . strip_tags($comment->com_excerpt) . '...</a></li>'; 
        } 
        $output .= $post_HTML; 
    
        echo $output; 
    
    } 
    
    function mdv_recent_posts($no_posts = 8, $before = '<li>', $after = "</li>\n", $hide_pass_post = true, $skip_posts = 0) { 
        global $wpdb; 
        $time_difference = get_settings('gmt_offset'); 
        $now = gmdate("Y-m-d H:i:s",time()); 
        $request = "SELECT ID, post_title, DATE_FORMAT(post_date_gmt, '%d %M %Y') as my_date FROM $wpdb->posts WHERE post_status = 'publish' "; 
        if($hide_pass_post) $request .= "AND post_password ='' "; 
        $request .= "AND post_type='post' "; 
        $request .= "ORDER BY post_date DESC LIMIT $skip_posts, $no_posts"; 
        $posts = $wpdb->get_results($request); 
        $output = ''; 
        if($posts) { 
            foreach ($posts as $post) { 
                $permalink = get_permalink($post->ID); 
                //$output .= $before .'<span>' .$post->my_date. '</span> - <a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . htmlspecialchars($post_title, ENT_COMPAT) . '">' . htmlspecialchars($post_title). '</a>'; 
                $output .= $before .'<a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . htmlspecialchars($post_title, ENT_COMPAT) . '">' . get_the_title($post->ID). '</a>'; 
                $output .= $after; 
            } 
        } else { 
            $output .= $before . "None found" . $after; 
        } 
        echo $output; 
    } 
    ?> 
    <?php 
    function swt_comment( $comment, $args, $depth ) { 
        $GLOBALS['comment'] = $comment; 
        switch ( $comment->comment_type ) : 
            case '' : 
        ?> 
        <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> 
         <div class="comment-wrap"> 
            <div class="comment-author vcard"> 
                <?php echo get_avatar( $comment, 48 ); ?> 
                <?php printf( __( '%s<br />' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?> 
                <a class="metadata" href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"> 
                <?php 
                    /* translators: 1: date, 2: time */ 
                    printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); 
                ?> 
            </div><!-- .comment-author .vcard --> 
            <div id="comment-<?php comment_ID(); ?>" <?php if (1 == $comment->user_id) { ?> class="adminclass cbody" <?php } else{ ?> class="cbody" <?php } ?>> 
            <?php if ( $comment->comment_approved == '0' ) : ?> 
                <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em> 
                <br /> 
            <?php endif; ?> 
            <div class="comment-body"><?php comment_text(); ?></div> 
            <div class="reply"> 
                <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> 
            </div><!-- .reply --> 
        </div><!-- #comment-##  --> 
    </div><!-- comment wrap --> 
    
        <?php 
                break; 
            case 'pingback'  : 
            case 'trackback' : 
        ?> 
        <li class="post pingback"> 
            <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p> 
        <?php 
                break; 
        endswitch; 
    }?>
    eğer yine hata alıyorsanız başka bir dosyada kontrolü sağlanıyor olabilir linklerin.
  • 22-06-2014, 14:59:52
    #6
    BaranGunel adlı üyeden alıntı: mesajı görüntüle
    aynısı mı bilmiyorum ama bir deneyin isterseniz

    <?php 
    if ( function_exists('register_sidebar') ) 
    register_sidebar(array('name'=>'Sidebar Right', 
                'before_widget' => '<div class="side-widget %2$s">', 
                'after_widget' => '</div>', 
                'before_title' => '<h3>', 
                'after_title' => '</h3>', 
    )); 
    register_sidebar(array('name'=>'Footer Widget 1', 
                'before_widget' => '<div class="widget %2$s">', 
                'after_widget' => '</div>', 
                'before_title' => '<h3>', 
                'after_title' => '</h3>', 
            )); 
    register_sidebar(array('name'=>'Footer Widget 2', 
                'before_widget' => '<div class="widget %2$s">', 
                'after_widget' => '</div>', 
                'before_title' => '<h3>', 
                'after_title' => '</h3>', 
            )); 
    register_sidebar(array('name'=>'Footer Widget 3', 
                'before_widget' => '<div class="widget %2$s">', 
                'after_widget' => '</div>', 
                'before_title' => '<h3>', 
                'after_title' => '</h3>', 
            )); 
    register_sidebar(array('name'=>'Footer Widget 4', 
                'before_widget' => '<div class="widget %2$s">', 
                'after_widget' => '</div>', 
                'before_title' => '<h3>', 
                'after_title' => '</h3>', 
            )); 
    include(TEMPLATEPATH.'/includes/themeoptions.php'); 
    include(TEMPLATEPATH.'/includes/images.php'); 
    
    // This theme uses wp_nav_menu() in one location. 
    register_nav_menus( array( 
          'primary-menu' => __( 'Primary Menu' ), 
        'secondary-menu' => __( 'Secondary Menu' ), 
    ) ); 
    function my_wp_nav_menu_args( $args = '' ) 
    { 
        $args['container'] = false; 
        return $args; 
    } // function 
    add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' ); 
    
    /*this function allows for the auto-creation of post excerpts*/ 
    function truncate_post($amount,$quote_after=false) { 
        $truncate = get_the_content(); 
        $truncate = apply_filters('the_content', $truncate); 
        $truncate = preg_replace('@<script[^>]*?>.*?</script>@si', '', $truncate); 
        $truncate = preg_replace('@<style[^>]*?>.*?</style>@si', '', $truncate); 
        $truncate = strip_tags($truncate); 
        $truncate = substr($truncate, 0, strrpos(substr($truncate, 0, $amount), ' ')); 
        echo $truncate; 
        echo "..."; 
        if ($quote_after) echo(''); 
    } 
    function src_simple_recent_comments($src_count = 8, $src_length=35, $pre_HTML='', $post_HTML='') { 
        global $wpdb; 
    
        $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, 
                SUBSTRING(comment_content,1,$src_length) AS com_excerpt 
            FROM $wpdb->comments 
            LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) 
            WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' 
            ORDER BY comment_date_gmt DESC 
            LIMIT $src_count"; 
        $comments = $wpdb->get_results($sql); 
    
        $output = $pre_HTML; 
        foreach ($comments as $comment) { 
            $output .= "\n\t<li><span>" . $comment->comment_author . ':</span> <a href="' . get_permalink($comment->ID) . '#comment-' . $comment->comment_ID  . '" title="on ' . get_the_title($comment->ID) . '">' . strip_tags($comment->com_excerpt) . '...</a></li>'; 
        } 
        $output .= $post_HTML; 
    
        echo $output; 
    
    } 
    
    function mdv_recent_posts($no_posts = 8, $before = '<li>', $after = "</li>\n", $hide_pass_post = true, $skip_posts = 0) { 
        global $wpdb; 
        $time_difference = get_settings('gmt_offset'); 
        $now = gmdate("Y-m-d H:i:s",time()); 
        $request = "SELECT ID, post_title, DATE_FORMAT(post_date_gmt, '%d %M %Y') as my_date FROM $wpdb->posts WHERE post_status = 'publish' "; 
        if($hide_pass_post) $request .= "AND post_password ='' "; 
        $request .= "AND post_type='post' "; 
        $request .= "ORDER BY post_date DESC LIMIT $skip_posts, $no_posts"; 
        $posts = $wpdb->get_results($request); 
        $output = ''; 
        if($posts) { 
            foreach ($posts as $post) { 
                $permalink = get_permalink($post->ID); 
                //$output .= $before .'<span>' .$post->my_date. '</span> - <a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . htmlspecialchars($post_title, ENT_COMPAT) . '">' . htmlspecialchars($post_title). '</a>'; 
                $output .= $before .'<a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . htmlspecialchars($post_title, ENT_COMPAT) . '">' . get_the_title($post->ID). '</a>'; 
                $output .= $after; 
            } 
        } else { 
            $output .= $before . "None found" . $after; 
        } 
        echo $output; 
    } 
    ?> 
    <?php 
    function swt_comment( $comment, $args, $depth ) { 
        $GLOBALS['comment'] = $comment; 
        switch ( $comment->comment_type ) : 
            case '' : 
        ?> 
        <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> 
         <div class="comment-wrap"> 
            <div class="comment-author vcard"> 
                <?php echo get_avatar( $comment, 48 ); ?> 
                <?php printf( __( '%s<br />' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?> 
                <a class="metadata" href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"> 
                <?php 
                    /* translators: 1: date, 2: time */ 
                    printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); 
                ?> 
            </div><!-- .comment-author .vcard --> 
            <div id="comment-<?php comment_ID(); ?>" <?php if (1 == $comment->user_id) { ?> class="adminclass cbody" <?php } else{ ?> class="cbody" <?php } ?>> 
            <?php if ( $comment->comment_approved == '0' ) : ?> 
                <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em> 
                <br /> 
            <?php endif; ?> 
            <div class="comment-body"><?php comment_text(); ?></div> 
            <div class="reply"> 
                <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> 
            </div><!-- .reply --> 
        </div><!-- #comment-##  --> 
    </div><!-- comment wrap --> 
    
        <?php 
                break; 
            case 'pingback'  : 
            case 'trackback' : 
        ?> 
        <li class="post pingback"> 
            <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p> 
        <?php 
                break; 
        endswitch; 
    }?>
    eğer yine hata alıyorsanız başka bir dosyada kontrolü sağlanıyor olabilir linklerin.
    Evet yine aynı hatayı veriyor.bu gidişle başka tema kullandıracaklar ya
  • 22-06-2014, 15:35:43
    #7
    Onursal Üye
    Konfor adlı üyeden alıntı: mesajı görüntüle
    Evet yine aynı hatayı veriyor.bu gidişle başka tema kullandıracaklar ya
    /includes/themeoptions.php içeriğini paylaşır mısınız veya imzamdaki skype ekleyin yardımcı olayım.
  • 22-06-2014, 18:05:49
    #8
    EftalBulut adlı üyeden alıntı: mesajı görüntüle
    /includes/themeoptions.php içeriğini paylaşır mısınız veya imzamdaki skype ekleyin yardımcı olayım.
    skype ekledim üstad.
  • 22-06-2014, 19:11:42
    #9
    Tema üreticisinin kararı bu ise kaldırmak etik değildir. Üretici değilse başka biri kafasına göre koymuşsa kaldırmak zor değildir google üzerinde arayarak çeşitli yollar bulabilirsiniz.

    Tema adını biliyorsanız Google üzerine arayın belki yapımcıda daha iyisini bulursunuz. Yağımcı kodları kendi koymuşsa kaldırmayın! Başka tema seçin.