• 22-07-2009, 04:07:13
    #10
    Üyeliği durduruldu
    kopux adlı üyeden alıntı: mesajı görüntüle
    evet değiştirdim ama birşey değişmedi.
    <?php
    
    // Options panel stylesheet
    function woothemes_admin_head() { 
        echo '<link rel="stylesheet" type="text/css" href="'.get_bloginfo('template_directory').'/functions/admin-style.css" media="screen" />';
    }
    
    $options = array();
    global $options;
    
    $GLOBALS['template_path'] = get_bloginfo('template_directory');
    
    $layout_path = TEMPLATEPATH . '/layouts/'; 
    $layouts = array();
    
    $alt_stylesheet_path = TEMPLATEPATH . '/styles/';
    $alt_stylesheets = array();
    
    $ads_path = TEMPLATEPATH . '/images/ads/';
    $ads = array();
    
    $woo_categories_obj = get_categories('hide_empty=0');
    $woo_categories = array();
    
    $woo_pages_obj = get_pages('sort_column=post_parent,menu_order');
    $woo_pages = array();
    
    if ( is_dir($layout_path) ) {
        if ($layout_dir = opendir($layout_path) ) { 
            while ( ($layout_file = readdir($layout_dir)) !== false ) {
                if(stristr($layout_file, ".php") !== false) {
                    $layouts[] = $layout_file;
                }
            }    
        }
    }    
    
    if ( is_dir($alt_stylesheet_path) ) {
        if ($alt_stylesheet_dir = opendir($alt_stylesheet_path) ) { 
            while ( ($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false ) {
                if(stristr($alt_stylesheet_file, ".css") !== false) {
                    $alt_stylesheets[] = $alt_stylesheet_file;
                }
            }    
        }
    }    
    
    if ( is_dir($ads_path) ) {
        if ($ads_dir = opendir($ads_path) ) { 
            while ( ($ads_file = readdir($ads_dir)) !== false ) {
                if((stristr($ads_file, ".jpg") !== false) || (stristr($ads_file, ".png") !== false) || (stristr($ads_file, ".gif") !== false)) {
                    $ads[] = $ads_file;
                }
            }    
        }
    }
    
    foreach ($woo_categories_obj as $woo_cat) {
        $woo_categories[$woo_cat->cat_ID] = $woo_cat->cat_name;
    }
    
    foreach ($woo_pages_obj as $woo_page) {
        $woo_pages[$woo_page->ID] = $woo_page->post_name;
    }
    
    $other_entries = array("Select a number:","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19");
    $categories_tmp = array_unshift($woo_categories, "Select a category:");
    $woo_pages_tmp = array_unshift($woo_pages, "Select a page:");
    
    // OTHER FUNCTIONS
    
    if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '<div id="%1$s" class="block widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h2>',
            'after_title' => '</h2>',
        ));
    
    function gravatar($rating = false, $size = false, $default = false, $border = false) {
        global $comment;
        $out = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($comment->comment_author_email);
        if($rating && $rating != '')
            $out .= "&amp;rating=".$rating;
        if($size && $size != '')
            $out .="&amp;size=".$size;
        if($default && $default != '')
            $out .= "&amp;default=".urlencode($default);
        if($border && $border != '')
            $out .= "&amp;border=".$border;
        echo $out;
    }
    
    // Check for widgets in widget-ready areas http://wordpress.org/support/topic/190184?replies=7#post-808787
    // Thanks to Chaos Kaizer http://blog.kaizeku.com/
    function is_sidebar_active( $index = 1){
        $sidebars    = wp_get_sidebars_widgets();
        $key        = (string) 'sidebar-'.$index;
     
        return (isset($sidebars[$key]));
    }
    
    $bm_trackbacks = array();
    $bm_comments = array();
    
    function split_comments( $source ) {
    
        if ( $source ) foreach ( $source as $comment ) {
    
            global $bm_trackbacks;
            global $bm_comments;
    
            if ( $comment->comment_type == 'trackback' || $comment->comment_type == 'pingback' ) {
                $bm_trackbacks[] = $comment;
            } else {
                $bm_comments[] = $comment;
            }
        }
    } 
    
    // Show menu in header.php
    // Exlude the pages from the slider
    function woo_show_pagemenu( $exclude="" ) {
        // Split the featured pages from the options, and put in an array
        if ( get_option('woo_ex_featpages') ) {
            $menupages = get_option('woo_featpages');
            $exclude = $menupages . ',' . $exclude;
        }
        
        $pages = wp_list_pages('sort_order=asc&title_li=&echo=0&depth=1&exclude='.$exclude);
        $pages = preg_replace('%<a ([^>]+)>%U','<a $1><span>', $pages);
        $pages = str_replace('</a>','</span></a>', $pages);
        echo $pages;
    }
    
    // Get the style path currently selected
    function woo_style_path() {
        $style = $_REQUEST[style];
        if ($style != '') {
            $style_path = $style;
        } else {
            $stylesheet = get_option('woo_alt_stylesheet');
            $style_path = str_replace(".css","",$stylesheet);
        }
        echo 'styles/'.$style_path;
    }
    
    ?>
    bu geceki son şansımı denedim kopux olmazsa yarın düzgün kafayla bakarım .
  • 22-07-2009, 04:28:38
    #11
    Üyeliği durduruldu
    temayı indirmedim ama header.php'den(notepadd++ kullanın. )

    Alıntı
    <div id="menu">
    <ul class="wrap">
    .
    .
    .
    </ul>
    </div>
    kodunu bulup silin. onun yerine:

    Alıntı
    <div id="menu">
    <ul class="wrap">
    <li class="page_item current_page_item first"><a href="http://www.dirtypsd.com"><span>Anasayfa</span></a></li>
    <li class="page_item page-item-165"><a href="http://www.dirtypsd.com/galeri/"><span>GALERİ</span></a></li>
    <li class="page_item page-item-172"><a href="http://www.dirtypsd.com/iletisim/"><span>İLETİŞİM</span></a></li>

    </ul>
    </div>
    bunu ekleyin.

    sonra tüm kodları "ctrl+x" ile kesin ve notepadd++ üst menüsünden Format-Encode in UTF-8 Without BOM seçeneğini seçip, kodları "ctrl+v" ile yapıştırın. kaydedin.
  • 22-07-2009, 04:32:23
    #12
    Üyeliği durduruldu
    TylerDurden adlı üyeden alıntı: mesajı görüntüle
    temayı indirmedim ama header.php'den(notepadd++ kullanın. )



    kodunu bulup silin. onun yerine:



    bunu ekleyin.

    sonra tüm kodları "ctrl+x" ile kesin ve notepadd++ üst menüsünden Format-Encode in UTF-8 Without BOM seçeneğini seçip, kodları "ctrl+v" ile yapıştırın. kaydedin.
    Bu manuel olur . Başka bir sayfa eklediğinde eliyle tekrar girmesi gerekir . Ama çözüm yoludur
  • 22-07-2009, 04:56:50
    #13
    Üyeliği durduruldu
    Wordpresser adlı üyeden alıntı: mesajı görüntüle
    Bu manuel olur . Başka bir sayfa eklediğinde eliyle tekrar girmesi gerekir . Ama çözüm yoludur
    Rüzgar yaptın gittin
  • 22-07-2009, 09:29:40
    #14
    Wordpresser'e ne oldu gece konuşuyoduk 2 saat uyudum geldim banlanmış

    ilk başta manuel olmasa daha iyi olur gibi diyodum ama bi deniyim sonuçta sürekli sayfa ekleyecek değilim.

    edit:

    verdiğin kodları

    <div id="menu">
            <ul class="wrap">
                    <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
                    <li class="<?php echo $highlight; ?> first"><a href="<?php bloginfo('url'); ?>"><span>Anasayfa</span></a></li>
                    <?php woo_show_pagemenu( get_option('woo_menupages') ); ?>
            </ul>
        </div>
    koduyla değiştirdiğimde site bozuluyor.