Jump to content

Custom Box Problem


Guest

Recommended Posts

I'm trying to create a new custom box on the right hand side of my site to house an image, I have followed the "manupulating boxes" pdf guide and its not working!

The image shows up as an "X" and the box is non existant!

I'm using the following code in my index.tpl file:

<!-- BEGIN: body -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset={VAL_ISO}" />

<title>{META_TITLE}</title>

<meta name="description" content="{META_DESC}" />

<meta name="keywords" content="{META_KEYWORDS}" />

<link href="skins/{VAL_SKIN}/styleSheets/layout.css" rel="stylesheet" type="text/css" />

<link href="skins/{VAL_SKIN}/styleSheets/style.css" rel="stylesheet" type="text/css" />

<script language="javascript" src="js/jslibrary.js" type="text/javascript"></script>

<!-- Text Input Mod start -->

<script language="javascript" src="js/3rdparty.js" type="text/javascript"></script>

<!-- Text Input Mod start -->

</head>

<body>

<div id="pageSurround">

<div id="subSurround">

<div id="topHeader">

<div class="session">{SESSION}</div>

</div>

<div>

<div class="colLeft">

{CATEGORIES}{SEARCH_FORM}{RANDOM_PROD}</div>

<div class="colMid">

{PAGE_CONTENT}

</div>

<div class="colRight">

{SHOPPING_CART}

{POPULAR_PRODUCTS}

{SALE_ITEMS}

{MAIL_LIST}

<div class=â€boxTitleRightâ€>Latest Catalogue</div>

<div class=â€boxContentRightâ€>

<img src=/images/uploads/catalogue.jpg alt="Latest Catalogue" border="0">

</div>

</div>

</div>

<br clear="all" />

{SITE_DOCS}

</div>

</div>

</body>

</html>

<!-- END: body -->

What am i doing wrong...??

Link to comment
Share on other sites

Nope, still not working - i've corrected some basic html error that crept in but still no styling or image showing!

Using this code now:

{MAIL_LIST}

<div class=â€boxTitleRightâ€>Latest Catalogue</div>

<div class=â€boxContentLeftâ€>

<img src="/images/uploads/catalogue.jpg" alt="Latest Catalogue" border="0" />

</div>

</div>

</div>

The site is www.rathernice.co.uk/cubecart

Link to comment
Share on other sites

The problem with box is the quote marks - look at your code in the post above - quote marks need to be " not ”

There was nothing wrong with your box code except for these quote marks.

The image code also has a problem. Instead of:

 <img src="/images/uploads/catalogue.jpg" alt="Latest Catalogue" border="0" />




You need:




 <img src="images/uploads/catalogue.jpg" alt="Latest Catalogue" border="0" />

Link to comment
Share on other sites

Strange...it was all copied and pasted from the instruction file and advice people posted here!!!

Anyways, sorted now, thanks for all your help chaps :)

Link to comment
Share on other sites

You're welcom :)

Footnote:

This problem seems to occur from copying & pasting the info in my PDF file - " marks are appearing as â€

No doubt I will have to re-write that tutorial and clean things up. Unfortunately, time is really at a premium for me, so it may take a little while to do this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...