• 27-02-2009, 19:40:13
    #1
    Arkadaşlar sitemin anasayfasında slayt resim eklentisi var ama sadece anasayfada çıkıyor ben onu her sayfada çıkmasını istiyorum yine bulundugu yerde olacak

    Sitem imzamda
  • 27-02-2009, 19:46:03
    #2
    Misafir
    Slaytın include gibi bir kodla oraya çekildiği bir kod vardır onu diğer sayfalardada uygulaman lazım sanırım
  • 27-02-2009, 19:59:31
    #3
    home.php deki kodu header.php ye ekle kodu home.php en üstte olması lazım..
  • 27-02-2009, 20:31:00
    #4
    Header,im şu şekilde nereye eklemem lazım

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <meta name="description" content="Turkiyeden ve Dunyadan Teknolojik Cihazlar Yaşamdan Kesitler Uzerine Yazilar - Haberler - Yorumlar " />
    <meta name="distribution" content="global" />
    <meta name="robots" content="index, follow" />
    <meta name="language" content="tr, sv" />
    
    <title>
    <?php wp_title(''); ?>
    <?php if(wp_title(' ', false)) { echo ' | '; } ?>
    <?php bloginfo('name'); ?>
    </title>
    <META NAME="Keywords" CONTENT="<?php wp_title(''); ?>  ">
    <META NAME="Description" CONTENT="<?php wp_title(''); ?>  ">
    <!-- leave this for stats please -->
    
    <link rel="Shortcut Icon" href="<?php echo get_settings('home'); ?>/wp-content/themes/church_10/images/favicon.ico" type="image/x-icon" />
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php wp_head(); ?>
    
    <style type="text/css" media="screen"><!-- @import url( <?php bloginfo('stylesheet_url'); ?> ); --></style>
    
    <script type="text/javascript"><!--//--><![CDATA[//><!--
    sfHover = function() {
        if (!document.getElementsByTagName) return false;
        var sfEls = document.getElementById("nav").getElementsByTagName("li");
    
        // if you only have one main menu - delete the line below //
        var sfEls1 = document.getElementById("subnav").getElementsByTagName("li");
        //
    
        for (var i=0; i<sfEls.length; i++) {
            sfEls[i].onmouseover=function() {
                this.className+=" sfhover";
            }
            sfEls[i].onmouseout=function() {
                this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
            }
        }
    
        // if you only have one main menu - delete the "for" loop below //
        for (var i=0; i<sfEls1.length; i++) {
            sfEls1[i].onmouseover=function() {
                this.className+=" sfhover1";
            }
            sfEls1[i].onmouseout=function() {
                this.className=this.className.replace(new RegExp(" sfhover1\\b"), "");
            }
        }
        //
    
    }
    if (window.attachEvent) window.attachEvent("onload", sfHover);
    //--><!]]></script>
    
    </head>
    
    <body>
    
    <div id="wrap">
    
        <div id="topnavbar">
        
            <div class="topnavbarleft">
                <p><script src="<?php bloginfo('template_url'); ?>/javascript/date.js" type="text/javascript"></script></p>
            </div>
    
            <div class="topnavbarright">
            <p><a href="<?php bloginfo('rss_url'); ?>"><img style="vertical-align:middle" src="<?php bloginfo('template_url'); ?>/images/rss.gif" alt="Abone ol <?php bloginfo('name'); ?>" /></a><a href="<?php bloginfo('rss_url'); ?>">YAZILAR</a><a href="<?php bloginfo('comments_rss2_url'); ?>"><img style="vertical-align:middle;margin-left:10px;" src="<?php bloginfo('template_url'); ?>/images/rss.gif" alt="Abone ol <?php bloginfo('name'); ?>" /></a><a href="<?php bloginfo('comments_rss2_url'); ?>">YORUMLAR</a></p>
            </div>
        </div>
    
    
    <div id="header">
    
        <div class="headerleft">
            <a href="<?php echo get_settings('home'); ?>/"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="<?php bloginfo('description'); ?>" /></a>
        </div>
        
    
        <!-- 468x60 reklam.-->
            
        <div class="headerright">
            <?php $ad_468 = get_option('revchurch_ad_468'); echo stripslashes($ad_468); ?>
        </div>
    
    </div>
    
    <div id="navbar">
    
        <div id="navbarleft">
            <ul id="nav">
                <li><a href="<?php echo get_settings('home'); ?>">Ana Sayfa</a></li>
                <?php wp_list_pages('title_li=&depth=3&sort_column=menu_order'); ?>
            </ul>
        </div>
        
        <div id="navbarright">
             
     
    
        </div>
        
    </div>
    
    <div style="clear:both;"></div>
    
    <div id="subnavbar">
    
        
        
    </div>
    <div style="clear:both;"></div>
  • 27-02-2009, 22:53:03
    #5
    Kimlik doğrulama veya yönetimden onay bekliyor.
    home.php dosyan aç orda
    <?php include (ABSPATH . '/wp-content/plugins/content-gallery/gallery.php'); ?>
    gibi birkod vardır..

    onu örneğin hangi sayfanda göstermek istiyorsan o kısma yapışltır..

    o temada ana indx şablonu olan index.php i aç.. orda yazılar çıkmadanöneki kısma koyabilirdin..

    arşiv kısımlarındada aynı kodu kullanarak gösterebilisin..
  • 27-02-2009, 23:40:28
    #6
    Bu eklentinin kodu farklı sizin verdiginiz gibi degil daha kısa ama index.php,de hala nereye koyacagımı bulamadım anasayfada tam şu oldugu yerde çıkmasını istiyorum yapamadım bir türlü
  • 27-02-2009, 23:45:36
    #7
    Misafir
    Eğer headerde açmıyorsa şuan anasayfadakini, header.php de şu koddan sonra eklenti kodunu eklermisin

    <div id="navbarleft">
            <ul id="nav">
                <li><a href="<?php echo get_settings('home'); ?>">Ana Sayfa</a></li>
                <?php wp_list_pages('title_li=&depth=3&sort_column=menu_order'); ?>
            </ul>
        </div>