Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Help with adding a txt in languages..it won't let me add!!!!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-20-2002, 02:18 PM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default Help with adding a txt in languages..it won't let me add!!!!

Hello, I recently inserted some html into a txt_web_quote for my page, and the first time I added it it worked, but i guess I had it set to wide, so it screwed my xcart up, so i had to delete that, and when I tried to add one without specifying a table size, it just wouldn't load, it took me back to the add new txt page, i tried to add it again, and it won't load! I don't understand this! It did it before also! Please help me if you know why it does this! And it only does it when I add html with forms!

Here is the html.

<html>
<body>
<form method="POST" name="FrontPage_Form1" action="freequote.php" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber3">
<tr>
<td width="558" colspan="2">Contact Information:</td>
</tr>
<tr>
<td width="558" colspan="2"></td>
</tr>
<tr>
<td width="94" align="right">Name:</td>
<td width="464">
<input type="text" name="Name" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
</tr>
<tr>
<td width="94" align="right">Company:</td>
<td width="464">
<input type="text" name="Company" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
</tr>
<tr>
<td width="94" align="right">Title:</td>
<td width="464">
<input type="text" name="Title" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
</tr>
<tr>
<td width="94" align="right">Address:</td>
<td width="464">
<input type="text" name="Address1" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
</tr>
<tr>
<td width="94" align="right">Address:</td>
<td width="464">
<input type="text" name="Address2" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
</tr>
<tr>
<td width="94" align="right">Country:</td>
<td width="464">
<input type="text" name="Country" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
</tr>
<tr>
<td width="94" align="right">E-Mail:</td>
<td width="464">
<input type="text" name="email" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
</tr>
<tr>
<td width="94" align="right">Phone:</td>
<td width="464">
<input type="text" name="phone" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
</tr>
<tr>
<td width="94" align="right">Fax:</td>
<td width="464">
<input type="text" name="fax" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
</tr>
<tr>
<td width="94" align="right">URL:</td>
<td width="464">
<input type="text" name="url" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
</tr>
<tr>
<td width="94"></td>
<td width="464"></td>
</tr>
<tr>
<td width="558" colspan="2">Describe Your Company:</td>
</tr>
<tr>
<td width="94"></td>
<td width="464">
<textarea rows="4" name="Company_Description" cols="48" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td>
</tr>
<tr>
<td width="94"></td>
<td width="464"></td>
</tr>
<tr>
<td width="558" colspan="2">Target Audience Web Page Is Intended For:</td>
</tr>
<tr>
<td width="94"></td>
<td width="464">
<textarea rows="4" name="Intended_Audience" cols="48" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td>
</tr>
<tr>
<td width="94"></td>
<td width="464"></td>
</tr>
<tr>
<td width="558" colspan="2">When Does Your Site Need To Be Online?</td>
</tr>
<tr>
<td width="94"></td>
<td width="464">
<textarea rows="4" name="Time_To_Live" cols="48" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td>
</tr>
<tr>
<td width="94"></td>
<td width="464"></td>
</tr>
<tr>
<td width="558" colspan="2">Describe The Theme Of Your New Web Site:</td>
</tr>
<tr>
<td width="94"></td>
<td width="464">
<textarea rows="4" name="Site_Theme" cols="48" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td>
</tr>
<tr>
<td width="94"></td>
<td width="464"></td>
</tr>
<tr>
<td width="558" colspan="2">Based On The Given Examples, Choose One
Which Best Will Resemble Your Site:
</td>
</tr>
<tr>
<td width="94"></td>
<td width="464"></td>
</tr>
<tr>
<td width="94">Personal:</td>
<td width="464"><input type="radio" value="Personal" name="Choose_Site">Few
Graphics, Little Interactivity, 1-10 Pages</td>
</tr>
<tr>
<td width="94">Small Business:</td>
<td width="464">
<input type="radio" value="Small_Business" name="Choose_Site">Custom
Graphics, Forms, Moderate Interactivity, 10-20 Pages</td>
</tr>
<tr>
<td width="94">Large Business:</td>
<td width="464">
<input type="radio" value="Large_Business" name="Choose_Site">Detailed
Graphics, Shopping Cart, Java Applets, 10-20+ Pages</td>
</tr>
<tr>
<td width="94">Corporate:</td>
<td width="464">
<input type="radio" value="Corporate" checked name="Choose_Site">Detailed
Graphics, Dynamic Data, Interactive Pages 20+ Pages</td>
</tr>
<tr>
<td width="94"></td>
<td width="464"></td>
</tr>
<tr>
<td width="558" colspan="2">Please Provide A URL Of A Web Page
Similar To Yours:
</td>
</tr>
<tr>
<td width="94"></td>
<td width="464">
<input type="text" name="Similar_Page" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td>
</tr>
<tr>
<td width="94"></td>
<td width="464"></td>
</tr>
<tr>
<td width="558" colspan="2">Please Provide Any Additional Information
You Feel Will Help Us With Your Quote:
</td>
</tr>
<tr>
<td width="94"></td>
<td width="464">
<textarea rows="4" name="Additional_Information" cols="49" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td>
</tr>
<tr>
<td width="94"></td>
<td width="464"></td>
</tr>
<tr>
<td width="94"></td>
<td width="464"></td>
</tr>
</table>
</center>
</div>
<p align="center"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
</body>
</html>
Reply With Quote
  #2  
Old 11-20-2002, 02:47 PM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default

Are you trying to insert this entire html code into a txt_language variable, stored in the SQL database?

Why not create a template with the html code?

or even easier, create a "filename.htm" file with a link on your xcart web page to this file.
__________________
Syddos

Nothing is impossible, We just don't know how to do it ........Yet!

Xcart 4.1.X PRO (Testing Platform: winXP Pro)
Perl 5.8.7 (win32)
WINAMP 1.6.3 (win32 server package. Includes the following)
- phpMyAdmin v2.8.03
- MySql 5.0.21
- Apache 2.0.55 (win32)
- php 5.1.4
- SQLitemanager 1.2.0
Reply With Quote
  #3  
Old 11-20-2002, 03:07 PM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default reply

Hello, thanks for replying. I am trying to add this into it's own txt_web_quote file. I want to have it be a part of x-cart, I don't want a new webpage to pop up if I can help it. Thank you. Also, I can restore it back to normal and be able to edit it again if i restore my database. Thanks! Please help me get this right!
Reply With Quote
  #4  
Old 11-20-2002, 04:15 PM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default

Sorry, I'm a bit slow this morning, it's 1:17AM.

Is the code in a template file?, or are you trying to put this code into the a $lng.txt_your_file_name variable?
__________________
Syddos

Nothing is impossible, We just don't know how to do it ........Yet!

Xcart 4.1.X PRO (Testing Platform: winXP Pro)
Perl 5.8.7 (win32)
WINAMP 1.6.3 (win32 server package. Includes the following)
- phpMyAdmin v2.8.03
- MySql 5.0.21
- Apache 2.0.55 (win32)
- php 5.1.4
- SQLitemanager 1.2.0
Reply With Quote
  #5  
Old 11-20-2002, 04:48 PM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default reply

Hello, I created a link to the page....goto www.digitaladdition.com to see my page and click on FREE QUOTE and then WEB DESIGN. I am adding the page in there where i have Enter Web Design Info Here!!! or something like that. I created a txt_Web_Quote in the languages and i tried to add the html code in there.
Reply With Quote
  #6  
Old 11-20-2002, 06:48 PM
 
tmx tmx is offline
 

Member
  
Join Date: Nov 2002
Location: Arizona (USA)
Posts: 28
 

Default ...

What he was asking is if you were using Edit Templates to put the information in or were you doing it through languages with a variable. But anyways i think i know the answer to your question...Well here just copy and pase this into your template..

Code:
{literal} <form method="POST" name="FrontPage_Form1" action="freequote.php" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript"> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber3"> <tr> <td width="558" colspan="2">Contact Information:</td> </tr> <tr> <td width="558" colspan="2"></td> </tr> <tr> <td width="94" align="right">Name:</td> <td width="464"> <input type="text" name="Name" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">Company:</td> <td width="464"> <input type="text" name="Company" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">Title:</td> <td width="464"> <input type="text" name="Title" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">Address:</td> <td width="464"> <input type="text" name="Address1" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">Address:</td> <td width="464"> <input type="text" name="Address2" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">Country:</td> <td width="464"> <input type="text" name="Country" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">E-Mail:</td> <td width="464"> <input type="text" name="email" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">Phone:</td> <td width="464"> <input type="text" name="phone" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">Fax:</td> <td width="464"> <input type="text" name="fax" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94" align="right">URL:</td> <td width="464"> <input type="text" name="url" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="558" colspan="2">Describe Your Company:</td> </tr> <tr> <td width="94"></td> <td width="464"> <textarea rows="4" name="Company_Description" cols="48" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="558" colspan="2">Target Audience Web Page Is Intended For:</td> </tr> <tr> <td width="94"></td> <td width="464"> <textarea rows="4" name="Intended_Audience" cols="48" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="558" colspan="2">When Does Your Site Need To Be Online?</td> </tr> <tr> <td width="94"></td> <td width="464"> <textarea rows="4" name="Time_To_Live" cols="48" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="558" colspan="2">Describe The Theme Of Your New Web Site:</td> </tr> <tr> <td width="94"></td> <td width="464"> <textarea rows="4" name="Site_Theme" cols="48" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="558" colspan="2">Based On The Given Examples, Choose One Which Best Will Resemble Your Site:</td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="94">Personal:</td> <td width="464"><input type="radio" value="Personal" name="Choose_Site">Few Graphics, Little Interactivity, 1-10 Pages</td> </tr> <tr> <td width="94">Small Business:</td> <td width="464"> <input type="radio" value="Small_Business" name="Choose_Site">Custom Graphics, Forms, Moderate Interactivity, 10-20 Pages</td> </tr> <tr> <td width="94">Large Business:</td> <td width="464"> <input type="radio" value="Large_Business" name="Choose_Site">Detailed Graphics, Shopping Cart, Java Applets, 10-20+ Pages</td> </tr> <tr> <td width="94">Corporate:</td> <td width="464"> <input type="radio" value="Corporate" checked name="Choose_Site">Detailed Graphics, Dynamic Data, Interactive Pages 20+ Pages</td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="558" colspan="2">Please Provide A URL Of A Web Page Similar To Yours:</td> </tr> <tr> <td width="94"></td> <td width="464"> <input type="text" name="Similar_Page" size="20" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="558" colspan="2">Please Provide Any Additional Information You Feel Will Help Us With Your Quote:</td> </tr> <tr> <td width="94"></td> <td width="464"> <textarea rows="4" name="Additional_Information" cols="49" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></textarea></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> <tr> <td width="94"></td> <td width="464"></td> </tr> </table> </center> </div> <p align="center"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p> </form> {/literal}

That should do it...
__________________
-tmx-
Reply With Quote
  #7  
Old 11-20-2002, 06:56 PM
 
tmx tmx is offline
 

Member
  
Join Date: Nov 2002
Location: Arizona (USA)
Posts: 28
 

Default ...

I went ahead and tested it in my cart it worked fine for me, i think your only problem was that you didn't have {literal} and {/literal} around it, i also took out the <html><body> etc. But anyways hope that works out for you.
__________________
-tmx-
Reply With Quote
  #8  
Old 11-20-2002, 07:43 PM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default nooo

Hello, that didn't work, plus the "literal" showed up on my webpage. It will work when i do it my way, but it will screwed up my x-cart admin page for the txt, it stretches the screen. I deleted and it wouldn't let me add it again, so I had to restore my xcart from my file. I will ask the xcart team. Thanks!
Reply With Quote
  #9  
Old 11-20-2002, 07:55 PM
 
tmx tmx is offline
 

Member
  
Join Date: Nov 2002
Location: Arizona (USA)
Posts: 28
 

Default ...

Ok now you have me confused to, are you pasting all of this HTML you have into a variable. When i say variable, are you going into Languages under Administration in the Admin section? If you are, you should paste what I told you into a template. And as far as stretching, it is because it is to wide for your screen, you must be running low resolution. On my screen the html shows up pretty skinny with the settings you have it at. So if you make it a little thinner it should show up fine on your screen and go unstretched.
__________________
-tmx-
Reply With Quote
  #10  
Old 11-20-2002, 07:59 PM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default reply

I am adding this in a txt_web_quote variable. It is not it's own template. Maybe I should make it's own template for it. It works fine on my customer screen, when on my admin screen it screws up the txt-web-quote variable and stretches that and therefore, stretches my whole screen. Thanks!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:14 AM.

   

 
X-Cart forums © 2001-2020