Home › Forums › Back End › Parse error: syntax error, unexpected ‘/’ —-> i tried … but still there is an error
- This topic is empty.
-
AuthorPosts
-
January 26, 2012 at 2:44 am #36319dagashParticipant
hi guys …
i am working on wordpress theme , and i had some error here ..i working on comment form , and i would to put a text ( label ) after the input boxes .
i tried many times but still there is error ..
array(
array(
'author' => '' . ( $req ? '*' : '' ) .
',
'
'email' => '' . ( $req ? '*' : '' ) .
',
'
'url' => '' .
',
'
),
'comment_notes_after' => '',
'comment_field' => ''
));
there is error here between line 1 to 10 …
the error :
Parse error: syntax error, unexpected '/'
# another questions :
1- how can i give the box a default value …? like (your name – your email …etc ) instead of put < labels > before or after boxes ..
2- the < textarea > , i want to make it not sizable .. because it make a distortion ..January 26, 2012 at 3:49 am #95440jamygoldenMemberReal question: The last item in the one array ‘url’ ends with a comma, try removing that.
#another questions:
1-
2-Add this to your css:
textarea {
resize: none;
}January 26, 2012 at 6:24 am #95445dagashParticipantfor your 1st answer , another error appeared ..
this is my comment.php file that work on it :
/**
* @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() ) :
?>
'fields' => apply_filters( 'comment_form_default_fields', array(
'author' => '' . ( $req ? '*' : '' ) .
',
'
'email' => '' . ( $req ? '*' : '' ) .
',
'
'url' => '' .
'
'
),
'logged_in_as' => '' . sprintf( __( 'أنت مسجل باسم %2$s. خروج' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '
',
'comment_notes_after' => '',
'comment_field' => ''
);
?>
?>
January 26, 2012 at 11:52 am #95457TheDocMemberThis is line 62:
'logged_in_as' => '
' . sprintf( __( 'أنت مسجل باسم %2$s. خروج' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '
',I wonder if it’s not liking the language? Try replacing the above with this:
'logged_in_as' => '
' . sprintf( __( 'Logged in as %2$s. Log out?' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ) . '
',If that works, then you know it’s something that you’ve changed that isn’t working.
January 26, 2012 at 1:42 pm #95480dagashParticipantstill error in line 62
January 26, 2012 at 1:49 pm #95483TheDocMemberYou have 33 open brackets but only 32 closed brackets. Something isn’t being closed.
January 27, 2012 at 4:32 am #95523dagashParticipanti cant find it ….
January 27, 2012 at 12:18 pm #95550TheDocMemberHere:
'fields' => apply_filters( 'comment_form_default_fields', array(
'author' => '' . ( $req ? '*' : '' ) .
',
'
'email' => '' . ( $req ? '*' : '' ) .
',
'
'url' => '' .
'
'
),
'logged_in_as' => '' . sprintf( __( 'أنت مسجل باسم %2$s. خروج' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '
',
'comment_notes_after' => '',
'comment_field' => ''
); // THIS IS CLOSING YOUR APPLY_FILTERS, NOT THE ARRAYAuthorPostsViewing 8 posts - 1 through 8 (of 8 total)- The forum ‘Back End’ is closed to new topics and replies.
التعليقات على هذه التدوينة :