Anasayfa FORUMLAR Üye Girişi Dosyalar Dersler İpuçları Yardımcı Araçlar Hakkımızda
KİMLER BAĞLI
Toplam Üye: 32638
Aktif Üye: 0
Aktif Ziyaretçi: 826
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 Wp ye video ekleniyormu..
(8465 okuma, 2 yanıt)
 WordPress 3.0 yayınlandı...
(7614 okuma, 5 yanıt)
 Wordpresimizi seolu yapal..
(6149 okuma, 3 yanıt)
 wordpress için hangi foru..
(8183 okuma, 7 yanıt)
 Sağ ve Sol tarafa sabit r..
(8284 okuma, 4 yanıt)
 nukedeki forumu wordpress..
(5265 okuma, 1 yanıt)
 Smf forumu Wordpress'e çe..
(6332 okuma, 3 yanıt)
 Nuke siteleriniz wordpres..
(14544 okuma, 15 yanıt)
 Wordpress ping listesi..
(8446 okuma, 5 yanıt)
 Wordpress Adsense Tık Say..
(7683 okuma, 4 yanıt)
 Wordpress Blogunuz İçin Ö..
(6944 okuma, 3 yanıt)
 .htaccess ile yönlendirme..
(6973 okuma, 3 yanıt)
 wordpress hakkında? kurul..
(7971 okuma, 6 yanıt)
 Wordpress SMF Köprüsü Ekl..
(11030 okuma, 8 yanıt)
 Wordpress Türkçe Karakter..
(8086 okuma, 4 yanıt)
 Wordpress.com sansürü kal..
(5830 okuma, 2 yanıt)
 Wordpress'den Blogger'a g..
(4502 okuma, 0 yanıt)
 Wordpress'de benzer yazıl..
(4446 okuma, 0 yanıt)
 Sidebar üye grişi yapmadı..
(5879 okuma, 1 yanıt)
 Wordpress 2.5'de dosya up..
(5625 okuma, 1 yanıt)
 Alt sayfa açmak?..
(9914 okuma, 8 yanıt)
 Wp Site indekslenirken bi..
(5936 okuma, 3 yanıt)
 WordPress Admin Koruma Du..
(11535 okuma, 10 yanıt)
 Wordpress imageshack uplo..
(7720 okuma, 5 yanıt)
 Güzel bir tema..
(18966 okuma, 16 yanıt)
 Wordpress Sayfa Sayaç Ekl..
(9504 okuma, 4 yanıt)
 Wordpressi nuke ye entegr..
(7037 okuma, 3 yanıt)
 ek$isözlük,wikipedia,goog..
(6366 okuma, 3 yanıt)
 Wordpess de bazı sorunlar..
(6304 okuma, 3 yanıt)
 Sayfayı Ftp'ye Gönderiyor..
(4382 okuma, 0 yanıt)
 Youtube Videolarını Kendi..
(4722 okuma, 0 yanıt)
 Wordpesss Intro..
(5757 okuma, 1 yanıt)
 Wordpress Ajax Search..
(5023 okuma, 0 yanıt)
 Wordpress İçin Nasıl Bir ..
(8374 okuma, 5 yanıt)
 WordPrexy: Engellemeye al..
(4706 okuma, 0 yanıt)
 Techblog Wordpress Teması..
(5623 okuma, 1 yanıt)
 sig2feed 1.1 yazılarınıza..
(6098 okuma, 2 yanıt)
 Wordpress Adsense Yerleşi..
(4917 okuma, 0 yanıt)
 WordPress 2.3 Beta 2..
(5307 okuma, 1 yanıt)
 wordpress.com mahkeme kar..
(17356 okuma, 14 yanıt)
 e-sayfa.com türkçe blog s..
(4752 okuma, 0 yanıt)
 local hostta wordpress ku..
(7312 okuma, 3 yanıt)
 arka plan renk sorunu..
(8107 okuma, 4 yanıt)
 Wordpress Metin Seçme Eng..
(6633 okuma, 1 yanıt)
 Wp için En iyi Başlık Sis..
(10006 okuma, 7 yanıt)
 Wp için otomatik Sitemap ..
(10783 okuma, 8 yanıt)
 Hızlı Konu Eklemek için B..
(7890 okuma, 4 yanıt)
 Wordpress İçin Arşiv Sayf..
(5489 okuma, 1 yanıt)
 Wordpress 2.1.2 Çıktı..
(4827 okuma, 0 yanıt)
 Blog Hoster 2.1 kurulumu..
(4769 okuma, 0 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - Site Map eklentisi "wordpress"
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


Site Map eklentisi "wordpress"

 
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Wordpress
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
Ertugrul
Mesaj: 500+
Mesaj: 500+





Kayıt: Jun 05, 2004
Mesajlar: 776

MesajTarih: 2006-01-16, 12:36:28    Mesaj konusu: Site Map eklentisi "wordpress" Alıntıyla Cevap Gönder

merhabalar

wordpress bloglarınız için şiddetle tawsiye ettiğim bir eklenti.
hem arama motorlarının botları için işe yarıyor
hemde kullanıcıların siteyi daha rahat dolaşabilmesi için bir site haritası oluşturuyor.

örnek: http://www.dagondesign.com/sitemap/

dd-sitemap-gen.php isminde bir php dosyası oluşturup
aşağıda ki kodları ekleyin

dosyaylı plugins klasörüne atıp admin panelinden aktif edin.

Kod:

<?php
/*
Plugin Name: Dagon Design Sitemap Generator
Plugin URI: http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/
Description: Generates a customizable sitemap containing all posts and pages. (Configure options in your admin panel)
Author: Aleister
Version: 2.1
Author URI: http://www.dagondesign.com
*/



// Setup defaults if options do not exist
add_option('ddsg_items_per_page', '30');
add_option('ddsg_p_or_p_first', 'posts'); // (posts, pages)
add_option('ddsg_hide_future', TRUE);
add_option('ddsg_hide_drafts', TRUE);
add_option('ddsg_comments_on_posts', TRUE);
add_option('ddsg_comments_on_pages', FALSE);
add_option('ddsg_show_zero_comments', FALSE);
add_option('ddsg_hide_duplicates', TRUE);
add_option('ddsg_blank_post_titles', 'notitle'); // (notitle, excerpt, ignore)
add_option('ddsg_page_nav', '1'); // (1, 2)
add_option('ddsg_page_nav_where', 'top'); // (top, bottom, both)
add_option('ddsg_xml_path', '');
add_option('ddsg_xml_where', 'last'); // (last, every)


function ddsg_add_pages() {
   if (function_exists('add_options_page')) {
      add_options_page('Dagon Design Sitemap Generator', 'DDSitemapGen', 8, __FILE__, 'ddsg_options_page');   
   }      
}



function ddsg_options_page() {

   if (isset($_POST['info_update'])) {

      ?><div id="message" class="updated fade"><p><strong><?php

      $ipp_check = 0;
      if (is_numeric($_POST["ddsg_items_per_page"])) {
         if ((int)$_POST["ddsg_items_per_page"] > 0) {
            $ipp_check = $_POST["ddsg_items_per_page"];
         }
      }

      update_option('ddsg_items_per_page', (string) $ipp_check);
      update_option('ddsg_hide_future', (bool) $_POST["ddsg_hide_future"]);
      update_option('ddsg_hide_drafts', (bool) $_POST["ddsg_hide_drafts"]);
      update_option('ddsg_comments_on_posts', (bool) $_POST["ddsg_comments_on_posts"]);
      update_option('ddsg_comments_on_pages', (bool) $_POST["ddsg_comments_on_pages"]);
      update_option('ddsg_show_zero_comments', (bool) $_POST["ddsg_show_zero_comments"]);
      update_option('ddsg_hide_duplicates', (bool) $_POST["ddsg_hide_duplicates"]);
      update_option('ddsg_blank_post_titles', (string) $_POST["ddsg_blank_post_titles"]);
      update_option('ddsg_p_or_p_first', (string) $_POST["ddsg_p_or_p_first"]);      
      update_option('ddsg_page_nav', (string) $_POST["ddsg_page_nav"]);
      update_option('ddsg_page_nav_where', (string) $_POST["ddsg_page_nav_where"]);
      update_option('ddsg_xml_path', (string) $_POST["ddsg_xml_path"]);
      update_option('ddsg_xml_where', (string) $_POST["ddsg_xml_where"]);
               
      echo "Configuration Updated!";

       ?></strong></p></div><?php

   } ?>

   <div class=wrap>

   <h2>Dagon Design Sitemap Generator</h2>

   <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
   <input type="hidden" name="info_update" id="info_update" value="true" />

   <fieldset class="options">
   <legend>General Options</legend>

   <table width="100%" border="0" cellspacing="0" cellpadding="6">
   <tr>
      <td width="45%" align="right">Number of items to display on each page: </td>
      <td align="left"><input name="ddsg_items_per_page" type="text" size="4" value="<?php echo get_option('ddsg_items_per_page') ?>"/> &nbsp; (0 for unlimited)</td>
   </tr>
   <tr>
      <td width="45%" align="right">Show posts or pages first: </td>
      <td align="left">
      <label>
         <input name="ddsg_p_or_p_first" type="radio" value="posts" <?php if (get_option('ddsg_p_or_p_first') == "posts") echo "checked='checked'"; ?> />&nbsp;&nbsp; Posts<br />
      </label>
       <label>
         <input name="ddsg_p_or_p_first" type="radio" value="pages" <?php if (get_option('ddsg_p_or_p_first') == "pages") echo "checked='checked'"; ?>/>&nbsp;&nbsp;   Pages
      </label>
      </td>
   </tr>
   <tr>
      <td width="45%" align="right">Hide future-dated posts: </td>
      <td align="left"><input type="checkbox" name="ddsg_hide_future" value="checkbox" <?php if (get_option('ddsg_hide_future')) echo "checked='checked'"; ?>/></td>
   </tr>
   <tr>
      <td width="45%" align="right">Hide drafts: </td>
      <td align="left"><input type="checkbox" name="ddsg_hide_drafts" value="checkbox" <?php if (get_option('ddsg_hide_drafts')) echo "checked='checked'"; ?>/></td>
   </tr>
   <tr>
      <td width="45%" align="right">Show comment count for posts: </td>
      <td align="left"><input type="checkbox" name="ddsg_comments_on_posts" value="checkbox" <?php if (get_option('ddsg_comments_on_posts')) echo "checked='checked'"; ?>/></td>
   </tr>
   <tr>
      <td width="45%" align="right">Show comment count for pages:</td>
      <td align="left"><input type="checkbox" name="ddsg_comments_on_pages" value="checkbox" <?php if (get_option('ddsg_comments_on_pages')) echo "checked='checked'"; ?>/></td>
   </tr>
   <tr>
      <td width="45%" align="right">If displaying comment counts, show when zero: </td>
      <td align="left"><input type="checkbox" name="ddsg_show_zero_comments" value="checkbox" <?php if (get_option('ddsg_show_zero_comments')) echo "checked='checked'"; ?>/></td>
   </tr>
   <tr>
      <td width="45%" align="right">Show multiple-category posts only in first category: </td>
      <td align="left"><input type="checkbox" name="ddsg_hide_duplicates" value="checkbox" <?php if (get_option('ddsg_hide_duplicates')) echo "checked='checked'"; ?>/></td>
   </tr>
   <tr>
      <td width="45%" align="right">For posts without titles: </td>
      <td align="left">
      <label>
         <input name="ddsg_blank_post_titles" type="radio" value="notitle" <?php if (get_option('ddsg_blank_post_titles') == "notitle") echo "checked='checked'"; ?> />&nbsp;&nbsp; Display '(no title)'<br />
      </label>
      <label>
         <input name="ddsg_blank_post_titles" type="radio" value="excerpt" <?php if (get_option('ddsg_blank_post_titles') == "excerpt") echo "checked='checked'"; ?> />&nbsp;&nbsp; Display first few words of post<br />
      </label>
       <label>
         <input name="ddsg_blank_post_titles" type="radio" value="ignore" <?php if (get_option('ddsg_blank_post_titles') == "ignore") echo "checked='checked'"; ?>/>&nbsp;&nbsp;   Ignore post
      </label>
      </td>
   </tr>
   <tr>
      <td width="45%" align="right">Sitemap navigation method: </td>
      <td align="left">
      <label>
         <input name="ddsg_page_nav" type="radio" value="1" <?php if (get_option('ddsg_page_nav') == 1) echo "checked='checked'"; ?> />&nbsp;&nbsp; Page 2 of 5 : <a href="#">Previous</a> : <a href="#">Next</a><br />
      </label>
       <label>
         <input name="ddsg_page_nav" type="radio" value="2" <?php if (get_option('ddsg_page_nav') == 2) echo "checked='checked'"; ?>/>&nbsp;&nbsp;   Pages: <a href="#">1</a> 2 <a href="#">3</a> <a href="#">4</a> <a href="#">5</a>
      </label>
      </td>
   </tr>   
   <tr>
      <td width="45%" align="right">Show sitemap navigation: </td>
      <td align="left">
      <label>
         <input name="ddsg_page_nav_where" type="radio" value="top" <?php if (get_option('ddsg_page_nav_where') == "top") echo "checked='checked'"; ?> />&nbsp;&nbsp; At the top<br />
      </label>
      <label>
         <input name="ddsg_page_nav_where" type="radio" value="bottom" <?php if (get_option('ddsg_page_nav_where') == "bottom") echo "checked='checked'"; ?> />&nbsp;&nbsp; At the bottom<br />
      </label>
       <label>
         <input name="ddsg_page_nav_where" type="radio" value="both" <?php if (get_option('ddsg_page_nav_where') == "both") echo "checked='checked'"; ?>/>&nbsp;&nbsp; At the top and bottom
      </label>
      </td>
   </tr>
   </table>
   </fieldset>
   

   <fieldset class="options">
   <legend>XML Sitemap Options</legend>

   <p><em>&nbsp;&nbsp;&nbsp;If you use a plugin to generate a XML sitemap, you can have the sitemap display a link to it.</em></p>

   <table width="100%" border="0" cellspacing="0" cellpadding="6">
   <tr>
      <td width="45%" align="right">Full path to XML sitemap: </td>
      <td align="left"><p><input name="ddsg_xml_path" type="text" size="40" value="<?php echo get_option('ddsg_xml_path') ?>"/></p></td>
   </tr>
   <tr>
      <td width="45%" align="right">Show the XML sitemap link: </td>
      <td align="left">
      <label>
         <input name="ddsg_xml_where" type="radio" value="last" <?php if (get_option('ddsg_xml_where') == 'last') echo "checked='checked'"; ?> />&nbsp;&nbsp;At the end of the last page <br />
      </label>
      <label>
         <input name="ddsg_xml_where" type="radio" value="every" <?php if (get_option('ddsg_xml_where') == 'every') echo "checked='checked'"; ?>/> &nbsp;&nbsp;At the end of every page
      </label>
      </td>
   </tr>
   </table>

   <div class="submit">
      <input type="submit" name="info_update" value="<?php _e('Update options'); ?> &raquo;" />
   </div>
   </form>
   </div><?php
}




function ddsg_show_nav($the_output, $total_pages, $page_navigation, $start_page) {

   global $wp_query;

   if ($total_pages > 1) {
      if ($page_navigation == 1) {


         $the_output .= "<p><b>Page " . $start_page . " of " . $total_pages . "</b>";

         if ($start_page > 1) {
            $the_output .= " : <a href='/index.php?page_id=" . $wp_query->post->ID . "&amp;pg=" . ($start_page - 1) . "'>Previous Page</a>";
         }
         if ($start_page < $total_pages) {
            $the_output .= " : <a href='/index.php?page_id=" . $wp_query->post->ID . "&amp;pg=" . ($start_page + 1) . "'>Next Page</a>";
         }
         $the_output .= "</p>";

      } else if ($page_navigation == 2) {
         $the_output .= "<p><b>Pages: </b>";
         for ($i = 1; $i <= $total_pages; $i++) {
            if ($i == $start_page) {
               $the_output .= $i . " ";
            } else {
               $the_output .= "<a href='/index.php?page_id=" . $wp_query->post->ID . "&amp;pg=" . $i . "'>" . $i . "</a> ";
            }
         }
         $the_output .= "</p>";
      }
   }

   return $the_output;
}


function ddsg_show_pages($the_output, $pages, $comments_on_pages, $show_zero_comments) {

   global $wpdb;
   global $table_prefix;

   if (sizeof($pages) > 0) {
      $the_output .= "<h3>Pages</h3>";
      $the_output .= "<ul>";
      foreach ($pages as $page) {


         $num_comments = $wpdb->get_var("SELECT COUNT(*) FROM " . $table_prefix . "comments WHERE comment_post_ID = " . $page->ID);


         $output_string = "<li><a href='" . get_permalink($page->ID) . "'>". $page->post_title . "</a>";
         if (!$comments_on_pages || ((!$show_zero_comments) && ($num_comments == 0))) {
            $output_string = $output_string . "</li>";      
         } else {
            $output_string = $output_string . " (" . $num_comments . ")</li>";
         }
         $the_output .= $output_string;
      }
      $the_output .= "</ul>";
   }

   return $the_output;
}

function ddsg_show_posts($the_output, $posts, $comments_on_posts, $show_zero_comments, $blank_post_titles) {

   global $wpdb;
   global $table_prefix;

   $last_cat = "";
   $first_pass = 1;

   if (sizeof($posts) > 0) {
      foreach ($posts as $post) {

         if ($last_cat != $post->cat_name) {
            if ($first_pass) {
               $first_pass = 0;
            } else {
               $the_output .= "</ul>";
            }
            $the_output .= "<h3>" . $post->cat_name . "</h3>";
            $the_output .= "<ul>";
            $last_cat = $post->cat_name;
         }

         
         if (trim($post->post_title)) {
            $the_post_title = $post->post_title;
         } else if ($blank_post_titles == "notitle") {
            $the_post_title = "(no title)";
         } else if ($blank_post_titles == "excerpt") {
            $the_post_title = strip_tags(substr($wpdb->get_var("SELECT post_content FROM " . $table_prefix . "posts WHERE ID=" . $post->ID), 0, 30)) . "...";
         }    
         // if set to ignore, they would not be here anyway


         $output_string = "<li><a href='" . get_permalink($post->ID) . "'>". $the_post_title . "</a>";
         $num_comments = $wpdb->get_var("SELECT COUNT(*) FROM " . $table_prefix . "comments WHERE comment_post_ID = " . $post->ID);
         if (!$comments_on_posts || ((!$show_zero_comments) && ($num_comments == 0))) {
            $output_string = $output_string . "</li>";      
         } else {
            $output_string = $output_string . " (" . $num_comments . ")</li>";
         }

         $the_output .= $output_string;

      
      }

      $the_output .= "</ul>";
   }

   return $the_output;
}


function ddsg_create() {

   global $wpdb;
   global $wp_query;
   global $table_prefix;

   $items_per_page = get_option('ddsg_items_per_page');
   $p_or_p_first = get_option('ddsg_p_or_p_first');
   $hide_future = get_option('ddsg_hide_future');
   $hide_drafts = get_option('ddsg_hide_drafts');
   $comments_on_posts = get_option('ddsg_comments_on_posts');
   $comments_on_pages = get_option('ddsg_comments_on_pages');
   $show_zero_comments = get_option('ddsg_show_zero_comments');
   $hide_duplicates = get_option('ddsg_hide_duplicates');
   $blank_post_titles = get_option('ddsg_blank_post_titles');
   $page_navigation = get_option('ddsg_page_nav');
   $page_navigation_where = get_option('ddsg_page_nav_where');
   $xml_path = get_option('ddsg_xml_path');
   $xml_where = get_option('ddsg_xml_where');

   if ($items_per_page == 0) {
      $items_per_page = 100000000;
   }

   // Determine current page
   $start_page = 1;
   if (isset($_GET['pg'])) {
      if (is_numeric($_GET['pg'])) {
         $start_page = $_GET['pg'];      
      }
   }

   $start_item = ($start_page - 1) * $items_per_page;

   // Extra checks
   $extra_checks = "";
   if ($hide_future) {
      $extra_checks = $extra_checks . " AND post_date < NOW() ";
   }
   if ($hide_drafts) {
      $extra_checks = $extra_checks . " AND post_status != 'draft' ";
   }

   $count_type = "*";
   if ($hide_duplicates) {
      $count_type = "DISTINCT ID";
   }


   // Do we check blank titled posts?
   if ($blank_post_titles == "notitle") {
      $blank_title_sql = " ";
   } else if ($blank_post_titles == "ignore") {
      $blank_title_sql = " post_title != '' AND ";

   }


   // Count number of posts and pages (used to decide number of sitemap pages)
   $count_pages = $wpdb->get_var("SELECT COUNT(" . $count_type . ") FROM " . $table_prefix . "posts, " . $table_prefix . "post2cat WHERE " . $blank_title_sql . $table_prefix . "posts.ID = " . $table_prefix . "post2cat.post_id AND post_status = 'static'" . $extra_checks);
   $count_posts = $wpdb->get_var("SELECT COUNT(" . $count_type . ") FROM " . $table_prefix . "posts, " . $table_prefix . "post2cat WHERE " . $blank_title_sql . $table_prefix . "posts.ID = " . $table_prefix . "post2cat.post_id AND post_status != 'static' " . $extra_checks);
   $count_total = $count_pages + $count_posts;
   $total_pages = ceil($count_total / $items_per_page);

   
   // prepare output
   $the_output = "";

   if ($hide_duplicates) {
      $extra_checks = $extra_checks . " GROUP BY ID ";
   }



   if ($p_or_p_first == "pages") {

      $pages = $wpdb->get_results("SELECT ID, post_name, post_title FROM " . $table_prefix . "posts WHERE " . $blank_title_sql . " post_status = 'static' " . $extra_checks . " ORDER BY post_title ASC LIMIT " . $items_per_page . " OFFSET " . $start_item);
      if (sizeof($pages) <= $items_per_page) {
         $items_per_page -= sizeof($pages);
      }
      if (sizeof($pages) > 0) {
         $start_item = 0;
      } else {
         $start_item = $start_item - $count_pages;
      }
      $posts = $wpdb->get_results("SELECT ID, cat_name, post_title FROM " . $table_prefix . "posts, " . $table_prefix . "post2cat, " . $table_prefix . "categories WHERE " . $blank_title_sql . "post_status != 'static' AND " . $table_prefix . "posts.ID = " . $table_prefix . "post2cat.post_id AND " . $table_prefix . "post2cat.category_id = " . $table_prefix . "categories.cat_ID " . $extra_checks . " ORDER BY " . $table_prefix . "categories.cat_name ASC LIMIT " . $items_per_page . " OFFSET " . $start_item);

   } else {

      $posts = $wpdb->get_results("SELECT ID, cat_name, post_title FROM " . $table_prefix . "posts, " . $table_prefix . "post2cat, " . $table_prefix . "categories WHERE " . $blank_title_sql . "post_status != 'static' AND " . $table_prefix . "posts.ID = " . $table_prefix . "post2cat.post_id AND " . $table_prefix . "post2cat.category_id = " . $table_prefix . "categories.cat_ID " . $extra_checks . " ORDER BY " . $table_prefix . "categories.cat_name ASC LIMIT " . $items_per_page . " OFFSET " . $start_item);
      if (sizeof($posts) <= $items_per_page) {
         $items_per_page -= sizeof($posts);
      }
      if (sizeof($posts) > 0) {
         $start_item = 0;
      } else {
         $start_item = $start_item - $count_posts;
      }
      $pages = $wpdb->get_results("SELECT ID, post_name, post_title FROM " . $table_prefix . "posts WHERE " . $blank_title_sql . "post_status = 'static' " . $extra_checks . " ORDER BY post_title ASC LIMIT " . $items_per_page . " OFFSET " . $start_item);

   }


   // Navigation on top?
   if ($page_navigation_where == "top" || $page_navigation_where == "both") {
      $the_output = ddsg_show_nav($the_output, $total_pages, $page_navigation, $start_page);
   }


   if ($p_or_p_first == "pages") {
      $the_output = ddsg_show_pages($the_output, $pages, $comments_on_pages, $show_zero_comments);
      $the_output = ddsg_show_posts($the_output, $posts, $comments_on_posts, $show_zero_comments, $blank_post_titles);
   } else {
      $the_output = ddsg_show_posts($the_output, $posts, $comments_on_posts, $show_zero_comments, $blank_post_titles);
      $the_output = ddsg_show_pages($the_output, $pages, $comments_on_pages, $show_zero_comments);
   }


   // Navigation on bottom?
   if ($page_navigation_where == "bottom" || $page_navigation_where == "both") {
      $the_output = ddsg_show_nav($the_output, $total_pages, $page_navigation, $start_page);
   }






   // Show link to XML sitemap?
   if (trim($xml_path)) {
      if (($xml_where == 1) OR ($start_page == $total_pages)) {
         $the_output .= "<br /><p><a href='" . $xml_path . "'>View XML Sitemap</a></p>";
      }
   }

   $the_output .= "<br /><p align=\"right\" style=\"font-size:80%;color:#777777;\">sitemap plugin by <a href=\"http://www.dagondesign.com\">dagondesign.com</a></p>";

   return $the_output;
}


function ddsg_generate($content) {
   if (strpos($content, "<!-- ddsitemapgen -->")) {

      
      // if paragraph tags are automatically wrapped around the ddsitemapgen comment, they are removed here

      $content_array = array();
      $content_array = split("<!-- ddsitemapgen -->", $content);
      $content_array[0] = rtrim(trim($content_array[0]), "<p>");   
      $content_array[1] = ltrim(trim($content_array[1]), "</p>");   
      return ($content_array[0] . ddsg_create() . $content_array[1]);

   } else {
      return $content;
   }
}




add_filter('the_content', 'ddsg_generate');
add_action('admin_menu', 'ddsg_add_pages');

?>



Bu eklenti www.dagondesign.com tarafından hazırlanmıştır.

Kaynak: www.wordpress.com
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-04-20, 07:28:53    Mesaj konusu: Forum Arası Reklamlar


Başa dön
KUROCK
Mesaj: 1+
Mesaj: 1+





Kayıt: Mar 27, 2005
Mesajlar: 38
Konum: Eskişehir

MesajTarih: 2006-01-31, 02:13:56    Mesaj konusu: Alıntıyla Cevap Gönder

Bu dosyayı includes klasörünün içindeki pluginse gönderdim ancak admin panelinden nasıl aktif edeceğiz...
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder E-posta gönder Yazarın web sitesini ziyaret et MSN Messenger
Önceki mesajları göster:   
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Wordpress Tüm zamanlar GMT + 3 Saat
1. sayfa (Toplam 1 sayfa)

 
Geçiş Yap:  
Bu forumda yeni başlıklar açamazsınız
Bu forumdaki başlıklara cevap veremezsiniz
Bu forumdaki mesajlarınızı değiştiremezsiniz
Bu forumdaki mesajlarınızı silemezsiniz
Bu forumdaki anketlerde oy kullanamazsınız

Benzer Konular

Başlık Yazar Forum Cevaplar Tarih
Yeni mesaj yok site düzenlemesi ücretli gruphaykiris Ücret Karşılığı 2 2010-07-18, 18:49:31 Son Mesajı Görüntüle
Yeni mesaj yok Site İndex'ine resim ekleme cuneytsonmez HTML Kod Örnekleri 6 2010-07-17, 01:02:43 Son Mesajı Görüntüle
Yeni mesaj yok Herhangi Bir Site Hostundan Dosya Çek... qombat Php Nuke Sorunlarınız 2 2010-07-15, 17:17:07 Son Mesajı Görüntüle
Yeni mesaj yok CİLGİNİZ.NET PHPNUKE site satilir i... alphae Ücret Karşılığı 4 2010-07-03, 04:21:06 Son Mesajı Görüntüle
Yeni mesaj yok Site ana sayfası çok geç açılıyor. anzerhoneybee Php Nuke Sorunlarınız 1 2010-07-01, 22:38:33 Son Mesajı Görüntüle

Copyright © 2002-2024 Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright