New Zenner
- Join Date:
- Jun 2009
- Posts:
- 85
- Plugin Contributions:
- 0
Need help with character limit page.
Hello.
We had someone trying to just limit the number of characters (without the feedback) in input field on a Gift Certificate page and now, after the page gets sent over, in the actual email/HTML Gift Certificate file text just gets cut off after 118 characters... even thought he put a warning next to the input field: "Please, limit your message to 200 characters! Your message will be cut short after that."... I have no idea where to fix it... Can't get in touch with this guy. Any ideas on where should I look it up?
Thanks.
Here is the tpl_gv_send_default.php file:
<?php /** * Page Template * * Template used to collect/display details of sending a GV to a friend from own GV balance. <br /> * * @package templateSystem * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_gv_send_default.php 5924 2007-02-28 08:25:15Z drbyte $ */ ?> <div class="centerColumn" id="gvSendDefault"> <div id="sendSpendWrapper"class="forward"> <h2><?php echo TEXT_AVAILABLE_BALANCE;?></h2> <p id="gvSendDefaultBalance"><?php echo TEXT_BALANCE_IS . $gv_current_balance; ?></p> <?php if ($gv_result->fields['amount'] > 0 && $_GET['action'] == 'doneprocess') { ?> <p><?php echo TEXT_SEND_ANOTHER; ?></p> <div class="buttonRow forward"><a href="<?php echo zen_href_link(FILENAME_GV_SEND, '', 'SSL', false); ?>"><?php echo zen_image_button(BUTTON_IMAGE_SEND_ANOTHER, BUTTON_SEND_ANOTHER_ALT); ?></a></div> <?php } ?> </div> <?php if ($_GET['action'] == 'doneprocess') { ?> <!--BOF GV sent success--> <h1 id="gvSendDefaultHeadingDone"><?php echo HEADING_TITLE_COMPLETED; ?></h1> <div id="gvSendDefaultContentSuccess" class="content"><?php echo TEXT_SUCCESS; ?></div> <div class="buttonRow forward"><a href="<?php echo zen_href_link(FILENAME_DEFAULT, '', 'SSL', false); ?>"><?php echo zen_image_button(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT); ?></a></div> <!--EOF GV sent success --> <?php } if ($_GET['action'] == 'send' && !$error) { ?> <!--BOF GV send confirm --> <div id="gvSendDefaultMainMessage" class="content"><?php echo HEADING_TITLE_CONFIRM_SEND; ?></div><br /> <form action="<?php echo zen_href_link(FILENAME_GV_SEND, 'action=process', 'SSL', false); ?>" method="post"> <div id="gvSendDefaultMainMessage" class="content"><?php echo sprintf(MAIN_MESSAGE, $currencies->format($_POST['amount'], false), $_POST['to_name'], $_POST['email']); ?></div> <div id="gvSendDefaultMessageSecondary" class="content"><?php echo sprintf(SECONDARY_MESSAGE, $_POST['to_name'], $currencies->format($_POST['amount'], false), $send_name); ?></div> <?php if ($_POST['message']) { ?> <div id="gvSendDefaultMessagePersonal" class="content"><?php echo sprintf(PERSONAL_MESSAGE, $send_firstname); ?></div> <div id="gvSendDefaultMessage" class="content"><?php echo stripslashes($_POST['message']); ?></div> <?php }
echo zen_draw_hidden_field('to_name', stripslashes($_POST['to_name'])) . zen_draw_hidden_field('email', $_POST['email']) . zen_draw_hidden_field('amount', $gv_amount) . zen_draw_hidden_field('message', stripslashes($_POST['message']));
?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_SEND, BUTTON_CONFIRM_SEND_ALT); ?></div> <div class="buttonRow back"><?php echo zen_image_submit(BUTTON_IMAGE_EDIT_SMALL, BUTTON_EDIT_SMALL_ALT, 'name="edit" value="edit"'); ?></div> </form> <br class="clearBoth" /> <div class="advisory"><?php echo EMAIL_ADVISORY_INCLUDED_WARNING . str_replace('-----', '', EMAIL_ADVISORY); ?></div> <!--EOF GV send confirm --> <?php } elseif ($_GET['action']=='' || $error) { ?> <!--BOF GV send--> <div id="gvSendDefaultMainContent" class="content"><?php echo HEADING_TEXT; ?></div> <br class="clearBoth" /> <?php if ($messageStack->size('gv_send') > 0) echo $messageStack->output('gv_send'); ?>**<form action="<?php echo zen_href_link(FILENAME_GV_SEND, 'action=send', 'SSL', false); ?>" method="post">
<fieldset> <legend><?php echo HEADING_TITLE; ?></legend><label class="inputLabel" for="to-name"><?php echo ENTRY_NAME; ?></label>
<?php echo zen_draw_input_field('to_name', $_POST['to_name'], 'size="40" id="to-name"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>';?> <br class="clearBoth" /><label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL; ?></label>
<?php echo zen_draw_input_field('email', $_POST['email'], 'size="40" id="email-address"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; if ($error) echo $error_email; ?> <br class="clearBoth" /><label class="inputLabel" for="amount"><?php echo ENTRY_AMOUNT; ?></label>
<?php echo zen_draw_input_field('amount', $_POST['amount'], 'id="amount"', 'text', false) . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; if ($error) echo $error_amount; ?> <br class="clearBoth" /><label class="message-area"><?php echo ENTRY_MESSAGE; ?></label>
<?php echo zen_draw_textarea_field('message', 50, 3, stripslashes($_POST['message']), 'id="message-area"'); ?> <div id="gvLimitText"><?php echo EMAIL_GV_LIMIT_TEXT; ?></div> </fieldset> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div> <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div> <br class="clearBoth" /> </form>** <div class="advisory"><?php echo EMAIL_ADVISORY_INCLUDED_WARNING . str_replace('-----', '', EMAIL_ADVISORY); ?></div> <?php } ?> <!--EOF GV send--> </div>