بعد از دانلود قالب ، فايل top.php رو باز كرده به جاي عبارت websoft ، نام فيد خودتون رو وارد كنيد.
»» دانلود كنيد با حجم 70 كيلوبايت
بعد از دانلود قالب ، فايل top.php رو باز كرده به جاي عبارت websoft ، نام فيد خودتون رو وارد كنيد.
»» دانلود كنيد با حجم 70 كيلوبايت
سلام
فيد من سايت من اينه :
http://feeds.feedburner.com/persiandc/pJfa
؟؟
و سوال بعدي هم چه طور ميتونم مثل سايت http://www.smshot.ir/
يك باكس بالا درست كنم كه بنويسه : جديد ترين مطالب سايت
اينم از عكسش :
http://www.smshot.ir/wp-content/themes/sms/images/bl.png
مرسي
سلام ببین اینکه من میگم امتحان کن
اول عکس زیر رو دریافتش کن
http://www.smshot.ir/wp-content/themes/sms/images/bl.png
بعد تو قالبت اگه پوشه ای بنام images هست و عکس بالا رو در پوشه images تو قالبت آپلود کن
دستور زیر رو به persiandc-god/style.css قالبت اضافه کن
.laast{color:#000000;width:510;float:right;height:300;font-size:10pt;background:url('images/bl.png') no-repeat scroll 100% 0px;padding:55px 10px 20px 0px;line-height:1.4;}
و در اخر هم تو قالبت بزار
<div class=laast>
<?php query_posts('showposts=25'); ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<br><?php endwhile;?>
</div>
و عدد 25 یعنی 25 مطلب اخر
مرسي ، عزيز ميتوني خودت اضافه كني لطفا ؟
كد Index.php :
<?php get_header(); ?>
<div style="margin-right:16"><div class=main>
<div class=menu>
<div class=menupad>
<?php include(TEMPLATEPATH . '/sidebar1.php'); ?>
</div></div>
<div class=post><div class=postpad>
<?php include(TEMPLATEPATH . '/top.php'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=post1>
<div class=tpost><div class=tpost1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></div></div>
<div class=xpost><div class=xxpost>
<?php the_content(__('','Ravoon')); ?>
<font style="font-size:8pt;"><br>
طبقه بندی: <?php the_category(' | ') ?>
</font>
</div></div>
<div class=bpost><div class=edame><div class=edame2><a href="<?php the_permalink() ?>" style="width:110;height:30;float:right"></a></div></div>
<div class=date>نوشته شده در تاريخ <?php the_time(' j F Y'); ?> | <?php comments_popup_link(__('بدون نظر','Ravoon'), __('يك نظر','Ravoon'), __('نظرات (%)','Ravoon')); ?></div>
</div>
</div>
<?php endwhile; ?>
<?php include (TEMPLATEPATH . '/item-pagebar.php'); ?>
<?php endif; ?>
</div></div>
<div class=menu><div class=menupad>
<?php include(TEMPLATEPATH . '/sidebar2.php'); ?>
</div></div>
</div></div></div>
<?php get_footer(); ?>
كد style.css :
/*
Theme Name: WSDGhandoon
Version: 2.4
Author: WSD
Author URL: http://www.websoftdownload.com
*/
A {TEXT-DECORATION: none;}
img{border:none;}
span.a{color:#066496;font-size:8pt;font-weight:bold;}
body{font-family:Tahoma;margin:0;background:#484848 url('images/bg.jpg') repeat-x top;}
.main{width:939;background:url('images/bg-p.jpg') repeat-x top;float:right;}
.viz{display:none}
.top{width:970;float:right;background:url('images/top.jpg') no-repeat top left;height:235;text-align:right;overflow:hidden}
.topm{width:930;float:right;background:url('images/topbg.gif') repeat-x top;height:25;font-size:10pt;font-weight:bold;padding:12 30 0 0}
.topm a{font-weight:bold;color:#ffffff;padding:0 10;float:right}
.topm a:hover{font-weight:bold;color:#f6e918}
.topm-pad{float:right;width:1000;height:195}
.menu{width:207;float:right;direction:rtl;text-align:right;}
.menupad{padding:15 7 0 0;}
#menu1{width:194;float:right;}
.tmenu{width:194;float:right;background:url('images/m1.gif') no-repeat top right;height:57;font-size:9pt;color:#eaeaea;font-weight:bold;}
.tmenu1{padding:12 60 0 0}
.xmenu{width:194;float:right;background:url('images/m2.gif') repeat-y right;font-size:9pt;color:#fc9800;display:block}
.xxmenu{padding:0 10 5 5}
.xmenu a{color:#e1e1e1;}
.xmenu a:hover{color:#f2ab29}
.bmenu{width:194;background:url('images/m3.gif') no-repeat top right;height:25;float:right}
.linkduni{width:510;float:right;height:190;font-size:9pt;color:#222222;background:url('images/l2.jpg') repeat-x top;}
.linkduni1{background:url('images/l3.jpg') no-repeat top right;width:510;float:right;height:174;}
.linkduni2{background:url('images/l1.jpg') no-repeat top left;width:510;float:right;height:174;}
.linkduni3{padding:20 10 0 10;}
.linkduni-txt{width:220;float:right;height:150}
.linkduni a{color:#ffffff}
.title{text-align:center;width:490;float:right;background:#333333;margin:10 10 30 10}
.title2{padding-top:2;}
h2.pagetitle{color:#e1e1e1;font-size:11pt;font-wight:bold}
#recentcomments a{color:#ffffff}
.post{width:520;float:right;direction:rtl;text-align:right;overflow:hidden}
.postpad{padding:15 5 0 0;}
.tpost{width:511;float:right;background:url('images/p1.gif') no-repeat top right;height:46;color:#4a4a4a;font-weight:bold;}
.tpost a{color:#4a4a4a}
.tpost1{float:right;margin:15 55 0 20;font-size:10pt;}
.xpost{width:511;float:right;background:url('images/p2.gif') repeat-y right;color:#333333;font-size:9pt;line-height:130%;}
.xxpost{margin:5 10 10 10}
.xpost a{color:#df4b02}
.xpost a:hover{color:#000000}
.bpost{width:511;float:right;background:url('images/p3.gif') no-repeat top right;color:#e1e1e1;height:70;font-size:8pt;text-align:right}
.bpost2{width:511;float:right;background:url('images/pp3.gif') no-repeat top right;color:#e1e1e1;height:50;font-size:8pt;text-align:right}
.date{float:right;padding:10 0 0 0;width:300;}
.date a{color:#ffffff;}
.edame{float:right;width:180;}
.edame2{padding:3 20 0 0;}
.pagenavi{width:510;float:right;font-size:9pt;color:#ffffff;direction:rtl;height:50}
.pagenavi a{color:#ffffff;}
.nav-r{float:right;width:150;text-align:right}
.nav-l{float:right;width:360;text-align:left}
.sch{background:none;float:right;width:30;height:20;cursor:pointer;border:0}
.txtsch{text-align:right;font-size:9pt;color:#ffffff;background:none;width:150;height:20;border:0}
.ads{width:200;height:250;border:1px solid #333333;float:right;text-align:center;margin-bottom:20;}
.ads2{padding:5}
.ft{width:970;background:url('images/ft.gif') no-repeat top right;height:34;color:#333333;font-size:8pt;direction:rtl;float:right}
.ft-pad{padding-top:10}
.ft a{color:#c94903}
#menu1 ul{padding:0;margin-right:0}
#menu1 li{padding:3 15 5 0;background:url('images/dot.gif') 170px 7px no-repeat;list-style:none}
#wp-calendar{font-size:9pt}
.titr2{width:240;font-size:9pt;font-weight: bold;color:#FFFFFF;text-align:right}
#comments{padding:10;float:right;text-align:right;direction:rtl;font-size:9pt;}
.comment-body a{color:#000000}
.commentmetadata {font-size:8pt;color:#333333}
.commentmetadata a{font-size:8pt;color:#7B801C}
label{color:#e1e1e1;font-size:9pt;font-family:tahoma}
/* Comments */
#comments{
width:100%;
margin:10px auto;
color:#333333;
padding-bottom:5px;
overflow:hidden;
}
a{color:#e1e1e1;}
h2#respond{
font-size:13px;
color:#ffffff;
padding:0 10px;
margin-top:30px;
}
.commentlist{margin:0; padding:0; list-style-type:none;}
.comment-author-admin cite.fn{color:#0066CC;}
a.url{color:#333333;}
cite.fn{font-style:normal; font-weight:bold;}
.comment{
background-color:#ffffff;
border:1px solid #999999;
padding:5px;
margin:5px 10px;
overflow:hidden;
}
.alt{background-color:#ececec;}
.author b{color:#990000;}
.avatar{float:left; padding:2px; margin-right:8px; border: 1px solid #eee; }
#comments input, #comments textarea{
margin:1px 5px;
padding:1px;
}
h2#comments{color:#0066BB;background:#ffffff}
form#searchform{margin:0;padding:0;}
.pre {
cursor:pointer;
background:url('images/pr.jpg') no-repeat right;
width: 150px;
height: 30px;
}
.next {
cursor:pointer;
background:url('images/nx.jpg') no-repeat left;
width: 150px;
height: 30px;
}
مكانش دقيقا مثل سايت و smshot باشه لطفا
سلام boone جان من مدیر SMSHOT.ir هستم اگه کمک خواستی بگو
agig جان ميتونين كمك كنين ؟
سلام ببخشید دیر جواب دادم واقعیت پهنای باندم جمعه تموم شد اینترنتم قطع شد و امروز دوباره تونستم وصل شم
عکسی رو که من گفتم خودتون باید آپلودش کنید ولی استایل رو پایین براتون میذارم
/*
Theme Name: WSDGhandoon
Version: 2.4
Author: WSD
Author URL: http://www.websoftdownload.com
*/
A {TEXT-DECORATION: none;}
img{border:none;}
span.a{color:#066496;font-size:8pt;font-weight:bold;}
body{font-family:Tahoma;margin:0;background:#484848 url('images/bg.jpg') repeat-x top;}
.main{width:939;background:url('images/bg-p.jpg') repeat-x top;float:right;}
.viz{display:none}
.top{width:970;float:right;background:url('images/top.jpg') no-repeat top left;height:235;text-align:right;overflow:hidden}
.topm{width:930;float:right;background:url('images/topbg.gif') repeat-x top;height:25;font-size:10pt;font-weight:bold;padding:12 30 0 0}
.topm a{font-weight:bold;color:#ffffff;padding:0 10;float:right}
.topm a:hover{font-weight:bold;color:#f6e918}
.topm-pad{float:right;width:1000;height:195}
.menu{width:207;float:right;direction:rtl;text-align:right;}
.menupad{padding:15 7 0 0;}
#menu1{width:194;float:right;}
.tmenu{width:194;float:right;background:url('images/m1.gif') no-repeat top right;height:57;font-size:9pt;color:#eaeaea;font-weight:bold;}
.tmenu1{padding:12 60 0 0}
.xmenu{width:194;float:right;background:url('images/m2.gif') repeat-y right;font-size:9pt;color:#fc9800;display:block}
.xxmenu{padding:0 10 5 5}
.xmenu a{color:#e1e1e1;}
.xmenu a:hover{color:#f2ab29}
.bmenu{width:194;background:url('images/m3.gif') no-repeat top right;height:25;float:right}
.linkduni{width:510;float:right;height:190;font-size:9pt;color:#222222;background:url('images/l2.jpg') repeat-x top;}
.linkduni1{background:url('images/l3.jpg') no-repeat top right;width:510;float:right;height:174;}
.linkduni2{background:url('images/l1.jpg') no-repeat top left;width:510;float:right;height:174;}
.linkduni3{padding:20 10 0 10;}
.linkduni-txt{width:220;float:right;height:150}
.linkduni a{color:#ffffff}
.laast{color:#000000;width:510;float:right;height:300;font-size:10pt;background:url('images/bl.png') no-repeat scroll 100% 0px;padding:55px 10px 20px 0px;line-height:1.4;}
.title{text-align:center;width:490;float:right;background:#333333;margin:10 10 30 10}
.title2{padding-top:2;}
h2.pagetitle{color:#e1e1e1;font-size:11pt;font-wight:bold}
#recentcomments a{color:#ffffff}
.post{width:520;float:right;direction:rtl;text-align:right;overflow:hidden}
.postpad{padding:15 5 0 0;}
.tpost{width:511;float:right;background:url('images/p1.gif') no-repeat top right;height:46;color:#4a4a4a;font-weight:bold;}
.tpost a{color:#4a4a4a}
.tpost1{float:right;margin:15 55 0 20;font-size:10pt;}
.xpost{width:511;float:right;background:url('images/p2.gif') repeat-y right;color:#333333;font-size:9pt;line-height:130%;}
.xxpost{margin:5 10 10 10}
.xpost a{color:#df4b02}
.xpost a:hover{color:#000000}
.bpost{width:511;float:right;background:url('images/p3.gif') no-repeat top right;color:#e1e1e1;height:70;font-size:8pt;text-align:right}
.bpost2{width:511;float:right;background:url('images/pp3.gif') no-repeat top right;color:#e1e1e1;height:50;font-size:8pt;text-align:right}
.date{float:right;padding:10 0 0 0;width:300;}
.date a{color:#ffffff;}
.edame{float:right;width:180;}
.edame2{padding:3 20 0 0;}
.pagenavi{width:510;float:right;font-size:9pt;color:#ffffff;direction:rtl;height:50}
.pagenavi a{color:#ffffff;}
.nav-r{float:right;width:150;text-align:right}
.nav-l{float:right;width:360;text-align:left}
.sch{background:none;float:right;width:30;height:20;cursor:pointer;border:0}
.txtsch{text-align:right;font-size:9pt;color:#ffffff;background:none;width:150;height:20;border:0}
.ads{width:200;height:250;border:1px solid #333333;float:right;text-align:center;margin-bottom:20;}
.ads2{padding:5}
.ft{width:970;background:url('images/ft.gif') no-repeat top right;height:34;color:#333333;font-size:8pt;direction:rtl;float:right}
.ft-pad{padding-top:10}
.ft a{color:#c94903}
#menu1 ul{padding:0;margin-right:0}
#menu1 li{padding:3 15 5 0;background:url('images/dot.gif') 170px 7px no-repeat;list-style:none}
#wp-calendar{font-size:9pt}
.titr2{width:240;font-size:9pt;font-weight: bold;color:#FFFFFF;text-align:right}
#comments{padding:10;float:right;text-align:right;direction:rtl;font-size:9pt;}
.comment-body a{color:#000000}
.commentmetadata {font-size:8pt;color:#333333}
.commentmetadata a{font-size:8pt;color:#7B801C}
label{color:#e1e1e1;font-size:9pt;font-family:tahoma}
/* Comments */
#comments{
width:100%;
margin:10px auto;
color:#333333;
padding-bottom:5px;
overflow:hidden;
}
a{color:#e1e1e1;}
h2#respond{
font-size:13px;
color:#ffffff;
padding:0 10px;
margin-top:30px;
}
.commentlist{margin:0; padding:0; list-style-type:none;}
.comment-author-admin cite.fn{color:#0066CC;}
a.url{color:#333333;}
cite.fn{font-style:normal; font-weight:bold;}
.comment{
background-color:#ffffff;
border:1px solid #999999;
padding:5px;
margin:5px 10px;
overflow:hidden;
}
.alt{background-color:#ececec;}
.author b{color:#990000;}
.avatar{float:left; padding:2px; margin-right:8px; border: 1px solid #eee; }
#comments input, #comments textarea{
margin:1px 5px;
padding:1px;
}
h2#comments{color:#0066BB;background:#ffffff}
form#searchform{margin:0;padding:0;}
.pre {
cursor:pointer;
background:url('images/pr.jpg') no-repeat right;
width: 150px;
height: 30px;
}
.next {
cursor:pointer;
background:url('images/nx.jpg') no-repeat left;
width: 150px;
height: 30px;
}
کد بالا رو توی style.css جایگزینش کن.
این کد Index.php
<div class=menu>
<div class=menupad>
<?php include(TEMPLATEPATH . '/sidebar1.php'); ?>
</div></div>
<div class=post><div class=postpad>
<?php include(TEMPLATEPATH . '/top.php'); ?>
<div class=laast>
<?php query_posts('showposts=25'); ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<br><?php endwhile;?>
</div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=post1>
<div class=tpost><div class=tpost1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></div></div>
<div class=xpost><div class=xxpost>
<?php the_content(__('','Ravoon')); ?>
<font style="font-size:8pt;"><br>
طبقه بندی: <?php the_category(' | ') ?>
</font>
</div></div>
<div class=bpost><div class=edame><div class=edame2><a href="<?php the_permalink() ?>" style="width:110;height:30;float:right"></a></div></div>
<div class=date>نوشته شده در تاريخ <?php the_time(' j F Y'); ?> | <?php comments_popup_link(__('بدون نظر','Ravoon'), __('يك نظر','Ravoon'), __('نظرات (%)','Ravoon')); ?></div>
</div>
</div>
<?php endwhile; ?>
<?php include (TEMPLATEPATH . '/item-pagebar.php'); ?>
<?php endif; ?>
</div></div>
<div class=menu><div class=menupad>
<?php include(TEMPLATEPATH . '/sidebar2.php'); ?>
</div></div>
</div></div></div>
<?php get_footer(); ?>
و عکس زیر رو هم توی پوشه images توی قالبت آپلود کن
http://www.smshot.ir/wp-content/themes/sms/images/bl.png
احتمال ادرس آپلود عکس هم به شکل زیره
persiandc-god/images
تعداد آخرین مطالب هم 25 تا هست که اگه خواستید خودتون میتونید عوضش کنید.
تست کنیدو اینجا بگید که مشکلتون حل شد یا نه
سلام agig جان من كد ها رو جايگزين كردم قالب سايت به هم ريخته .. فكر كنم كد يه مشكلي داشت
خودتون ببينيد
این دوتا جا مونده بود به اول قالب ایندکس اضافه کن
<?php get_header(); ?>
<div style="margin-right:16"><div class=main>شما برای ارسال مطلب باید وارد شوید .