sparrow 11 ارسال شده در شهریور 93 گزارش بازنشر ارسال شده در شهریور 93 سلاممن از قسمت شناسنامه واسه خودم یه اسم فارسی میزنمبعدش نمایش عمومی نام ؛ رو روی اون اسم تنظیم میکنم و ذخیره میزنم.اما تو نظرات دوباره نام کاربریم میاد!!!چیکار کنم؟؟ادرس : ava.tiktak.info نقل قول لینک به ارسال
مریم مقبولی 66 ارسال شده در شهریور 93 گزارش بازنشر ارسال شده در شهریور 93 کد های comments.php و function.php رو جهت بررسی اینجا لطفا قرار بدید. 1 نقل قول لینک به ارسال
sparrow 11 ارسال شده در شهریور 93 مالک گزارش بازنشر ارسال شده در شهریور 93 function.php<?phpif ( !function_exists( 'of_get_option' ) ) {function of_get_option($name, $default = false) {$optionsframework_settings = get_option('optionsframework');// Gets the unique option id$option_name = $optionsframework_settings['id'];if ( get_option($option_name) ) { $options = get_option($option_name);}if ( isset($options[$name]) ) { return $options[$name];} else { return $default;}}}function mw_pagination($pages = '', $range = 2){$showitems = ($range * 2)+1;global $paged;if(empty($paged)) $paged = 1;if($pages == ''){global $wp_query;$pages = $wp_query->max_num_pages;if(!$pages){$pages = 1;}}if(1 != $pages){echo "<div class='pagination cf'>";if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<a href='".get_pagenum_link(1)."'>«</a>";if($paged > 1 && $showitems < $pages) echo "<a href='".get_pagenum_link($paged - 1)."'>‹</a>";for ($i=1; $i <= $pages; $i++){if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems )){echo ($paged == $i)? "<span class='current'>".$i."</span>":"<a href='".get_pagenum_link($i)."' class='inactive' >".$i."</a>";}}if ($paged < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($paged + 1)."'>›</a>";if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($pages)."'>»</a>";echo "</div>\n";}}if (function_exists('add_theme_support')) {add_theme_support('post-thumbnails');add_image_size('app1', 150, 150, true);add_image_size('app2', 350, 350, true);}if ( function_exists('register_sidebar') )register_sidebar(array('name' => 'left','before_widget' => '<div class="l-post">','after_widget' => '</div>','before_title' => '<h3 class="title-part">','after_title' => '</h3>',));if ( function_exists('register_sidebar') )register_sidebar(array('name' => 'right','before_widget' => '<div class="r-post">','after_widget' => '</div>','before_title' => '<h3 class="title-part">','after_title' => '</h3>',));if ( function_exists('register_sidebar') )register_sidebar(array('name' => 'footer','before_widget' => '<div class="box">','after_widget' => '</div>','before_title' => '<h3 class="title-foot">','after_title' => '</h3>',));if ( function_exists('register_sidebar') )register_sidebar(array('name' => 'search','before_widget' => '<div class="search">','after_widget' => '</div>','before_title' => '','after_title' => '',));if ( function_exists('register_sidebar') )register_sidebar(array('name' => 'popular','before_widget' => '<div class="l-post">','after_widget' => '</div>','before_title' => '<h3 class="title-part popular">','after_title' => '</h3>',));if ( function_exists('register_sidebar') )register_sidebar(array('name' => 'login','before_widget' => '<div class="l-post">','after_widget' => '</div>','before_title' => '<h3 class="title-part logind">','after_title' => '</h3>',));if ( function_exists('register_sidebar') )register_sidebar(array('name' => 'lastpost','before_widget' => '<div class="l-post">','after_widget' => '</div>','before_title' => '<h3 class="title-part lastpost">','after_title' => '</h3>',));if ( function_exists('register_sidebar') )register_sidebar(array('name' => 'comments','before_widget' => '<div class="l-post">','after_widget' => '</div>','before_title' => '<h3 class="title-part lastcomments">','after_title' => '</h3>',));if ( function_exists('register_sidebar') )register_sidebar(array('name' => 'archive','before_widget' => '<div class="l-post">','after_widget' => '</div>','before_title' => '<h3 class="title-part archive">','after_title' => '</h3>',));if ( function_exists('register_sidebar') )register_sidebar(array('name' => 'catx','before_widget' => '<div class="r-post">','after_widget' => '</div>','before_title' => '<h3 class="title-part catx">','after_title' => '</h3>',));add_theme_support( 'custom-header' );remove_action('wp_head', 'wp_generator');if ( function_exists( 'add_image_size' ) ) {add_image_size( 'new-size', 350, 250, true ); //(cropped)}add_filter('image_size_names_choose', 'my_image_sizes');function my_image_sizes($sizes) {$addsizes = array("new-size" => __( "New Size"));$newsizes = array_merge($sizes, $addsizes);return $newsizes;}add_theme_support('post-formats', array('gallery','link','image','quote','status','video','audio','chat') );add_theme_support('post-formats', array('link','image','gallery','audio','video','status','quote','chat',) );/*?>function remove_image_sizes($image_sizes){ foreach($image_sizes as $key => $size){ if($size == 'large' || $size == 'medium') unset($image_sizes[$key]); } return $image_sizes;}add_filter('intermediate_image_sizes', 'remove_image_sizes', 12, 1);<?php */function register_my_menus(){register_nav_menus(array('cat-menu' => __( 'منو موضوعات' ),'main-menu' => __( 'منوی اصلی' ),'footer-menu' => __( 'منوی پاورگی' )));}add_action( 'init', 'register_my_menus' );$args = array('default-color' => '36567d','default-image' => '%1$s/images/background.jpg',);add_theme_support( 'custom-background', $args );if (!is_admin()) {function site_init(){wp_deregister_script('jquery');}add_action('init', 'site_init');}?>comments.php<?php/*** The template for displaying Comments** The area of the page that contains comments and the comment form.** @package WordPress* @subpackage Twenty_Thirteen* @since Twenty Thirteen 1.0*/[/right][/color][color=#282828][right]/** If the current post is protected by a password and the visitor has not yet* entered the password we will return early without loading the comments.*/if ( post_password_required() )return;?>[/right][/color][color=#282828][right]<div id="comments" class="comments-area">[/right][/color][color=#282828][right]<?php if ( have_comments() ) : ?> <h2 class="comments-title"> <?php printf( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'twentythirteen' ), number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); ?> </h2>[/right][/color][color=#282828][right] <ol class="comment-list"> <?php wp_list_comments( array( 'style' => 'ol', 'short_ping' => true, 'avatar_size' => 74, ) ); ?> </ol><!-- .comment-list -->[/right][/color][color=#282828][right] <?php // Are there comments to navigate through? if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> <nav class="navigation comment-navigation" role="navigation"> <h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'twentythirteen' ); ?></h1> <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentythirteen' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentythirteen' ) ); ?></div> </nav><!-- .comment-navigation --> <?php endif; // Check for comment navigation ?>[/right][/color][color=#282828][right] <?php if ( ! comments_open() && get_comments_number() ) : ?> <p class="no-comments"><?php _e( 'Comments are closed.' , 'twentythirteen' ); ?></p> <?php endif; ?>[/right][/color][color=#282828][right]<?php endif; // have_comments() ?>[/right][/color][color=#282828][right]<?php comment_form(); ?>[/right][/color][color=#282828][right]</div><!-- #comments --> نقل قول لینک به ارسال
مریم مقبولی 66 ارسال شده در شهریور 93 گزارش بازنشر ارسال شده در شهریور 93 والا من که اثری از تابعی برای نمایش نام نویسنده ندیدم !فک کنم لیست نظرات از فالب نظرات پیشفرض خود وردپرس به نمایش در میاد.به مسیر زیر بریدwp-includes/comment-template.phpببینید در خط 27 کد زیر هست یا نه$author = $user->display_name; 1 نقل قول لینک به ارسال
sparrow 11 ارسال شده در شهریور 93 مالک گزارش بازنشر ارسال شده در شهریور 93 والا داخل پوشه wp-includes فایلی به نام comment-template.php وجود نداره متاسفانه نقل قول لینک به ارسال
sparrow 11 ارسال شده در شهریور 93 مالک گزارش بازنشر ارسال شده در شهریور 93 ببخشی شما منظورتون این فایل نیست احیانا؟؟؟tiktak.info/ava/wp-includes/theme-compat/comments-popup.txt نقل قول لینک به ارسال
مریم مقبولی 66 ارسال شده در شهریور 93 گزارش بازنشر ارسال شده در شهریور 93 (ویرایش شده) نخیر نیست !نام کاربر رو تگ زیر نشون میده<cite class="fn">ava_part</cite>و باید دنبال کلاسی با نام fn باشید که این کلاس رو من فقط در فایلcomment-template.php دیدم !به نظرم غیر ممکنه این فایل نباشه مگر این که حذف کرده باشید. خوب بگردید . ویرایش شده شهریور 93 توسط مریم مقبولی 1 نقل قول لینک به ارسال
sparrow 11 ارسال شده در شهریور 93 مالک گزارش بازنشر ارسال شده در شهریور 93 من هر چی گشتم نبود متاسفانهاگه امکانش هست رمز بدم خودتون چک بکنید نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .