PDA

View Full Version : Calendar formatting not correct


enge919
01-25-2006, 05:41 PM
I just installed the calendar on a clients site and want to display it in a smarty template in x-cart (shopping cart software), I put the require command as such in a .tpl I created called calendar.tpl, this is the code;

{capture name=menu}
{php}
require("calendar/calendar.php");
{/php}
{/capture}
{ include file="menu_bottom.tpl" dingbats="dingbats_authentification.gif" menu_title="Event Calendar" menu_content=$smarty.capture.menu }

Then I added the link to the css file in the home.tpl just before the </HEAD> tag as such;

{php} $CSS=1; require("calendar/calendar.php"); {/php}

Now, that should do the trick (I have done it on another clients site in the past), but it does not display the formatting correctly. You can see it here at the bottom of the page; http://numisvision.com/home.php

Also, the links do not work on the calendar either (for changing the months)

Now, there is also another css file linked in here but should not be a problem BUT, if I remove the other css file the calendar displays correctly, when I put the link to the other css file it does not display correctly, and it still does not explain the links on the calendar not working.

Now that I have been messing with this for 24 hours hopefully someone can advise of where to go next. Sorry for the long message.

Thanks in advance.

Brian
01-25-2006, 06:08 PM
In your body CSS element, you defind all text to be white:

BODY,P,DIV,TH,TD,P {
FONT-FAMILY: Verdana, Arial, Helvetica, Sans-serif;
COLOR: #ffffff; FONT-SIZE: 11px;
}

This is why the calendar's text is white.

enge919
01-26-2006, 02:02 PM
Yup, I knew it would be something easy.

Now how about the problem with the months not changing with the links at the bottom of the calendar?

Brian
01-26-2006, 02:10 PM
The navigation seems to be working on the demo page... There must be something on the existing page that is making the $mo and $yr variables not make it back to the calendar.

Are you including the calendar through a function or from another file?