• Hello folks!

    I already posted my problem here but no answer yet, maybe someone here has any hints for me

    my version of the theme doesnt save the content of the 3 comment fields for guest, so they have to fill in name, email and url again and again for every comment

    thats the code for the not working version

    <p id="comment-form-name" class="section">
    		<label for="author"><?php _e('Name', 'carrington'); ?></label>
    		<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="2" />
    		<?php if ($req) : ?><span class="note"><?php _e('(required)', 'carrington'); ?></span><?php endif; ?>
    	</p><!--/name-->
    	<p id="comment-form-email" class="section">
    		<label for="email"><?php _e('Email', 'carrington'); ?></label>
    		<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="3" />
    		<span class="note"><?php
    			if ($req) {
    				_e('(required, but never shared)', 'carrington');
    			}
    			else {
    				_e('(never shared)', 'carrington');
    			}
    ?></span>
    	</p><!--/email-->
    	<p id="comment-form-url" class="section">
    		<label title="<?php _e('Your website address', 'carrington'); ?>" for="url"><?php _e('Web', 'carrington'); ?></label>
    		<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="4" />
    	</p><!--/url-->

    in the newest version of carrington blog the comment fields save the data and there it looks like this.. but I dont have a clue what to chance in the code above

    <p class="comment-form-user-info tight">
    			<input type="text" id="author-p<?php echo $post->ID; ?>" name="author" value="<?php echo $comment_author; ?>" size="22" />
    			<label for="author-p<?php echo $post->ID; ?>"><?php _e('Name', 'carrington-blog'); if ($req) { echo ' <em>' , _e('(required)', 'carrington-blog'), '</em>'; } ?></label>
    		</p><!--/name-->
    		<p class="comment-form-user-info tight">
    			<input type="text" id="email-p<?php echo $post->ID; ?>" name="email" value="<?php echo $comment_author_email; ?>" size="22" />
    			<label for="email-p<?php echo $post->ID; ?>"><?php
    			_e('Email ', 'carrington-blog');
    			$req ? $email_note = __('(required, but never shared)', 'carrington-jam') : $email_note = __('(never shared)', 'carrington-jam');
    			echo ' <em>'.$email_note.'</em>';
    ?></label>
    		</p><!--/email-->
    		<p class="comment-form-user-info tight">
    			<input type="text" id="url-p<?php echo $post->ID; ?>" name="url" value="<?php echo $comment_author_url; ?>" size="22" />
    			<label title="<?php _e('Your website address', 'carrington-blog'); ?>" for="url-p<?php echo $post->ID; ?>"><?php _e('Web', 'carrington-blog'); ?></label>
    		</p><!--/url-->

    upgrading the theme.. okay, that would be possible but I made some changes and that took me – as a noob – some time ;((

    second question: language files to download exist? I dont find anything for my version, too blind I guess X_X

    Thaaaanks a lot for any ideas and thoughts!

    greetings

    PS: the code is from the comment.php and replacing the not working file with the working file leads to errors, I guess due to new functions, other function names and stuff. but I cant localize the part which tells the comment fields to save entered data for commenting guests =(

  • The topic ‘2 Questions: comment fields data and language files’ is closed to new replies.