Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Comments, trackbacks & pings (http://forum.bytesforall.com/forumdisplay.php?f=19)
-   -   [SOLVED] Leave a Reply form is messed up... (http://forum.bytesforall.com/showthread.php?t=1732)

Mike May 20, 2009 01:50 PM

[SOLVED] Leave a Reply form is messed up...
 
None of the fields start at the begining when you click them.
I took a screenshot that shows where the text starts in each field. I marked it with the word "here":

http://img30.imageshack.us/img30/2835/websiteg.jpg

Also, notice that the field's descripition (i.e. Name, Mail etc) is on the right instead of the left.

I would also like to center the submit button.

Any ideas?

juggledad May 21, 2009 06:13 AM

what widget/plugin are you using? what's the site url?

Mike May 21, 2009 12:09 PM

http://elvis.nanocake.com

Not using any special widgets.

juggledad May 21, 2009 01:07 PM

Hmmm when I go and try to make a comment, my entries all line up at the left where you would expect them to.

to move the submit button, ou could edit the comments.php in the theme and at eh bottom locate

<!-- Submit -->
<p><input name="submit" type="submit" class="button" id="submit"

and change it to

<!-- Submit -->
<p><input style="position:relative; left:50px" name="submit" type="submit" class="button" id="submit"

and adjust the 50px to a size that works for you

Flynn May 21, 2009 10:01 PM

I could replicate this, seems to be caused by the line breaks inside the input and textarea HTML, on certain browser/OS combinations. To fix it in 3.3.3 (also in 3.3.2) edit comments.php by removing these 4 line breaks (the version below is the fixed version):


<input class="text author" type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="30" tabindex="1" />&nbsp;
<label for="<?php _e('author','atahualpa'); ?>"> <strong>
<?php _e('Name ','atahualpa'); echo "</strong>";
if ($req) _e('(required)','atahualpa'); ?></label>
</p>

<p>
<input class="text email" type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="30" tabindex="2" />&nbsp;
<label for="<?php _e('email','atahualpa'); ?>"> <strong>
<?php _e('Mail</strong> (will not be published) ','atahualpa');
if ($req) _e('(required)','atahualpa'); ?></label>
</p>

<p>
<input class="text url" type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="30" tabindex="3" />&nbsp;
<label for="<?php _e('url','atahualpa'); ?>">
<?php _e('Website','atahualpa'); ?></label>
</p>

<?php endif; ?>

<?php // Display Quicktags or allowed XHTML Tags
if (function_exists('lmbbox_comment_quicktags_display ')) {

echo "<p>"; lmbbox_comment_quicktags_display(); echo "</p>";

} else {

if ($bfa_ata['show_xhtml_tags'] == "Yes") { ?>
<p class="thesetags clearfix">
<?php printf(__('You can use %1$sthese HTML tags</a>','atahualpa'),
'<a class="xhtmltags" href="#" onclick="return false;">'); ?></p>
<div class="xhtml-tags"><p><code><?php echo allowed_tags(); ?>
</code></p></div>

<?php }
} ?>

<!-- Comment Textarea -->
<p><textarea name="comment" id="comment" rows="10" cols="10" tabindex="4"></textarea></p>
<?php do_action('comment_form', $post->ID); ?>

Mike May 22, 2009 09:21 AM

Thank you both! Everything works flawlessly now.

fromtheranks Jun 6, 2009 07:06 PM

Flynn,

The fix below definitely fixed the issue I was having with the default values for name, mail and web-site being right justified and nearly invisible. Thank you for that.

But, I still have another issue with Leave Reply:

Where are these default values coming from? And: Why are there default values?

In my dev environment (XP Pro, IIS 5.1, WP 2.7.1, etc.) the Leave Reply form is defaulting to my Author name, my personal e-mail address (which is not set in WP that I know of) and the URL for my soon to be (but not yet) released blog-site. ... This isn't normal is it? Defaulting values like this? ... And I can't find a setting anywhere (in WP or Atahualpa) that controls this. ... Note: I have not yet turned on "Users must be registered and logged in to comment" in the Discussions Settings.

?

I can't enter the URL for an image as I don't have my site up yet (soon but not yet).

Thanks in advance.

fromtheranks Jun 8, 2009 10:41 AM

1 Attachment(s)
As a brief update, I found where my non-site e-mail address was coming from (Settings --> General). It was set during install and forgotten.

However, the rest of the issue (as slightly amended below) remains:
In my dev environment (XP Pro, IIS 5.1, WP 2.7.1, Atahualpa 3.3.3. etc.) the Leave Reply form is defaulting to my Author name, my ... e-mail address ... and the URL for my soon to be (but not yet) released blog-site. ... This isn't normal is it? Defaulting values like this? ... And I can't find a setting anywhere (in WP or Atahualpa) that controls this. ... Note: I have not yet turned on "Users must be registered and logged in to comment" in the Discussions Settings, or "Anyone can register".
I've attached a cropped screen shot of what I see.

Thanks in advance.

juggledad Jun 9, 2009 04:11 AM

try clearing your cookies

fromtheranks Jun 9, 2009 09:33 AM

Bingo! I use FireFox 99% of the time, which auto clears cookies when I close, but since I have it open for research on several sites I've been using IE 7 for testing my WordPress build. ... Completely forgot about IE's penchant for clinging to cookies. ... Paint my cheeks pink. :o

Thanks, Juggledad.


All times are GMT -6. The time now is 02:59 PM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.