X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to display HTML code on the site... (https://forum.x-cart.com/showthread.php?t=2811)

Cameron 05-22-2003 12:35 AM

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

shan 05-22-2003 03:56 AM

is this not usualy done by displaying a text area with the code in there for them to copy

Cameron 05-22-2003 10:00 AM

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

anoack 05-23-2003 11:33 AM

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;


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.