Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 12:56:24 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149636 Posts in 21099 Topics by 7563 Members
Latest Member: bal410kano
* Home Help Search Login Register
Pages: 1 2 [3] 4 5   Go Down
Print
Author Topic: Yet another event calendar  (Read 41488 times)
DGEC

Offline Offline

Posts: 386


WWW
« Reply #50 on: July 17, 2007, 10:09:18 PM »

The calendar on http://www.secondsoletotalsports.com/ looks great and is actually what I would like to have for my client's site. It does seem eerily similar to the phpEventCalendar found at that riversidebaptistchu rch.ca site.
Just an FYI - *used to be at RBC* 

It's so similar because I used phpEventClalendar at RBC before I moved the site to WB (no, haven't announced it because the template isn't done). This module was much closer to niceness than any of the others, so I made some suggestions based on what I liked about phpEC and they were quickly incorporated.  Marathoner did do some more work, although I don't think those changes are in the package.

If I make any further changes I'll post them here. One will be a minimum height for a week. I figured it out and then forgot it. I may do a %width as well.
Logged
marathoner

Offline Offline

Posts: 495


« Reply #51 on: July 18, 2007, 10:54:40 PM »

I did make some changes but probably ripped out more code that I added. I'm happy to post if you want but keep in mind that these were made to work for what I needed.

You mention a min height concern. I simply defined the height of the TD. This height is used unless there is more data and the TD has to grow in height. Feel free to look at my CSS.
Logged
tbaker

Offline Offline

Posts: 1


« Reply #52 on: November 15, 2007, 04:25:26 PM »

Does the documentation for this module still exist anywhere? 
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #53 on: November 15, 2007, 07:47:47 PM »

ARG!  Unfortunately, it doesn't seem to.

I thought I had looked up the cached version of it a little while ago. Don't understand what happened to it.  And the Wayback machine doesn't have an old index of it. I don't seem to have saved a copy either.

email him?
Logged
JTux

Offline Offline

Posts: 13


« Reply #54 on: November 16, 2007, 09:45:55 AM »

Wayback machine finds it for me. Here's the direct link. http://web.archive.org/web/20070603010021/http://keijok.kapsi.fi/wb/pages/en/wb-modules/event-calendar.php?lang=EN

Cheers,

John
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #55 on: November 16, 2007, 09:28:08 PM »

Huh, I wonder what I was doing wrong?  Anyway - thanks, John!

Incidentally, there are problems with the start/end times in the version I have at least.  Specifying a start-end time caused a validation error, and not giving a time gives a nonsense end time.

I had a quick look but didn't have time make any progress, I don't know much about php class & it seemed to be handled in there. I hope to get it fixed soon, but...
Logged
messali

Offline Offline

Posts: 27


« Reply #56 on: January 11, 2008, 02:11:38 PM »

hi,
it dosen't work...
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /users/flip/www/flip.website.pl/flip/flip/new/templates/simple/index.php on line 190
what's wrong??

i just add this code to my template - index.php

  <?php
   require_once( WB_PATH.'/modules/event_calendar/calendar.class.php' );
   $cal = new Calendar( $database, 'menu' );
   echo "".cal->writeCalendar();
?>
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #57 on: January 11, 2008, 03:35:17 PM »

hello,

Quote
what's wrong??

the code you added to your template  wink
Where did you get it from?

Matthias
Logged
messali

Offline Offline

Posts: 27


« Reply #58 on: January 11, 2008, 04:34:10 PM »

ok,
one more time.
i added this code to template/simple/index.php

  <?php
   require_once( WB_PATH.'/modules/event_calendar/calendar.class.php' );
   $cal = new Calendar( $database, 'menu' );
   echo "".cal->writeCalendar();
   ?>

i get it from this post http://forum.websitebaker.org/index.php/topic,3777.0.html  author: marccouture

i  have a problem with  displaying the small version of the calendar, on my homepage...
www.flip.pl/new
on the left side, in box named "KALENDARZ SNOWBOARDOWY"

please help me
« Last Edit: January 11, 2008, 04:38:53 PM by messali » Logged
doc
Guest
« Reply #59 on: January 11, 2008, 05:17:32 PM »

Hello,

this line seems to be wrong:
Code:
echo "".cal->writeCalendar();

try it with
Code:
$cal->writeCalendar(); or echo $cal->writeCalendar();
instead.

Regards Christian
Logged
maxxis

Offline Offline

Posts: 30


« Reply #60 on: January 23, 2008, 09:41:52 AM »

Just a small addition to this module.

Short Tags need to be enabled in PHP to work.

If the server doesn't support Short Tags then replace <?= with <?php echo for it to work.

Had this problem on my side.
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #61 on: January 25, 2008, 11:21:30 PM »

Ah, that definitely should be fixed. Short tags bad.
I think I read they're disabled by default with PHP5 even.

I've got to get that time issue fixed, if I can. I'll check for short tags when I do that too and post here.

Unless somebody else can give it a try? I don't have a lot of class experience, especially in PHP.
Logged
artifaction

Offline Offline

Posts: 7


« Reply #62 on: February 07, 2008, 04:18:39 PM »

Got most of it to work, and looking good, but I cant figure out how to,
1, in the small menu calendar I would like to have links on the days with an event and that will open the calendar in the main window?
2, in calendar view there is the main calendar, previous and next month (small calendars) i would like to have upcoming events in text (clickable to right month offcourse)

So how do I fix this?... Please
Logged
babsy

Offline Offline

Posts: 311


« Reply #63 on: March 04, 2008, 05:31:15 PM »

hi....
i have installed the module.. and it looks great... and works great....
but if any of you have figured out how to make a link work from the date itself.. when the event appears..  plz let me know!  smiley
Logged
steve

Offline Offline

Posts: 2


« Reply #64 on: March 27, 2008, 01:41:23 AM »

 huh
Hi,
thank you for this module. I installed it the usual way and set up a testpage. I can't see anything. There ist no Kalender and nothing sad

Does somebody know this problem? Server paramaters, or anything wrong?

Thanks for answers.

Regards
Steve
Logged
marathoner

Offline Offline

Posts: 495


« Reply #65 on: March 27, 2008, 01:57:49 AM »

What version of WB? Were you able to create some events? Does the displayed calendar page generate an error or does it generate some HTML? If so, which error or what HTML?
Logged
doc
Guest
« Reply #66 on: March 27, 2008, 12:15:24 PM »

@steve
Have you already checked the background style, maybe the calendar is white on white background.

Regards Christian
Logged
gillweb

Offline Offline

Posts: 83



« Reply #67 on: March 29, 2008, 03:48:11 AM »

Is there anyway of having a separate calendar for each page you make?  Right now it seems like each page in the admin can accept separate events but every calendar on the front-end shows ALL the events.  Can anyone help with this?  Is this possible?
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6820


WWW
« Reply #68 on: March 29, 2008, 09:05:10 AM »

I think it is the module "Event Calendar" on the add-on page, which brings groups into the calendar ... then you could write a script (like "anynews") to display the events for the groups depending on the page you are displaying.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

gillweb

Offline Offline

Posts: 83



« Reply #69 on: March 30, 2008, 03:45:24 AM »

Is there anyway of having a separate calendar for each page you make?  Right now it seems like each page in the admin can accept separate events but every calendar on the front-end shows ALL the events.  Can anyone help with this?  Is this possible?
I THINK i did it.  All you have to do is change the SQL Query to select only info Where the "page id" equals the page you are on.  So you can just change the $sql query in calendar.class.php file on line 365 to this:
Code:
           $sql = "SELECT id,start_time,end_time,short_description,long_description,link_text,link_http,type FROM "
                            .TABLE_PREFIX
                            ."mod_event_calendar WHERE ((start_time < "
                            .mktime(0,0,0,$this->month+1,1,$this->year)
                            ." AND start_time > "
                            .mktime(0,0,0,$this->month-1,$days,$this->year)
                            .") OR (end_time < "
                            .mktime(0,0,0,$this->month+1,1,$this->year)
                            ." AND end_time > "
                            .mktime(0,0,0,$this->month-1,$days,$this->year)
                            .")) AND language = '"
                            .$this->language
                            ."' AND page_id = '"
                            .PAGE_ID
                            ."' ORDER BY start_time;";
So far no problems but who knows wink
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #70 on: April 01, 2008, 10:05:42 PM »

I believe this module breaks with PHP 5.

When I upgraded my server to PHP 5, it created an error processing some of the CSS.  I switched back to PHP 4 and everything was fine.

I haven't had time to investigate it yet. It could be some of my custom code, but beware.  I will post my results here when I have time.
Logged
gillweb

Offline Offline

Posts: 83



« Reply #71 on: April 06, 2008, 06:27:28 AM »

the site I use this module on is runnign PHP5 and it is fine ??   undecided
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #72 on: April 10, 2008, 03:34:58 PM »

Might be some other differences, haven't had time to check yet. My template's melted-down, maybe due to the 2.7 rc, trying to recover.
Logged
babsy

Offline Offline

Posts: 311


« Reply #73 on: April 22, 2008, 11:05:25 PM »

hi again...
the installation worked fine.... and the calender works fine Smiley super module Smiley

the only thing bugging me is that i cant´update files through ftp, i have tried, uploading throug my ftp and reloded addons... but then when i make a page with the event calender module, the page just is white... it only works when i have added the module through addons... but if anyone has a solution to this... i would love to know it Smiley
but until then i just have to change it and upload it after....  (the way is just faster) Smiley
« Last Edit: April 23, 2008, 02:41:36 PM by babsy » Logged
gillweb

Offline Offline

Posts: 83



« Reply #74 on: April 24, 2008, 02:52:39 AM »

hi again...
the installation worked fine.... and the calender works fine Smiley super module Smiley

the only thing bugging me is that i cant´update files through ftp, i have tried, uploading throug my ftp and reloded addons... but then when i make a page with the event calender module, the page just is white... it only works when i have added the module through addons... but if anyone has a solution to this... i would love to know it Smiley
but until then i just have to change it and upload it after....  (the way is just faster) Smiley
sounds like a permissions issue with your server
Logged
Pages: 1 2 [3] 4 5   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!