Arkadaslar eger wordpress sayfalarinizda yorumlara izinvermiyorsaniz ve hicbir sekilde sayac eklentileri (okunma sayisi,rating,degerlendirme gibi vs.) kullanmiyorsaniz sayfalarinizi gercek html sayfalarina dönüstürmeniz sizin yarariniza olacaktir.
Benim örnegin video sitem var,videolari otomatik olarak cekiyor (youtube,metacafe,dailymotion vs.)
Siteyi kurali 5 ay oldu ve yaklasik 150.000 video cektim siteye...
5 ay boyunca siteye günlük 20-30 ziyaretciden fazla giren olmuyordu.
Biraz aradim internette ve yabanci bir sitede cache kodlari buldum ve bu kodlarda ufak degisiklikler yaptim.
All in One Seo ve related post gibi sayacsiz eklentiler de kullaniyorum.
Artik tekil sayfalari single.php) gercek html sayfalarina otomatik olarak dönüstürüyorum.
Bu islemi yapmaya baslayali sadece 22 gün oldu ve günlük ziyaretci sayim 20-30 dan 5k ile 8k arasina firladi.
Günlük adsense den ortalama 5 euro ya cikti gelirim.
Tabiki bu birsey degil ama insallah devmli kalir.
Ben yararlanabiliyorsam baskalarida yararlanabilir belki..
Belki baskalarinin da isine yarar.
Iste size benim single.php nin örnegi:
Siteme ait olan kisimlari xxx ile degistirdim.
Cace islemini yapan kisimlar en üst deki:
ile en altdaki:
kodlardir.
Bu kodun orijinalinde zaman ayari da vardi.. yani belli bir süre sonra cachelenmis sayfalari silebiliyorduk ama benim hicbir sayac tutmadigima göre ve yorum fonksiyonunuda iptal ettigime göre zaman ayarini gereksiz gördüm ve sayfalar gercek html sayfalarina dönüstürülmüs olarak kaliyor serverde.
Benim örnegin video sitem var,videolari otomatik olarak cekiyor (youtube,metacafe,dailymotion vs.)
Siteyi kurali 5 ay oldu ve yaklasik 150.000 video cektim siteye...
5 ay boyunca siteye günlük 20-30 ziyaretciden fazla giren olmuyordu.
Biraz aradim internette ve yabanci bir sitede cache kodlari buldum ve bu kodlarda ufak degisiklikler yaptim.
All in One Seo ve related post gibi sayacsiz eklentiler de kullaniyorum.
Artik tekil sayfalari single.php) gercek html sayfalarina otomatik olarak dönüstürüyorum.
Bu islemi yapmaya baslayali sadece 22 gün oldu ve günlük ziyaretci sayim 20-30 dan 5k ile 8k arasina firladi.
Günlük adsense den ortalama 5 euro ya cikti gelirim.
Tabiki bu birsey degil ama insallah devmli kalir.
Ben yararlanabiliyorsam baskalarida yararlanabilir belki..
Belki baskalarinin da isine yarar.
Iste size benim single.php nin örnegi:
Siteme ait olan kisimlari xxx ile degistirdim.
PHP:
<?php $cachefile = "./". $_SERVER['REQUEST_URI'];
if (file_exists($cachefile)) {
include($cachefile);
} else {
ob_start();
?>
<?php get_header(); ?>
<div id="content_top"><!-- nothing to see here --></div>
<div id="content_wrapper">
<div id="main">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php get_sidebar(); ?>
<div class="the-single-post <?php sticky_class(); ?>" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<br />
<?php mvb_embed_code('the_ID()', 468, 350); ?>
<br />
<p>
<!-- Share This Button -->
<a href="http://twitter.com/home/?status=<?php the_title() ?>+<?php the_permalink() ?>/" title="Tweet this" target="_blank"><img src="http://www.xxx.com/images/share/twitter.gif" alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a>
<a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>/&title=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/digg.gif" alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a>
<a href="http://en.reddit.com/submit?url=<?php the_permalink() ?>/&title=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/reddit.gif" alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a>
<a href="http://furl.net/storeIt.jsp?u=<?php the_permalink() ?>/&t=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/furl.gif" alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&bkmk=<?php the_permalink() ?>/&title=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/google.gif" alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a>
<a href="http://www.technorati.com/faves?add=<?php the_permalink() ?>/" target="_blank"><img src="http://www.xxx.com/images/share/technorati.gif" alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a>
<a href="https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url=<?php the_permalink() ?>/&title=<?php the_title() ?>&top=1" target="_blank"><img src="http://www.xxx.com/images/share/windowslive.gif" alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a>
<a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=<?php the_permalink() ?>/&t=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/yahoo.gif" alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a>
<a href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>/&title=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/stumbleupon.gif" alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a>
<a href="http://del.icio.us/post?url=<?php the_permalink() ?>/&title=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/delicious.gif" alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a>
<a href="http://www.facebook.com/share.php?u=<?php the_permalink() ?>/&title=<?php the_title() ?>" target="_blank"><img src="http://www.xxx.com/images/share/facebook.gif" alt="Paylas" width="16" height="16" border="0" align="absmiddle" /></a>
</p>
<?php the_content('Continue Reading'); ?>
<br />
<script type="text/javascript"><!--
google_ad_client = "pub-xxx";
/* 336x280, Erstellt 26.04.11 */
google_ad_slot = "3149923446";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<p><strong>Kategori:</strong> <?php the_category(', ') ?></p>
<?php the_tags('<p class="tags"><strong>Etiketler:</strong> ', ', ', '</p>'); ?>
</div>
</div> <!-- the_post -->
<?php endwhile; else: ?>
<?php endif; ?>
</div> <!-- main -->
</div> <!-- content_wrapper -->
<div id="content_bottom"><!-- nothing to see here --></div>
<?php get_footer(); ?>
<?php
$fp = fopen($cachefile, 'w');
fwrite($fp, ob_get_contents());
fclose($fp);
ob_end_flush();
}
?>
Cace islemini yapan kisimlar en üst deki:
PHP:
<?php $cachefile = "./". $_SERVER['REQUEST_URI'];
if (file_exists($cachefile)) {
include($cachefile);
} else {
ob_start();
?>
ile en altdaki:
PHP:
<?php
$fp = fopen($cachefile, 'w');
fwrite($fp, ob_get_contents());
fclose($fp);
ob_end_flush();
}
?>
kodlardir.
Bu kodun orijinalinde zaman ayari da vardi.. yani belli bir süre sonra cachelenmis sayfalari silebiliyorduk ama benim hicbir sayac tutmadigima göre ve yorum fonksiyonunuda iptal ettigime göre zaman ayarini gereksiz gördüm ve sayfalar gercek html sayfalarina dönüstürülmüs olarak kaliyor serverde.