majid1889 733 ارسال شده در دی 92 گزارش بازنشر ارسال شده در دی 92 سلامارور Access denied معمولا وقتی ظاهر میشه که کاربر بخواد به جایی دسترسی داشته باشه که فقط در صورت لاگین بودن میتونه دسترسی داشته باشه .ولی چون لاگین نیست این پیغام میاد .من میخوام متن این پیغام " Access denied " رو عوض کنم ولی واقعا نتونستم پیدا کنم که از کجا فراخوانی میشه ...ممنون میشم کمک کنید ! نقل قول لینک به ارسال
Farzad 3805 ارسال شده در دی 92 گزارش بازنشر ارسال شده در دی 92 این ارور از سمت وردپرس میاد یا سرور ؟ نقل قول لینک به ارسال
majid1889 733 ارسال شده در دی 92 مالک گزارش بازنشر ارسال شده در دی 92 (ویرایش شده) این ارور از سمت وردپرس میاد یا سرور ؟وردپرس !من مشکل با ارور دادنش نیست .خودم کاری کردم که ارور بده ...میخوام متنش عوض بشه ! ویرایش شده دی 92 توسط majid1889 نقل قول لینک به ارسال
Parsa 23463 ارسال شده در دی 92 گزارش بازنشر ارسال شده در دی 92 تست کنیدfunction access_denied_custom() {if ( ! is_user_logged_in() || is_network_admin() )return;$blogs = get_blogs_of_user( get_current_user_id() );if ( wp_list_filter( $blogs, array( ‘userblog_id’ => get_current_blog_id() ) ) )return;$blog_name = get_bloginfo( ‘name’ );if ( empty( $blogs ) )wp_die( __( ‘The user does not have admin access. Click here to logout and login as user.’));}add_action( ‘admin_page_access_denied’, ‘access_denied_custom’, 99 );http://rajnikantdas.wordpress.com/2013/05/10/customize-access-denied-message-in-wordpress/ 1 نقل قول لینک به ارسال
majid1889 733 ارسال شده در دی 92 مالک گزارش بازنشر ارسال شده در دی 92 شرمنده آقا پارسا کدهای function قالب من یه خرده پیچیده هستاگه میشه خودتون ادیت کنید :<?phpadd_action( 'after_setup_theme', 'et_setup_theme' );if ( ! function_exists( 'et_setup_theme' ) ){function et_setup_theme(){ require_once(TEMPLATEPATH . '/epanel/custom_functions.php'); require_once(TEMPLATEPATH . '/includes/functions/comments.php'); require_once(TEMPLATEPATH . '/includes/functions/sidebars.php'); load_theme_textdomain('Magnificent',get_template_directory().'/lang'); require_once(TEMPLATEPATH . '/epanel/options_magnificent.php'); require_once(TEMPLATEPATH . '/epanel/core_functions.php'); require_once(TEMPLATEPATH . '/epanel/post_thumbnails_magnificent.php'); include(TEMPLATEPATH . '/includes/widgets.php');}}add_action('wp_head','et_portfoliopt_additional_styles',100);/* MY FUNCTIONS *//* the comment function start *//* the comment function */function ahs_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(empty($args['has_children']) ? '' : 'parent'); ?> id="li-comment-<?php comment_ID() ?>"> <div id="comment-<?php comment_ID(); ?>"> <div class="comment-data"> <div class="comment-data2"> <div class="avatarnreply"> <?php echo get_avatar($comment,$size='78',$default=get_bloginfo('stylesheet_directory').'/images/comment-avatar.png' ); ?> <div class="reply"> <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> </div> </div> <div class="commentbody"> <h4><?php printf(__('%s'), get_comment_author_link()) ?><?php edit_comment_link(__('Edit'),'<span class="sm"> | ','</span>') ?></h4> <div class="dateandtime"><?php printf(__('%1$s %2$s'), get_comment_date('m/d/Y'), get_comment_time('H:iA')) ?></a></div> <?php comment_text() ?> <?php if ($comment->comment_approved == '0') : ?> <br /><em><?php _e('Your comment is awaiting moderation.') ?></em> <?php endif; ?> </div> <div class="clr"> </div> </div> </div> <div class="clr"> </div> </div><?php }/* the comment function end */function et_portfoliopt_additional_styles(){ ?><style type="text/css"> #et_pt_portfolio_gallery { margin-left: -11px; } .et_pt_portfolio_item { margin-left: 23px; } .et_portfolio_small { margin-left: -39px !important; } .et_portfolio_small .et_pt_portfolio_item { margin-left: 34px !important; } .et_portfolio_large { margin-left: -20px !important; } .et_portfolio_large .et_pt_portfolio_item { margin-left: 14px !important; }</style><?php }function insertThumbnailRSS($content) {global $post;$thumb = ''; $thumb = get_post_meta($post->ID, 'Thumbnail',true);if ( has_post_thumbnail( $post->ID ) ){ $content = '<p>' . get_the_post_thumbnail( $post->ID, 'medium' ) . '</p>' . $content;} else if ($thumb <> '') { $content = '<p>' . '<img src="'. et_new_thumb_resize( et_multisite_thumbnail($thumb), 300, 200, '', true ) .'"/>' . '</p>' . $content;}return $content;}add_filter('the_excerpt_rss', 'insertThumbnailRSS');add_filter('the_content_feed', 'insertThumbnailRSS');function register_main_menus() {register_nav_menus( array( 'primary-menu' => __( 'Primary Menu' ) ));}if (function_exists('register_nav_menus')) add_action( 'init', 'register_main_menus' );if ( ! function_exists( 'et_list_pings' ) ){function et_list_pings($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li id="comment-<?php comment_ID(); ?>"><?php comment_author_link(); ?> - <?php comment_excerpt(); ?><?php }} ?> نقل قول لینک به ارسال
Parsa 23463 ارسال شده در دی 92 گزارش بازنشر ارسال شده در دی 92 شما باید اون کد رو اضافه کنیدنیاز به ویرایش نیستکد در بین <?php ?> قرار دهید نقل قول لینک به ارسال
majid1889 733 ارسال شده در دی 92 مالک گزارش بازنشر ارسال شده در دی 92 عزیز !میدونم اینوولی این فانکشنش یه ساختاری داره که وقتی اینکار رو میکنی کل سایت صفحه سفید میاد ...تا حالا این کار رو زیاد تجربه کردم مشکل از تگ هاست ! نقل قول لینک به ارسال
Parsa 23463 ارسال شده در دی 92 گزارش بازنشر ارسال شده در دی 92 بعد از کد ابتدایی قرار دهید<?php نقل قول لینک به ارسال
majid1889 733 ارسال شده در دی 92 مالک گزارش بازنشر ارسال شده در دی 92 هیچ تغییری ایجاد نشدهنوز هم همون Access denied رو میده !+ روی یه قالب دیگه امتحان کردم قالب قبلیه نشد ! نقل قول لینک به ارسال
Morteza 34190 ارسال شده در دی 92 گزارش بازنشر ارسال شده در دی 92 روی پوسته دیگه کار کرد؟ نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .