MyBB Community Forums

Full Version: can't figure this out?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In this forum announcement, why so much white space between the text and the donation button? How can I correct this?

[Image: 2006-11-28_202415.png]
Hmm.. May we have a link to your forum, that image(which almost didn't look like an imge) doesn't tell us much...
Christian Wrote:Hmm.. May we have a link to your forum, that image(which almost didn't look like an imge) doesn't tell us much...

http://houserepairforums.com/announcements.php?aid=2


Here's the code in the announcement:

We use PayPal.com to process your donations. All transactions are on a secure server for your safety.

Any amount donated is greatly appreciated.

Thank-you!
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="item_name" value="House Repair Forums">
<input type="hidden" name="amount" value="5.00">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
Hmm. Appears that MyBB is adding a line break after each line of code thus making the donation button the way it is. This is they way it's suppose to work, but.. Lets move this to bugs and see what they can come up with.
When viewing source code from that page...
Thank-you!<br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><br />
<input type="hidden" name="cmd" value="_xclick"><br />
<input type="hidden" name="business" value="[email protected]"><br />
<input type="hidden" name="item_name" value="House Repair Forums"><br />
<input type="hidden" name="amount" value="5.00"><br />
<input type="hidden" name="no_shipping" value="2"><br />
<input type="hidden" name="no_note" value="1"><br />
<input type="hidden" name="currency_code" value="USD"><br />
<input type="hidden" name="tax" value="0"><br />
<input type="hidden" name="lc" value="US"><br />
<input type="hidden" name="bn" value="PP-DonationsBF"><br />
All those <br />'s are causing those lines. The code that you have supplied us here doesn't show anything about line breaks (as far as I can see).

PS. Nice forums. Smile
As a temporary solution you can put it all in one line. Form HTML wasn't necessarily meant for announcements. More like basic <strong> and <i> tags. I'm moving this to suggestions. I'm thinking a newline to <br /> option "Yes" "No" check box in the create a new announcement form
Agreed agreed agreed agreed.