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

inserting outside txt file to static page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-20-2008, 03:44 PM
  boomobile's Avatar 
boomobile boomobile is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 306
 

Default inserting outside txt file to static page

I've searched for how to write the tag, but can't find it so here goes...
I'm trying to insert file (url) on a static page, but whatever I do , there is nothing displayed. Here's what I've tried:
This is the file I'm trying to include (and it is correct). http://weather.noaa.gov/cgi-bin/fmtbltn.pl?file=forecasts/marine/coastal/pz/pzz250.txt

{php}{include file="";}{/php}

{include file="";}

{php}{include url="";}{/php}

{css}{include-file="";}{/css}

{html}{include file="";}{/html}

The previous person wrote {php} inclosures, so I just assume that's how it should be. Also I did have this done correctly last week, but it would expand my page wider than I want. I tried to contain the text within a specified table width, but then it wouldn't display at all either. Can any one help me on this?
__________________
X Cart Ver: 4.0.14
MySQL4 4.1.22
phpMyAdmin 2.6.0
Pearl 5.6.0
PHP 5.2.1
Python 2.2.2
Server: Apache/2.0.52 (Red Hat)
OS: Linux
www.cleanlinesurf.com
1. Customer Rewards Points
2. One Page Checkout (altercart)
3. Free shipping orders over $50 as Real Time Shipping
4. Gift Certificates
-----------------------------------------------
Graphic Design | Boomobile Design, LLC
www.boomobile.com
Reply With Quote
  #2  
Old 02-20-2008, 04:04 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: inserting outside txt file to static page

Easiest way would be to use this code in your static page (uses an iframe - see attached - wouldn't allow me to paste it).
Attached Files
File Type: txt weather.txt (197 Bytes, 104 views)
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 02-21-2008, 09:33 AM
  boomobile's Avatar 
boomobile boomobile is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 306
 

Default Re: inserting outside txt file to static page

Thankyou PhilJ. I did try to place an Iframe tag, but must've had a typo, because now it works like a charm.
__________________
X Cart Ver: 4.0.14
MySQL4 4.1.22
phpMyAdmin 2.6.0
Pearl 5.6.0
PHP 5.2.1
Python 2.2.2
Server: Apache/2.0.52 (Red Hat)
OS: Linux
www.cleanlinesurf.com
1. Customer Rewards Points
2. One Page Checkout (altercart)
3. Free shipping orders over $50 as Real Time Shipping
4. Gift Certificates
-----------------------------------------------
Graphic Design | Boomobile Design, LLC
www.boomobile.com
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 02:43 AM.

   

 
X-Cart forums © 2001-2020