PRGAME 175 ارسال شده در شهریور 91 گزارش بازنشر ارسال شده در شهریور 91 (ویرایش شده) این فایل فاکشنم هست و من وقتی پست ارسال میکنم یا کار دبگه ای میکنم صفحه سفید میشه.اگر میشه چک کنید و اصلاح کنید. <?phpregister_sidebar(array('name' => 'right','before_widget' => '<div class="bl">','before_title' => '<div class="sarbl"><div class="sarbl2">','after_title' => '</div></div><div class="bm">','after_widget' => '</div></div>',));?><?phpregister_sidebar(array('name' => 'left','before_widget' => '<div class="bl">','before_title' => '<div class="sarbl"><div class="sarbl2">','after_title' => '</div></div><div class="bm">','after_widget' => '</div></div>',));?><?phpfunction catch_that_image() {global $post, $posts;$first_img = '';ob_start();ob_end_clean();$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);$first_img = $matches [1] [0];if(empty($first_img)){ //Defines a default image$first_img = "wp-content/themes/modern mine/images/bed.png";}return $first_img;}?><?phpfunction catch_that_a() {global $post, $posts;$second_a = '';ob_start();ob_end_clean();$output = preg_match_all('/<a.+href=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);$second_a = $matches [1] [0];if(empty($second_a)){ //Defines a default a$second_a = "http://#/";}return $second_a;}?><?php function comment_loop_cd( $comment, $args, $depth ) {$GLOBALS['comment'] = $comment;switch ( $comment->comment_type ) : case 'pingback' : case 'trackback' :?><li class="post pingback"> <p>بازتاب: <?php comment_author_link(); ?><?php edit_comment_link( 'ویرایش', '<span class="edit-link">', '</span>' ); ?></p><?php break; default :?><li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> <article id="comment-<?php comment_ID(); ?>" class="comment"> <footer class="comment-meta"> </article><div class="fooc"><div class="namec"><?php /* translators: 1: comment author, 2: date and time */ printf( '%1$s %2$s ', sprintf( '<span class="fn">%s می گه :</span>', get_comment_author_link() ), sprintf( '', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( '%1$s ، %2$s', get_comment_date(""), get_comment_time() ) ) ); ?></div> <div class="reply"> <?php comment_reply_link( array_merge( $args, array( 'reply_text' => 'پاسخ <span>↓</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> </div> </div> <div class="comment-author vcard"> <?php $avatar_size = 45; if ( '0' != $comment->comment_parent ) $avatar_size = 39; echo get_avatar( $comment, $avatar_size ); ?> <?php edit_comment_link( '(ویرایش)', '<span class="edit-link">', '</span>' ); ?> </div><!-- .comment-author .vcard --> <?php if ( $comment->comment_approved == '0' ) : ?> <em class="comment-awaiting-moderation">نظر شما بعد از تائید نمایش داده میشود.</em> <br /> <?php endif; ?> </footer> <div class="comment-content"><?php comment_text(); ?></div><!-- .reply --> <!-- #comment-## --><div class="comfor"><?php break;endswitch;}function comment_form_cd( $args = array(), $post_id = null ) {global $id;if ( null === $post_id ) $post_id = $id;else $id = $post_id;$commenter = wp_get_current_commenter();$user = wp_get_current_user();$user_identity = ! empty( $user->ID ) ? $user->display_name : '';$req = get_option( 'require_name_email' );$aria_req = ( $req ? " aria-required='true'" : '' );$fields = array( 'author' => '<p class="comment-form-author">' .'<div class="ss">نام:</div>'. '<label for="author">' . ( $req ? '' : '' ) .' </label><input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p><br>', 'email' => '<p class="comment-form-email"><label for="email">' . ( $req ? '' : '' ) .' <p><div class="ss">ایمیل :</div></p> </label><input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>', 'url' => '<p class="comment-form-url"><label for="url"><br><div class="ss">وب سایت</div></label>' . '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>',);$required_text = sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' );$defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', $fields ), 'comment_field' => '<br><p class="comment-form-comment"><br><label style=" float: right;" for="comment">دیدگاه: </label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>', 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 'comment_notes_before' => '', 'comment_notes_after' => '', 'id_form' => 'commentform', 'id_submit' => 'submit', 'title_reply' => __( 'Leave a Reply' ), 'title_reply_to' => __( 'Leave a Reply to %s' ), 'cancel_reply_link' => __( 'Cancel reply' ), 'label_submit' => 'ارسال دیدگاه',);//'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>',$args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) );?> <?php if ( comments_open() ) : ?> <?php do_action( 'comment_form_before' ); ?> <div id="respond"> <h3 id="reply-title"><?php comment_form_title( $args['title_reply'], $args['title_reply_to'] ); ?> <small><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></small></h3> <?php if ( get_option( 'comment_registration' ) && !is_user_logged_in() ) : ?> <?php echo $args['must_log_in']; ?> <?php do_action( 'comment_form_must_log_in_after' ); ?> <?php else : ?> <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>"> <?php do_action( 'comment_form_top' ); ?> <?php if ( is_user_logged_in() ) : ?> <?php echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity ); ?> <?php do_action( 'comment_form_logged_in_after', $commenter, $user_identity ); ?> <?php else : ?> <?php echo $args['comment_notes_before']; ?> <?php do_action( 'comment_form_before_fields' ); foreach ( (array) $args['fields'] as $name => $field ) { echo apply_filters( "comment_form_field_{$name}", $field ) . "\n"; } do_action( 'comment_form_after_fields' ); ?> <?php endif; ?> <?php echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); ?> <?php echo $args['comment_notes_after']; ?> <p class="form-submit"> <input name="submit" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" /> <?php comment_id_fields( $post_id ); ?> </p> <?php do_action( 'comment_form', $post_id ); ?> </form> <?php endif; ?> </div><!-- #respond --> <?php do_action( 'comment_form_after' ); ?> <?php else : ?> <?php do_action( 'comment_form_comments_closed' ); ?> <?php endif; ?> </div><?php}?> ویرایش شده شهریور 91 توسط Morteza نقل قول لینک به ارسال
PRGAME 175 ارسال شده در شهریور 91 مالک گزارش بازنشر ارسال شده در شهریور 91 اینم چند خط اخر فایل error log :[13-Sep-2012 03:32:48] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/feed-atom.php on line 8[13-Sep-2012 07:37:52] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/pluggable.php on line 881[13-Sep-2012 08:23:51] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/feed-rss2.php on line 8[13-Sep-2012 08:23:57] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/feed-atom.php on line 8[13-Sep-2012 08:48:10] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/pluggable.php on line 881[13-Sep-2012 08:48:20] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/pluggable.php on line 881[13-Sep-2012 08:48:29] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/pluggable.php on line 881[13-Sep-2012 08:48:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/pluggable.php on line 881[13-Sep-2012 08:48:35] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/pluggable.php on line 881[13-Sep-2012 08:48:39] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/pluggable.php on line 881 نقل قول لینک به ارسال
PRGAME 175 ارسال شده در شهریور 91 مالک گزارش بازنشر ارسال شده در شهریور 91 مثل اینگه هیچ کس نمیخاد جواب بده!!!!! نقل قول لینک به ارسال
Helical 244 ارسال شده در شهریور 91 گزارش بازنشر ارسال شده در شهریور 91 (ویرایش شده) فایل پیوستی رو چک کنید.functions.php ویرایش شده شهریور 91 توسط Helical 2 نقل قول لینک به ارسال
PRGAME 175 ارسال شده در شهریور 91 مالک گزارش بازنشر ارسال شده در شهریور 91 فایل پیوستی رو چک کنید.functions.phpدرست نشد . تازه کامنت هام هم یه چیزشون تغییر کرد.اگر میشه دوباره چک کنید. نقل قول لینک به ارسال
Morteza 34190 ارسال شده در شهریور 91 گزارش بازنشر ارسال شده در شهریور 91 همچنان صفحه سفید میاد؟پوسته رو روی پیش فرض ست کنید و دوباره تست کنید. 1 نقل قول لینک به ارسال
Helical 244 ارسال شده در شهریور 91 گزارش بازنشر ارسال شده در شهریور 91 شما خود فایل فانکشن رو پیوست کنید بررسی بشه. 1 نقل قول لینک به ارسال
rezaonline 2655 ارسال شده در شهریور 91 گزارش بازنشر ارسال شده در شهریور 91 وقتی یک خط خالی در فایل فانکشن هست که جز php نیست بعنوان یک خروجی محسوب میشه .بطور مثال شما توی تمام این فایل جدین بار چنین چیزی دارید .?><?phpاون فضای خالی باعث ارسال خروجی با بافر میشه .توی فایل فانکشن یک بار بالای فایل<?phpو دیگه نبندینش .فضای خالی اگر داخل تگ پی اچ پی باشه به مرورگر بافر نمیشه . 4 نقل قول لینک به ارسال
PRGAME 175 ارسال شده در شهریور 91 مالک گزارش بازنشر ارسال شده در شهریور 91 پوسته رو وقتی عوض میکنم درست میشه! نقل قول لینک به ارسال
Morteza 34190 ارسال شده در شهریور 91 گزارش بازنشر ارسال شده در شهریور 91 فایل فاکشن رو فشرده و پیوست کنید. نقل قول لینک به ارسال
PRGAME 175 ارسال شده در مهر 91 مالک گزارش بازنشر ارسال شده در مهر 91 حالا دیگه صفحه سایتم سفید میاد:ادرس :www.p30iran.irاینم فایل فاکشنfunctions.php نقل قول لینک به ارسال
Morteza 34190 ارسال شده در مهر 91 گزارش بازنشر ارسال شده در مهر 91 تست کنیدfunctions.php 2 نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .