- This topic is empty.
-
AuthorPosts
-
January 20, 2012 at 11:35 am #36229dagashParticipant
i had an error while comment.php loading .
the error is :
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in C:xampphtdocswordwp-contentthemes3thoobcomments.php on line 57
/**
* @package WordPress
*
*/
?>
/* Stop the rest of comments.php from being processed,
* but don't kill the script entirely -- we still have
* to fully load the template.
*/
return;
endif;
?>
// You can start editing here -- including this comment!
?>
'athoob_comment' ) ); ?>
/* If there are no comments and comments are closed,
* let's leave a little note, shall we?
* But only on posts! We don't want the note on pages.
*/
if ( ! comments_open() && ! is_page() ) :
?>
array(
'fields' => apply_filters( 'comment_form_default_fields',
array(
'author' => ''.',
'' .
'حقل ضروري'.
'
'email' => ''.',
'' .
'حقل ضروري'.
'
'url' => '' .',
'' .
'
'comment_field' => ''.'),
' ' .
'
'must_log_in' => '' . sprintf( __( 'You must be logged in to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '',
'logged_in_as' => '' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ),
'comment_notes_before' => '',
اكتب تعليقك
'comment_notes_after' => ' ',
'id_form' => 'commentform',
'id_submit' => 'submit',
'title_reply' => 'الرد على التعليق',
'title_reply_to' => 'رد على هذا التعليق',
'cancel_reply_link' => 'إلغاء الرد',
'label_submit' => 'إضافة التعليق',
); ?>
January 20, 2012 at 1:32 pm #95089TheDocMemberRemove all of this:
array(
'fields' => apply_filters( 'comment_form_default_fields',
array(
'author' => ''.',
'' .
'حقل ضروري'.
'
'email' => ''.',
'' .
'حقل ضروري'.
'
'url' => '' .',
'' .
'
'comment_field' => ''.'),
' ' .
'
'must_log_in' => '' . sprintf( __( 'You must be logged in to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '',
'logged_in_as' => '' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ),
'comment_notes_before' => '',
اكتب تعليقك
'comment_notes_after' => ' ',
'id_form' => 'commentform',
'id_submit' => 'submit',
'title_reply' => 'الرد على التعليق',
'title_reply_to' => 'رد على هذا التعليق',
'cancel_reply_link' => 'إلغاء الرد',
'label_submit' => 'إضافة التعليق',
); ?>Then add:
And then go one by one through your arrays until you find the problem.
January 20, 2012 at 2:21 pm #95091dagashParticipantthis reload the default form …
also im tired with this mess ..
January 20, 2012 at 2:27 pm #95092TheDocMemberIt’s not the default form because you have added a bunch of stuff. The WordPress built-in themes (twentyeleven) simply use the comment_form() function.
January 20, 2012 at 2:45 pm #95093dagashParticipantok i solve the comments.php error …
but still there are problems …
look at this image : Your text to link…when i am not log in , there is a duplicate form , one from mine and other the default wordpress form .
this is my single.php :
عفوا ، يبدو أنه لا يوجد أي تدوينات
January 20, 2012 at 3:45 pm #95096TheDocMemberYou are calling in this:
Would need to see what’s in there.
January 22, 2012 at 2:44 am #95161dagashParticipanti will try to customize the default form .. but what is the the actually code of the default form …??
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.
التعليقات على هذه التدوينة :