Öncelikle Ajaxtabs menüyü Buradan indiriyoruz.
Rar şifresi : genclikcafe.com
Ajaxmenümüz bu.

Kuruluma geçelim.
1. İndirdiğimiz klasöründeki “ajaxtabs.js” dosyasını bir metin editörüyle açıyoruz. Satırdaki resim adresinizi kendi sitenize göre düzeltin.
2. Daha sonra ''ajaxtabs.css'' açıyoruz shade.gif ve shadeactive.gif adında 2 adet resim url yolunu kendimize göre düzenliyoruz.
3.Bu işlemi yaptıktan sonra “ajaxtabs” klasörünü sitemizin ana dizinine(root) gönderiyoruz. (Yani sitenizin ana dizininde wp-admin,wp-content,wp-includes ve menu klasörleri olmuş olacak)
4. Nerede kullanmak istiyorsanız (örnegin ben single.php koydum) siz de dilediginiz yere aşşagıdaki kodları kullanın.
Alıntı
<script type="text/javascript" src="http://www.siteniz.com/ajaxtabs/ajaxtabs.js">
</script>
<ul id="maintab" class="shadetabs">
<li class="selected"><a href="http://www.siteniz.com/rastgele.php" rel="ajaxcontentarea">Rastgele Yazılar</a></li>
<li class="selected"><a href="http://www.siteniz.com/dosya.php" rel="ajaxcontentarea">Son Yazi</a></li>
<li class="selected"><a href="http://www.siteniz.com/dosya.php" rel="ajaxcontentarea">Etiket Bulutu</a></li>
<li class="selected"><a href="http://www.siteniz.com/dosya.php" rel="ajaxcontentarea">Arama Yap</a></li>
</ul>
<div id="ajaxcontentarea" class="contentstyle">
<p>Açılışda bura gözükecek kod yada yazı olarak düzenleyin.</p>
</div>
<script type="text/javascript">
//Start Ajax tabs script for UL with id="maintab" Separate multiple ids each with a comma.
startajaxtabs("maintab")
</script>
</script>
<ul id="maintab" class="shadetabs">
<li class="selected"><a href="http://www.siteniz.com/rastgele.php" rel="ajaxcontentarea">Rastgele Yazılar</a></li>
<li class="selected"><a href="http://www.siteniz.com/dosya.php" rel="ajaxcontentarea">Son Yazi</a></li>
<li class="selected"><a href="http://www.siteniz.com/dosya.php" rel="ajaxcontentarea">Etiket Bulutu</a></li>
<li class="selected"><a href="http://www.siteniz.com/dosya.php" rel="ajaxcontentarea">Arama Yap</a></li>
</ul>
<div id="ajaxcontentarea" class="contentstyle">
<p>Açılışda bura gözükecek kod yada yazı olarak düzenleyin.</p>
</div>
<script type="text/javascript">
//Start Ajax tabs script for UL with id="maintab" Separate multiple ids each with a comma.
startajaxtabs("maintab")
</script>
Alıntı
<?php
if (! isset($wp_did_header)):
if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '';
else $path = 'wp-admin/';
require_once( dirname(__FILE__) . '/wp-includes/classes.php');
require_once( dirname(__FILE__) . '/wp-includes/functions.php');
require_once( dirname(__FILE__) . '/wp-includes/plugin.php');
wp_die("There doesn't seem to be a <code>wp-config.php</code> file.
I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>.
You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress › Error");
}
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-config.php');
wp();
gzip_compression();
require_once(ABSPATH . WPINC . '/template-loader.php');
endif;
?>
<?php
// ** MySQL ayarları ** //
define('DB_NAME', 'db-adınız'); // Veritabanı adı
define('DB_USER', 'db kullanıcı adınız'); // MySQL kullanıcı adınız
define('DB_PASSWORD', 'şifreniz'); // ...ve MYSQL parolası
define('DB_HOST', 'localhost'); // % 99 ihtimalle bunu değiştirmenize gerek yok
// Tüm kurulumlara ayrı bir önek vererek bir veritabanına birden fazla kurulum yapabilirsiniz, tek kurulum yapacaksanız değiştirmeye gerek yok.
$table_prefix = 'wp_'; // Veritabanı tablo öneki. Sadece sayı, harf ve alt çizgi.
// Bu değeri değiştirmenize gerek yok! Zaten Türkçe'ye ayarlı.
define ('WPLANG', 'tr_TR');
/* Hepsi bu kadar. İyi bloglamalar! */
define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>
<!-- Wordpress Kodları-->
<h3>Rastgele Yazilar</h3>
<?php rastgele_yazi('10'); ?>
<!-- Wordpress Kodları-->
<br style="clear: left" />
if (! isset($wp_did_header)):
if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '';
else $path = 'wp-admin/';
require_once( dirname(__FILE__) . '/wp-includes/classes.php');
require_once( dirname(__FILE__) . '/wp-includes/functions.php');
require_once( dirname(__FILE__) . '/wp-includes/plugin.php');
wp_die("There doesn't seem to be a <code>wp-config.php</code> file.
I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>.
You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress › Error");
}
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-config.php');
wp();
gzip_compression();
require_once(ABSPATH . WPINC . '/template-loader.php');
endif;
?>
<?php
// ** MySQL ayarları ** //
define('DB_NAME', 'db-adınız'); // Veritabanı adı
define('DB_USER', 'db kullanıcı adınız'); // MySQL kullanıcı adınız
define('DB_PASSWORD', 'şifreniz'); // ...ve MYSQL parolası
define('DB_HOST', 'localhost'); // % 99 ihtimalle bunu değiştirmenize gerek yok
// Tüm kurulumlara ayrı bir önek vererek bir veritabanına birden fazla kurulum yapabilirsiniz, tek kurulum yapacaksanız değiştirmeye gerek yok.
$table_prefix = 'wp_'; // Veritabanı tablo öneki. Sadece sayı, harf ve alt çizgi.
// Bu değeri değiştirmenize gerek yok! Zaten Türkçe'ye ayarlı.
define ('WPLANG', 'tr_TR');
/* Hepsi bu kadar. İyi bloglamalar! */
define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>
<!-- Wordpress Kodları-->
<h3>Rastgele Yazilar</h3>
<?php rastgele_yazi('10'); ?>
<!-- Wordpress Kodları-->
<br style="clear: left" />
Bu yukarıdaki db bilgilerini girip bir php dosyasına kopyala yapıştır diyoruz ve adını ''rastgele'' yapıp ''root'' yani wp kurulu anadizine atıyoruz. Bu sayede menü tuşlarımızı çalıştırmış oluyoruz.
Yani
Alıntı
Alıntı
<h3>Rastgele Yazilar</h3>
<?php rastgele_yazi('10'); ?>
<?php rastgele_yazi('10'); ?>
Alıntı
<h1>Son Yazılar</h1>
<div class="submenu">
<ul>
<?php query_posts('showposts=5'); ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?> <?php the_title(); ?>"><?php the_title(); ?></a> - <?php the_time('m-d-Y') ?></li>
<?php endwhile;?>
</ul>
2
<h1><?php _e(Kategoriler); ?></h1>
<div class="submenu">
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1&hiera rchical=0'); ?>
</ul>
3
<h1>Sayfalar</h1>
<ul>
<?php wp_list_pages('title_li='); ?>
</ul>
yada
<?php wp_list_pages('title_li=' . __('Sayfalar:')); ?>
4
<h2><?php _e('Son Yorumlar'); ?></h2>
<?php if (function_exists('get_recent_comments')) { ?>
<?php get_recent_comments(); ?>
<?php } ?>
5
<?php wp_get_archives('type=postbypost&limit=6'); ?>
6
<h2>Arşiv</h2>
<ul class="counts">
<?php wp_get_archives('type=monthly&limit=12&show_post_c ount=1'); ?>
</ul>
yada
</li>
<li id="archives"><?php _e('Arşivler:'); ?>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
7
<h2>Takvim</h2>
<?php get_calendar(2); ?>
8
<?php wp_list_categories('title_li=' . __('Kategoriler:')); ?>
9
<h4>Yazı Bilgileri:</h4>
<div class="about-entry">
<?php the_time('j F Y l') ?> günü, <?php the_time() ?> gibi <?php the_category(', ') ?> kategorisinde yayınlanmış, <?php comments_rss_link('RSS 2.0'); ?> ile takip edebilir, <a href="#respond">yorum bırakabilir</a> yada <a href="<?php trackback_url(display); ?>">geri izleme</a> ile siteniz üzerinden takip edebilirsiniz.
yada
<small>
Bu yazı
<?php /* This is commented, because it requires a little adjusting sometimes.
You'll need to download this plugin, and follow the instructions:
http://binarybonsai.com/archives/200...-since-plugin/ */
/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
<?php the_time('l, d F Y') ?>, <?php the_time() ?> tarihinde
<?php the_category(', ') ?> kategorisi altında yayınlandı.
Bu yazıya yapılacak yorumlardan haberdar olmak için <?php comments_rss_link('RSS 2.0'); ?> beslemesini kullanabilirsiniz.
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
<a href="#respond">Yorum yapabilirsiniz</a>, veya kendi sitenizden <a href="<?php trackback_url(); ?>" rel="trackback">geri izleme</a> yapabilirsiniz.
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Yorum yapma şimdilik kapalı, fakat kendi sitenizden <a href="<?php trackback_url(); ?> " rel="trackback">geri izleme</a> yapabilirsiniz.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
Sona gidip yorum yapabilirsiniz. Pingleme şimdilik kapalı.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Yorum yapma ve pingleme kapalı.
<?php } edit_post_link('Yazıyı düzenleyin.','',''); ?>
</small>
10
<h2><a href="<?php the_permalink() ?>" rel="kalıcı bağlantı"><?php the_title(); ?></a></h2><?php the_author(); ?> <?php the_time('j F Y'); ?> tarihinde<?php _e(","); ?> <?php the_category(',') ?> kategorisinde yazmış.
11
<?php wp_list_bookmarks('title_after=&title_before='); ?>
12
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('RSS ile siteye abone olun'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('Yazılara yapılan son yorumlar için RSS'); ?>"><?php _e('Yorumlar <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><a href="http://validator.w3.org/check/referer" title="<?php _e('Bu sayfa XHTML 1.0 Transitional olarak geçerli'); ?>"><?php _e('Geçerli <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="<?php _e('Altyapı WordPress, kişisel yayınlama platformu.'); ?>"><abbr title="WordPress">WP</abbr></a></li>
<?php wp_meta(); ?>
</ul>
</li>
13
<li><h2><?php _e('Yönetim'); ?></h2><ul><div><?php global $user_ID, $user_identity; get_currentuserinfo(); if (!$user_ID): ?><div><form name="loginform" id="loginform" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method="post"><ul><li><?php _e('Username') ?>:<br /></li><input type="text" name="log" id="log" value="" size="22" tabindex="1" /><br /><li><?php _e('Şifre') ?>:<br /></li><input type="password" name="pwd" id="pwd" value="" size="14" tabindex="2" /><input type="submit" name="submit" value="<?php _e('Giriş'); ?>" tabindex="3" /><br /><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="4" /><?php _e('Hatırla'); ?><br /><br/> <?php wp_register('', ''); ?>.<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/></ul></form></div><?php else:?><span class="h3a"><?php echo $user_identity; ?></span><ul><li><a href="<?php echo get_settings('siteurl'); ?>/wp-admin/">Kontrol Panel</a></li><li><a href="<?php echo get_settings('siteurl'); ?>/wp-admin/post-new.php">Yazı yaz</a></li><li><a href="<?php echo get_settings('siteurl'); ?>/wp-admin/profile.php">Profil</a></li><li><a href="<?php echo get_settings('siteurl') . '/wp-login.php?action=logout&redirect_to=' . $_SERVER['REQUEST_URI']; ?>"><?php _e('Çıkış'); ?></a></li></ul><?php endif;?></div>
</ul></li>
14
<h2>Aramak istediğiniz kelimeyi girin:</h2>
<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="text" name="s" id="s" size="55" />
<input class=".button" type="submit" value="<?php _e('Search'); ?>" />
</form>
yada
<li id="search">
<label for="s"><?php _e('Arama Yapın:'); ?></label>
<form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
<div>
<input type="text" name="s" id="s" size="15" /><br />
<input type="submit" value="<?php _e('Ara'); ?>" />
</div>
</form>
</li>
15
<small><?php the_tags( '<p>Etiketler: ', ', ', '</p>'); ?></small>
16
<h3>Rastgele Etiketler</h3>
<?php wp_tag_cloud('smallest=8&largest=22&number=30&orde rby=count&order=RAND'); ?>
<div class="submenu">
<ul>
<?php query_posts('showposts=5'); ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?> <?php the_title(); ?>"><?php the_title(); ?></a> - <?php the_time('m-d-Y') ?></li>
<?php endwhile;?>
</ul>
2
<h1><?php _e(Kategoriler); ?></h1>
<div class="submenu">
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1&hiera rchical=0'); ?>
</ul>
3
<h1>Sayfalar</h1>
<ul>
<?php wp_list_pages('title_li='); ?>
</ul>
yada
<?php wp_list_pages('title_li=' . __('Sayfalar:')); ?>
4
<h2><?php _e('Son Yorumlar'); ?></h2>
<?php if (function_exists('get_recent_comments')) { ?>
<?php get_recent_comments(); ?>
<?php } ?>
5
<?php wp_get_archives('type=postbypost&limit=6'); ?>
6
<h2>Arşiv</h2>
<ul class="counts">
<?php wp_get_archives('type=monthly&limit=12&show_post_c ount=1'); ?>
</ul>
yada
</li>
<li id="archives"><?php _e('Arşivler:'); ?>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
7
<h2>Takvim</h2>
<?php get_calendar(2); ?>
8
<?php wp_list_categories('title_li=' . __('Kategoriler:')); ?>
9
<h4>Yazı Bilgileri:</h4>
<div class="about-entry">
<?php the_time('j F Y l') ?> günü, <?php the_time() ?> gibi <?php the_category(', ') ?> kategorisinde yayınlanmış, <?php comments_rss_link('RSS 2.0'); ?> ile takip edebilir, <a href="#respond">yorum bırakabilir</a> yada <a href="<?php trackback_url(display); ?>">geri izleme</a> ile siteniz üzerinden takip edebilirsiniz.
yada
<small>
Bu yazı
<?php /* This is commented, because it requires a little adjusting sometimes.
You'll need to download this plugin, and follow the instructions:
http://binarybonsai.com/archives/200...-since-plugin/ */
/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
<?php the_time('l, d F Y') ?>, <?php the_time() ?> tarihinde
<?php the_category(', ') ?> kategorisi altında yayınlandı.
Bu yazıya yapılacak yorumlardan haberdar olmak için <?php comments_rss_link('RSS 2.0'); ?> beslemesini kullanabilirsiniz.
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
<a href="#respond">Yorum yapabilirsiniz</a>, veya kendi sitenizden <a href="<?php trackback_url(); ?>" rel="trackback">geri izleme</a> yapabilirsiniz.
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Yorum yapma şimdilik kapalı, fakat kendi sitenizden <a href="<?php trackback_url(); ?> " rel="trackback">geri izleme</a> yapabilirsiniz.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
Sona gidip yorum yapabilirsiniz. Pingleme şimdilik kapalı.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Yorum yapma ve pingleme kapalı.
<?php } edit_post_link('Yazıyı düzenleyin.','',''); ?>
</small>
10
<h2><a href="<?php the_permalink() ?>" rel="kalıcı bağlantı"><?php the_title(); ?></a></h2><?php the_author(); ?> <?php the_time('j F Y'); ?> tarihinde<?php _e(","); ?> <?php the_category(',') ?> kategorisinde yazmış.
11
<?php wp_list_bookmarks('title_after=&title_before='); ?>
12
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('RSS ile siteye abone olun'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('Yazılara yapılan son yorumlar için RSS'); ?>"><?php _e('Yorumlar <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><a href="http://validator.w3.org/check/referer" title="<?php _e('Bu sayfa XHTML 1.0 Transitional olarak geçerli'); ?>"><?php _e('Geçerli <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="<?php _e('Altyapı WordPress, kişisel yayınlama platformu.'); ?>"><abbr title="WordPress">WP</abbr></a></li>
<?php wp_meta(); ?>
</ul>
</li>
13
<li><h2><?php _e('Yönetim'); ?></h2><ul><div><?php global $user_ID, $user_identity; get_currentuserinfo(); if (!$user_ID): ?><div><form name="loginform" id="loginform" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method="post"><ul><li><?php _e('Username') ?>:<br /></li><input type="text" name="log" id="log" value="" size="22" tabindex="1" /><br /><li><?php _e('Şifre') ?>:<br /></li><input type="password" name="pwd" id="pwd" value="" size="14" tabindex="2" /><input type="submit" name="submit" value="<?php _e('Giriş'); ?>" tabindex="3" /><br /><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="4" /><?php _e('Hatırla'); ?><br /><br/> <?php wp_register('', ''); ?>.<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/></ul></form></div><?php else:?><span class="h3a"><?php echo $user_identity; ?></span><ul><li><a href="<?php echo get_settings('siteurl'); ?>/wp-admin/">Kontrol Panel</a></li><li><a href="<?php echo get_settings('siteurl'); ?>/wp-admin/post-new.php">Yazı yaz</a></li><li><a href="<?php echo get_settings('siteurl'); ?>/wp-admin/profile.php">Profil</a></li><li><a href="<?php echo get_settings('siteurl') . '/wp-login.php?action=logout&redirect_to=' . $_SERVER['REQUEST_URI']; ?>"><?php _e('Çıkış'); ?></a></li></ul><?php endif;?></div>
</ul></li>
14
<h2>Aramak istediğiniz kelimeyi girin:</h2>
<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="text" name="s" id="s" size="55" />
<input class=".button" type="submit" value="<?php _e('Search'); ?>" />
</form>
yada
<li id="search">
<label for="s"><?php _e('Arama Yapın:'); ?></label>
<form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
<div>
<input type="text" name="s" id="s" size="15" /><br />
<input type="submit" value="<?php _e('Ara'); ?>" />
</div>
</form>
</li>
15
<small><?php the_tags( '<p>Etiketler: ', ', ', '</p>'); ?></small>
16
<h3>Rastgele Etiketler</h3>
<?php wp_tag_cloud('smallest=8&largest=22&number=30&orde rby=count&order=RAND'); ?>