View Single Post
  #44  
Old 11-04-2003, 09:23 AM
 
Dlee Dlee is offline
 

Member
  
Join Date: Jan 2003
Location: Grand Prairie, TEXAS
Posts: 22
 

Default

wlekoh,

If you can locate the file you are almost done. Open this file in a text editor like notepad. I use TextPad and I recommend it, it is very easy to use. Look for the line or do a search in the document via your text editor for this line of code.

<textarea cols=65 rows=15 name=description>

at the end of this line is where the problem is. Their is an extra space there and needs to be deleted. Don't let the line wrap, just delete the space.

Here is the corrected version of category_modify.tpl

Code:
{* $Id: category_modify.tpl,v 1.20 2002/11/10 09:26:46 ndv Exp $ *} {include file="location.tpl" last_location="Add/Modify category"} {capture name=dialog} <table border=0> <form name="addform" action="category_modify.php?mode={$smarty.get.mode}" method=post enctype="multipart/form-data"> <tr> <td>[img]../icon.php?categoryid={$cat}&rand={$rand}[/img]</td> <td colspan=2></td> </tr> <tr> <td height="10" class=FormButton nowrap>Icon</td> <td width="10" height="10"></td> <td><input type="file" name="userfile"></td> </tr> <TR> <TD height="10" class=FormButton nowrap>Order by</TD> <TD width="10" height="10"></TD> <TD height="10"><INPUT type=text name="order_by" size=4 value="{if $category_error ne ""}{$smarty.post.order_by}{elseif $smarty.get.mode ne "add"}{$current_category.order_by}{/if}"> </TR> <tr> <td height="10" class=FormButton nowrap>Category</td> <td width="10" height="10"><font class=CustomerMessage>*</font></td> <td height="10"> <input type="text" name="category_name" size="30" value="{if $category_error ne ""}{$smarty.post.category_name|escape:"htmlall"}{elseif $smarty.get.mode ne "add"}{$current_category.category|escape:"htmlall"}{/if}"> {if $category_error ne ""} <font color=red><< Wrong value</font> {/if} </td> </tr> <tr> <td height="10" class=FormButton nowrap valign=top>Description</td> <td width="10" height="10"><font class=CustomerMessage></font></td> <td height="10"> <textarea cols=65 rows=15 name=description> {if $category_error ne ""}{$smarty.post.description|escape:"htmlall"}{elseif $smarty.get.mode ne "add"}{$current_category.description|escape:"htmlall"}{/if} </textarea> </td> </tr> {* funkydunk metamod 2003 *} <tr> <td height=10 class=FormButton nowrap>Page Title</td> <td width="10" height="10"><font class=FormButtonOrange></font></td> <td height=10> <input type=text name=page_title size="30" value="{if $category_error ne ""}{$smarty.post.page_title|escape:"htmlall"}{elseif $smarty.get.mode ne "add"}{$current_category.page_title|escape:"htmlall"}{/if}"> </td> </tr> <tr> <td height=10 class=FormButton nowrap>Meta Description</td> <td width="10" height="10"><font class=FormButtonOrange></font></td> <td height=10> <input type=text name=meta_description size="30" value="{if $category_error ne ""}{$smarty.post.meta_description|escape:"htmlall"}{elseif $smarty.get.mode ne "add"}{$current_category.meta_description|escape:"htmlall"}{/if}"> </td> </tr> {* end of funkydunk metamod 2003 *} <tr> {* funkydunk metamod 2003 *} <td height=10 class=FormButton nowrap>Meta Keywords</td> {* end of funkydunk metamod 2003 *} <td width="10" height="10"><font class=FormButtonOrange></font></td> <td height=10> <input type=text name=meta_tags size="30" value="{if $category_error ne ""}{$smarty.post.meta_tags|escape:"htmlall"}{elseif $smarty.get.mode ne "add"}{$current_category.meta_tags|escape:"htmlall"}{/if}"> </td> </tr> <TR> <TD height=10 class=FormButton nowrap>Membership</TD> <TD width=10 height=10><FONT class=FormButtonOrange></FONT></TD> <TD height=10> <SELECT name=cat_membership> <OPTION value=""{if $current_category.membership eq ""} selected{/if}>All</OPTION> {section name=mi loop=$membership_levels} {if $membership_levels[mi].usertype eq "C"} <OPTION value="{$membership_levels[mi].membership}"{if $current_category.membership eq $membership_levels[mi].membership} selected{/if}>{$membership_levels[mi].membership}</OPTION> {/if} {/section} </SELECT> </TD> </TR> <tr> <td height=10 class=FormButton nowrap>Availability</td> <td width=10 height=10><font class=CustomerMessage></font></td> <td height="10"> <select name=avail> <option value='Y' {if ($current_category.avail eq 'Y')} selected {/if}>Enabled</option> <option value='N' {if ($current_category.avail eq 'N')} selected {/if}>Disabled</option> </select> </td> </tr> <tr> <td width="78" class=FormButton></td> <td width="10"></td> <td width="282"> <input type=submit value="Submit"> </td> </tr> <input type=hidden name=cat value={$cat}> </form> </table> {/capture} {include file="dialog.tpl" title="Add/Modify category" content=$smarty.capture.dialog extra="width=100%"}

That should do it. Just paste this code in to category_modify.tpl and your done.

dlee
Reply With Quote