Ment adlı üyeden alıntı: mesajı görüntüle
Bende takipteyim.
NewMaster adlı üyeden alıntı: mesajı görüntüle
Takipteyiz :=)
ConseptCreative adlı üyeden alıntı: mesajı görüntüle
takipteyim.
Buyrun;

Ana dizinde ekle.php şeklinde bir dosya oluşturup içine alttaki kodları atınız ve kaydediniz.

<?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("wp-config.php dosyasinin olup olmadigini kontrol ediniz.");
}
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-config.php');
wp();
gzip_compression();
require_once(ABSPATH . WPINC . '/template-loader.php');
$id=$_GET['id'];
query_posts('p='.$id.'');
endif;
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Markafem | Son Dakika Haberler</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta name="Pragma" content="no-cache" />
</head>
<body>

        <?php if (have_posts()) : ?>
        <?php $post = get_post($id);
		$content = $post->post_content;
		$content = apply_filters('the_content', $content);
		$content = str_replace(']]>', ']]&gt;', $content);
		?>
<div style="background:url(http://www.markafem.com/dosyalar/images/ekle_markafem-logo.png);">		
		 <div><img src="<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>" alt="<?php echo esc_textarea( strip_tags($post->post_title) ); ?>" style="width:560px; height:300px;"/></div>
         <div style="font:bold 38px/47px Arial;color:#000;padding:10px 0;"><?php echo $post->post_title; ?></div>
         <div style="font:14px/18px Arial;color:#000;padding:10px 0;"><?php echo $content; ?></div>
		 <div style="padding:7px 0;border-top:1px dashed #999;"></div>
		 <div style="font:12px/20px Arial;color:#666;"><strong>Eklenme tarihi : </strong><?php echo get_the_time('d.m.Y - H:i:s', $post->ID); ?><br /></div>
		 <div style="font:12px/20px Arial;color:#666"><strong>Kaynak : </strong><a href="<?php echo get_permalink($id); ?>" title="<?php echo esc_textarea( strip_tags($post->post_title) ); ?>"><?php echo $post->post_title; ?> | Markafem</a></div>
</div>		 
        <?php else : ?>

		<?php endif; // burda biter www.markafem.com  ?>
</body>
</html>
Temanızın headar.php dosyasını açıp uygun bir yere alttaki kodları ekleyiniz.

<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
$(function(){

    $("#siteneEkleSH").click(function(){
        return false;
    });
    
});
</script>
Temanızın single.php dosyasını açıp uygun bir yere alttaki kodları ekleyiniz:

<div class="row-fluid" style="margin-top:15px; margin-bottom:-10px; background-color:#fff;">
    <div class="social-box">
<?php $iframe_id = get_the_ID(); ?>
<div id="siteneEkleSH" class="siteneEkle no_print" style="margin-top:10px; margin-bottom:10px;"><a onClick="javascript:$('.sitene_ekle_kod').toggle();" href="#"></a></div>
<div class="sitene_ekle_kod hide">
<strong>Aşağıdaki kodu sitenize ekleyerek haberi paylaşabilirsiniz.</strong>
<textarea name="mesajicerik" class="contact-input" id="mesajicerik" cols="500" rows="2" >&lt;iframe src=&quot;http://www.markafem.com/ekle.php?id=<?php echo $iframe_id; ?>&quot; width=&quot;665&quot; height=&quot;800&quot;&gt;&lt;/iframe&gt;</textarea>
</div>
	</div>
</div>
Temanızın style.css dosyasını açıp en alta alttaki kodları ekleyiniz.

.siteneEkle{ float:right; z-index: 10; }
.siteneEkle a{ display:block; width:200px; height:30px; background:url(http://www.markafem.com/dosyalar/images/sitene-ekle-a.png) no-repeat 0 -1px; }
.siteneEkle a:hover{ background:url(http://www.markafem.com/dosyalar/images/sitene-ekle-a.png) no-repeat 0 -31px; }

/*sitene ekle*/
.siteneEkle_page form{margin-right: 45px;}
.siteneEkle_page label{display: block; margin-bottom: 5px;}
.siteneEkle_page textarea{width: 394px;padding: 3px;margin: 0;}
.siteneEkle_page h2{font-size: 16px; font-weight: bold;padding-bottom: 5px;margin-bottom: 15px;border-bottom: solid 3px; color: #1B9ACA;}
.siteneEkle_page h2.pre {color: #C93898;}
.kodKopyala{font-family: monospace;}
.hide{ display:none;}

.sitene_ekle_kod{ width: 620px; float:left; background:url(http://www.markafem.com/dosyalar/images/webcode.png) no-repeat left top; padding: 80px 15px 11px; margin:-

30px 40px 2px; }
.sitene_ekle_kod strong { display:none; }
.sitene_ekle_kod textarea { width:608px; padding:5px; resize:none; height:60px; border:solid 1px #bbb; border-radius:3px; background:url

(http://www.markafem.com/dosyalar/images/tarea.png) no-repeat left top; }

Gerekli yerleri kendinize göre düzenleyiniz. Ben kendime göre yaptığım için bu şekildedir kodlar.

Yapamayan olursa ücretli yapabilirim. Ücret : 25 TL

Ayrıca r10 - +1 butonunu kullanırsanızda sevinirim

Canlı demo için tıklayın

.