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.
{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.