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

How to display HTML code on the site...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-22-2003, 12:35 AM
 
Cameron Cameron is offline
 

eXpert
  
Join Date: Jan 2003
Location: Washington State, USA
Posts: 224
 

Default How to display HTML code on the site...

I'm adding in a "link to us" page using a new .tpl file of my own and I want to show html code that somebody can copy & paste into their source code. The problem is that the smarty .tpl file is just displaying the code as though it were code that I was putting in as a link.

So instead of this:
Blah Blah Blah.com

I get:
Blah Blah Blah.com

I tried making a language label for it, but that didn't work.

I'm sure this is easy and I'm overlooking the obvious because it's late. Any suggestions?

Thanks,
Cameron
Reply With Quote
  #2  
Old 05-22-2003, 03:56 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

is this not usualy done by displaying a text area with the code in there for them to copy
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 05-22-2003, 10:00 AM
 
Cameron Cameron is offline
 

eXpert
  
Join Date: Jan 2003
Location: Washington State, USA
Posts: 224
 

Default

Ahhh, a text area... Good call.

As I drifted off to sleep last night at 3am, that thought passed through so I'm glad you wrote and told me.

Thanks,
Cameron
Reply With Quote
  #4  
Old 05-23-2003, 11:33 AM
  anoack's Avatar 
anoack anoack is offline
 

Senior Member
  
Join Date: Dec 2002
Location: Austin, TX
Posts: 113
 

Default

Or, you can try this:
<a href="www.blahblahblah.com">Blah Blah Blah.com</a>

Slap that in your HTML Code and then look at it in your Browser.

Some HTML Symbol Codes:
< &lt;
> &gt;
" &quot;
& &amp;

So if you wanted it to say
http://page.com/image.gif

Then you would do:
&lt;img src=&quot;http://page.com/image.gif&quot;&gt;
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 11:32 PM.

   

 
X-Cart forums © 2001-2020