Jump to content
Sign in to follow this  
FastEddy

Event Calender

Recommended Posts

Is there an event calender out there that integrates with OSC?

Or

In general, a good event calender that can be recommended?

 

We would like to announce the trade shows we attend throughout the year.

 

-Ed

Share this post


Link to post
Share on other sites

Ed,

 

There are several calendars available on hotscripts.com I have used a couple of them on other sites and as long as you get a fairly simple one it souldn't be too hard to integrate it into OSC.


Kim

~~~~~~~~~~~~~

Share this post


Link to post
Share on other sites

Hi, I just installed a event calender found in the download section. It was made by ivan I think. I got this problem now

 

1146 - Table 'catalog.events_calendar' doesn't exist

 

select start_date from events_calendar

 

[TEP STOP]

 

I searched every where, but in no script ist this link catalog.events.... My secound question is "Create DB table "events_calendar"" in the readme file. My english is not so good, and I think DB means Databace, but where do I find it, or put the code in?

 

Thanks Sven

Share this post


Link to post
Share on other sites

Sven,

 

Please post the section of the README file that mentions the database table and we'll see if we can't help.


Kim

~~~~~~~~~~~~~

Share this post


Link to post
Share on other sites

This is thr readme text for the:

 

Create DB table "events_calendar"

 

# --------------------------------------------------------

 

CREATE TABLE events_calendar (

event_id int(3) NOT NULL auto_increment,

start_date date NOT NULL default '0000-00-00',

end_date varchar(20) default NULL,

title varchar(255) NOT NULL default '',

link varchar(255) default NULL,

description text,

date_added datetime NOT NULL default '0000-00-00 00:00:00',

PRIMARY KEY (event_id)

) TYPE=MyISAM;

 

#

# Dump dei dati per la tabella `events_calendar` (just a couple of examples).

#

 

INSERT INTO events_calendar VALUES (1, '2003-02-27', '2003-02-28', 'First Event', 'http://www.chilipper.it/catalog', 'February is gone, no need to look at this event............', '2003-03-08 18:26:02');

INSERT INTO events_calendar VALUES (2, '2003-03-08', '', 'Second Event', 'http://www.oscommerce.com/', 'Today I've posted this contribution, I hope you find useful.<br>rnEnjoy.<br><br><align=center>rn<img src=http://www.oscommerce.com/images/oscommerce.gif>', '2003-03-08 18:29:51');

INSERT INTO events_calendar VALUES (3, '2003-08-20', '', 'Most important Event', '', 'Today is my birthday.', '2003-03-08 18:50:21');

INSERT INTO events_calendar VALUES (4, '2003-03-28', '', 'Third Event', '', 'Text Text Text Text Text Text <br>rnText Text Text Text Text Text Text Text <br>rnText Text Text Text <br>rnText Text Text Text Text Text <br>rn<br>rn<font color=red>Text Text Text Text</font>', '2003-03-08 20:22:35');

 

-----------

So where do I put it in? Thanks :D Sven ..... I found a bug fix for the event calender, I'll try it tomorrow, maybe it solves the first problem.

Share this post


Link to post
Share on other sites

*bang bang bang* (banging the head on the computer) Thanks a lot, it works =). Sven

Share this post


Link to post
Share on other sites

Sven:

 

How do you like that contribution? Does it work well? Can you show me where it is working?

 

Thanks

Share this post


Link to post
Share on other sites

I've just installed this calander on a new site I'm building. I followed the instructions perfectly, (including the included bug fixes), and it seems to work perfectly....except that now my links are all screwy. The top navigation bar links, the links inside some of the right column info boxes (I installed this on the left) have been replaced with things like "BOX_HEADING_CATEGORIES" or "BOX_HEADING_WHATS_NEW".

 

I'm a newbie to php, and have no idea where to look for the problem. I have a good backup, but would really like to get this working correctly.

 

Can anyone help?

Share this post


Link to post
Share on other sites

Hi Julie,

....except that now my links are all screwy.   The top navigation bar links, the links inside some of the right column info boxes (I installed this on the left) have been replaced with things like "BOX_HEADING_CATEGORIES" or "BOX_HEADING_WHATS_NEW".

Are they just replaced w/ the wrong "TEXT" or linking to a wrong page (or ... not linking at all) ?

I think you did something w/ your catalog/includes/languages/english.php (...or other language file), back-up and try replacing that one.

 

ivan

Share this post


Link to post
Share on other sites

Thanks, Ivan! :D

 

I edited catalog/admin/includes/languages/english.php but accidentally uploaded it to catalog/includes/languages! :oops:

 

I would've never looked at that file as the source of the trouble, since I never edited it.

Share this post


Link to post
Share on other sites

Hello,

 

If I click on the "year view" button, the following error appears

Fatal error: Call to a member function on a non-object in d:...shopevents_calendar.php on line 101

 

Where do I have to put in the missing function ?

 

 

Thx

 

Andreas

Share this post


Link to post
Share on other sites

If I click on the > at right, next to the text for example "May 2003" the same error as above appears.

 

 

greets

 

Andreas

Share this post


Link to post
Share on other sites

Hi alverman,

 

I missed that hint, it?s working now - I hope it will work on the right site soon.

 

 

Thx

 

Andreas

Share this post


Link to post
Share on other sites

The calendar incerted into my site and is working fine. The problem I have is with the manager. When I click on it from the os admin interface I get this error:

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /var/www/html/cat_admin/includes/functions/database.php:13) in /var/www/html/cat_admin/includes/functions/database.php on line 13

 

Anyone have any advice?

Share this post


Link to post
Share on other sites

Hi,

I am trying to install the Event Calender into my shop. The administration panel works just fine for me...but I am getting a strange error in my catalog files. Basically I think I have included the require classes code at the wrong spot...But I'm not sure exactly where to put it?

 

I have included the box calendar on the left column and I corrected the bug described in the last download...

 

this is where I put the classes require:

 

// include the language translations

 require(DIR_WS_LANGUAGES . $language . '.php');



// define our general functions used application-wide

 require(DIR_WS_FUNCTIONS . 'general.php');

 require(DIR_WS_FUNCTIONS . 'html_output.php');

// include calendar class

 require(DIR_WS_CLASSES . 'calendar.php');



// currency

Is it the proper place?

 

I'm getting almost the entire classes/calendar.php code added as text in the top of my page before the header.

 

In the calender box I don't get the calender view but I do get the drop-down and buttons.

 

When I click on the "year view" I additionally get this error:

 

Fatal error: Call to a member function on a non-object in /home/crs/events_calendar.php on line 131

 

Any advice would be appreciated!

Share this post


Link to post
Share on other sites

Hi again,

I still haven't figured out the problem. I successfully installed the Events Calendar on a MS2 testing version. I just changed the defines from application_top to the respective new MS2 filenames.php database_tables.php.

 

I made some screen shots to additionally explain what's going on with my site. This is how they look:

 

screenshot2.gif

 

and I get the entire classes/calendar.php code in the top (not all shown all code shown in this screenshot):

 

screenshot1.gif

 

Thanks!

Share this post


Link to post
Share on other sites

I figured it out. My server was upgraded at my hosting company and the new setting in the php.ini files for short_open_tag was set to off. In the Events calender there are a few places were the author uses a short tag i.e <? instead of the long tag <?php

 

That's it!

Share this post


Link to post
Share on other sites

I am trying to install the latest release of the calendar and am running into some errors:

 

in the admin area, once I try to add an event I receive this error:

 

Fatal error: Cannot instantiate non-existent class: upload in /home/html/catalog/admin/events_manager.php on line 370

 

 

also on catalog side if I click on the month to view all events I receive this error:

 

Fatal error: Cannot pass parameter 3 by reference in /home/html/catalog/events_calendar.php on line 255

 

thoughts anyone????

Share this post


Link to post
Share on other sites

If you are using a version of the contribution that is designed to work with MS2 but your shop is MS1, it won't work. You might want to check out older versions.

 

Good luck,

Matt

Share this post


Link to post
Share on other sites

oh so not what I wanted to hear.... I did make some changes such as adding info in application_top vs database_table.php files, etc. to accomodate MS1.

 

I had tried the older versions previously but the restriction of not being able to place it anywhere but left column and now the ability to link products makes me want to get this to work asap on MS1.

 

does anyone else want to help me work on making this compatible with MS1?

Share this post


Link to post
Share on other sites

okay here seems to be where the problem is coming from:

 

first off in the admin area, I cannot upload the image that is assigned to the event - regardless of whether or not there is an image, the script seems to be calling for it and I am getting an error.

 

everything in the store side works great except when it comes to displaying all events in the month - then I get the error -

 

I have tried removing some of the code and I am able to add successfully via the admin, but the area of code that I removed is what calls for the upload of the image...

 

here is the code omitted from the admin/events_manager.php script found at about line 368:

 

}else{

if ($event_image = new upload('event_image', DIR_FS_CATALOG_IMAGES . 'events_images/'))

{

$event_image = $event_image->filename;

} else {

$event_image = $HTTP_POST_VARS['event_previous_image'];

}

 

with this code removed, the event can be added and displayed - but the image although it is set in the database is not displayed because it is not upload to any directory.

 

 

the store side I seem to have issues with this code in the store/events_manager.php script about line 254:

 

$events_query_raw = "select *, DAYOFMONTH(start_date) AS event from ". TABLE_EVENTS_CALENDAR ." where start_date > '". date('Y-m-d H:i:s') ."' and language_id = '". $languages_id ."' order by start_date";

$events_split = new splitPageResults($events_query_raw, MAX_DISPLAY_NUMBER_EVENTS, 'DAYOFMONTH(start_date)');

$events_query = tep_db_query($events_query_raw);

 

 

any thoughts on what the issues could be????

Share this post


Link to post
Share on other sites

YAHOOO!!!!!Got it to work successfully on MS1!!!!! I am so excited~ :D

 

Anyway, if anyone wants to do the same, just let me know and I will be happy to put it together and add it to the contribs - unless the original author objects.

 

:D :D :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×