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)
-   -   HELP! I'm losing all my hair on this one (https://forum.x-cart.com/showthread.php?t=7171)

enge919 04-15-2004 10:38 PM

HELP! I'm losing all my hair on this one
 
Maybe this should be in program logic, move if necessary...

I purchased a pretty awsome (cheap, $14.95) calendar script called easily simple calendar (http://www.easilysimplecalendar.com/), unfortunately it is not that easy to install though.

No matter what I do, the calendar does not show up at all. Nada!

Could someone please look at the installation instruction page, http://www.easilysimplecalendar.com/v5/instructions.htm and offer some good advice, I have been working on this now for a site I built for a client and this is the last think that needs to be done before I turn it over to him. You can see the site at http://www.superioroc.com. I am trying to put is just under the heading on the left "2004 Show Schedule".

I made this leftbar with a custom template appropiately named leftbar.tpl.

Please, can somebody help me :(

blue-dreamer 04-16-2004 04:16 AM

What exactly is the problem?

enge919 04-16-2004 05:20 AM

Quote:

Originally Posted by blue-dreamer
What exactly is the problem?

Whoops, this would help :)

The calendar does not show up at all. I have checked just the link to the calendar php script and that in itself seems to be working.

As the instructions show (see the instructions link my first thread)

Can I use the <?php require ("showCalendar.php"); ?> and
<?php $CSS=1; require ("showCalendar.php"); ?> in this actual context in my templates? or do they need to be wrapped in {literal}{/literal} tags, or is that even the right way to do it???

elmtronics 04-16-2004 07:27 AM

I have a similar issue with adding a php poll.

Though I would be able to just insert the code in the poweredby tpl file and wala...nope not happing tried wrapping it with literal tags and it still does not show up.

This is the code I'm trying to get to show up...

<?php include_once($MPinc=(str_repeat('../',substr_count(substr($_SERVER['PHP_SELF'],1),'/')).'store/poll/poll.php'));displayPoll(1); ?>

As most of us know searching these forums is becoming a time sink :wink: So If someone could point us in the right direction on how to add php code to smarty it would be much appreciated

***edit***

Time sink over....http://forum.x-cart.com/viewtopic.php?p=42984&highlight=#42984

This may help

shan 04-17-2004 08:48 AM

look at http://smarty.php.net for info on how toi include php in templates

enge919 04-17-2004 08:41 PM

Thanks Shan, that worked using the {php}{/php} tags, the calendar works great and displays properly.

The only problem is that now I have an error at the bottom of the page:

Code:

INVALID SQL: 1146 : Table 'superior_calendar.xcart_sessions_data' doesn't exist
SQL QUERY FAILURE: UPDATE xcart_sessions_data SET data='a:14
{s:11:\"editor_mode\";s:0:\"\";s:17:\"always_allow_shop\";s:0:\"\";s:4:\"
wlid\";s:0:\"\";s:10:\"js_enabled\";s:1:\"Y\";s:7:\"partner\";s:0:\"\";s:5:\"
login\";s:0:\"\";s:10:\"login_type\";s:0:\"\";s:6:\"logged\";s:0:\"\";s:4:\"c
art\";s:0:\"\";s:12:\"stats_pageid\";s:1:\"1";s:15:\"stats_page_time\";i:10
82173853;s:18:\"stats_pages_string\";s:1:\"1
\";s:19:\"stats_transactionid\";s:0:\"\";s:22:\"stats_transaction_step\";s:0
:\"\";}' WHERE sessid='4517b6a55b89193893b8c69720c43e1e'


The website is: http://www.superioroc.com , using x-cart version 3.5.4.

Im sure this is just something that has to be added to one of my files, appearantly for the sessions data.

Can you tell me where and how I can fix this?


All times are GMT -8. The time now is 04:23 PM.

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