Start
Help
Forum
Addons
Projects
Welcome,
Guest
. Please
login
or
register
.
August 20, 2008, 05:02:44 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Website Baker 2.7.0 (stable) veröffentlicht!
Nähere Informationen findet ihr
hier
.
Das Diskussionsboard findet ihr
hier
.
60553
Posts in
9791
Topics by
5824
Members
Latest Member:
blubb
Website Baker Community Forum
English
Modules
Yet another event calendar
Pages:
1
[
2
]
3
4
5
Author
Topic: Yet another event calendar (Read 15996 times)
keijok
Pending Apprentice Baker
Offline
Posts: 17
Re: Yet another event calendar
«
Reply #20 on:
August 22, 2006, 06:04:08 AM »
Quote from: tjoppru on August 21, 2006, 07:25:19 PM
Yes i created a page with Event Calendar as page type and added an event and made it viewable by the public and All I get is a blank page that says the Title at the top.
That's odd
Can you see any error messages in the webserver log?
If so, could you please paste the error here so I can take a look...
Logged
GsT
Pending Apprentice Baker
Offline
Posts: 3
Re: Yet another event calendar
«
Reply #21 on:
August 25, 2006, 12:35:46 PM »
It´s getting close now...
Good work Keijo. I just have one question for you. My calendar always starts with a sunday at the frontend, I would prefer monday =). Any easy way to change this?
Thanks in advance / Kiitos etukäteen
Logged
JesseG
Pending Apprentice Baker
Offline
Posts: 5
Re: Yet another event calendar
«
Reply #22 on:
August 25, 2006, 04:21:01 PM »
When I tried adding an event with a "PM" end-time, it kept translating it as an AM time. I made the following change to add_edit_event.php, line 239:
Change from:
Code:
<option value="<?= $showvalue ?>" <?= $value==$endtime_value?"selected":"" ?> ><?= $showvalue ?></option>
Change to:
Code:
<option value="<?= $value ?>" <?= $value==$endtime_value?"selected":"" ?> ><?= $showvalue ?></option>
Logged
keijok
Pending Apprentice Baker
Offline
Posts: 17
Re: Yet another event calendar
«
Reply #23 on:
August 26, 2006, 07:44:12 AM »
Quote from: GsT on August 25, 2006, 12:35:46 PM
It´s getting close now...
Good work Keijo. I just have one question for you. My calendar always starts with a sunday at the frontend, I would prefer monday =). Any easy way to change this?
Thanks in advance / Kiitos etukäteen
Take a look on the
week_starts_mon
-setting in the language file.
If
true
, first day of week is monday, and if
false
it's sunday.
Oleppa hyvä.
Logged
keijok
Pending Apprentice Baker
Offline
Posts: 17
Re: Yet another event calendar
«
Reply #24 on:
August 26, 2006, 07:51:21 AM »
Quote from: JesseG on August 25, 2006, 04:21:01 PM
When I tried adding an event with a "PM" end-time, it kept translating it as an AM time. I made the following change to add_edit_event.php, line 239:
Change from:
Code:
<option value="<?= $showvalue ?>" <?= $value==$endtime_value?"selected":"" ?> ><?= $showvalue ?></option>
Change to:
Code:
<option value="<?= $value ?>" <?= $value==$endtime_value?"selected":"" ?> ><?= $showvalue ?></option>
This was a typo in the code, thank's for notifying.
Fixed into the download ZIP.
Logged
treasurer
Pending Apprentice Baker
Offline
Posts: 5
Re: Yet another event calendar
«
Reply #25 on:
September 28, 2006, 10:44:21 AM »
I think it is great. Would like some more functionality - bold type, type face colour etc - but as I know nothing about any of this I am pleased simply to be able to use a module someone else has spent considerable time creating.
I am using it at
www.footballwidebay.org
Treasurer.
Logged
keijok
Pending Apprentice Baker
Offline
Posts: 17
Re: Yet another event calendar
«
Reply #26 on:
October 02, 2006, 07:37:34 AM »
Quote from: treasurer on September 28, 2006, 10:44:21 AM
...bold type, type face colour etc...
You can actually use standard HTML codes to format the text.
Here's
an example, event at October 10 2006.
But I do agree that writing those HTML markers can be a bit tidious. What is needed is perhaps integrated WYSIWYG editor to enter the event description. I'll have to see about this, don't have the time just now, tough.
Logged
Tzvook
Pending Apprentice Baker
Offline
Posts: 19
Re: Yet another event calendar
«
Reply #27 on:
October 16, 2006, 10:18:59 AM »
I get this:
Fatal error: Cannot instantiate non-existent class: template in /aaa/www/modules/event_calendar/view.php on line 67
on the public site...
is there any idea ?
Logged
keijok
Pending Apprentice Baker
Offline
Posts: 17
Re: Yet another event calendar
«
Reply #28 on:
October 18, 2006, 06:45:31 AM »
Quote from: Tzvook on October 16, 2006, 10:18:59 AM
I get this:
Fatal error: Cannot instantiate non-existent class: template in /aaa/www/modules/event_calendar/view.php on line 67
on the public site...
is there any idea ?
Do you have the
template.inc
library file in the
include/phplib
folder of your wb installation?
Logged
Tzvook
Pending Apprentice Baker
Offline
Posts: 19
Re: Yet another event calendar
«
Reply #29 on:
October 19, 2006, 08:58:45 AM »
Quote from: keijok on October 18, 2006, 06:45:31 AM
Do you have the
template.inc
library file in the
include/phplib
folder of your wb installation?
Yep I do ... first thing was going to the error line to see... and then to phplib.
I'm using version 2.6.0 on Apache + Suse.
UPDATE:
just tested in on FREEBSD , same errors, it seems it works only with higher version and info.php need not say it works with 2.6.x ... maybe I only need to update the phplib ? and stay with 2.6.0 ?
«
Last Edit: October 19, 2006, 09:17:18 AM by Tzvook
»
Logged
kweitzel
Forum Team
A Baker's Baker
Offline
Posts: 4214
Re: Yet another event calendar
«
Reply #30 on:
October 19, 2006, 09:29:19 AM »
the info(.)php of modules defines the Website Baker version, this module is defined for, nothing else.
cheers
Klaus
Logged
http://www.weitzel.biz
ruebenwurzel
Leaders Team
A Baker's Baker
Offline
Posts: 6255
Keep on Rockin
Re: Yet another event calendar
«
Reply #31 on:
October 19, 2006, 11:59:01 AM »
Hello Tzvook,
why you don't wanna update to WB 2.6.4?
Matthias
Logged
You search for help, please look here:
Help-Page
You search for Modules, Templates or Languages, please look here:
Addons-Page
keijok
Pending Apprentice Baker
Offline
Posts: 17
Re: Yet another event calendar
«
Reply #32 on:
October 20, 2006, 06:19:45 AM »
Quote from: Tzvook on October 19, 2006, 08:58:45 AM
UPDATE:
just tested in on FREEBSD , same errors, it seems it works only with higher version and info.php need not say it works with 2.6.x ... maybe I only need to update the phplib ? and stay with 2.6.0 ?
I made the calendar using WB2.6.4.
Haven't got any older version so no idea why it doesn't work on those.
Logged
Tzvook
Pending Apprentice Baker
Offline
Posts: 19
Re: Yet another event calendar
«
Reply #33 on:
October 20, 2006, 09:56:29 AM »
Quote from: ruebenwurzel on October 19, 2006, 11:59:01 AM
Hello Tzvook,
why you don't wanna update to WB 2.6.4?
Matthias
Ohh, well I used so many core hacks (functionality + visibility) that I'll have to do it all from the begining .... there's already no hair anyway on my head
Next time I'll do it will probably be for a higher version ...
If there was a changes log of touched files between versions ... all was easyer ... or maybe there is one and I missed it ?
«
Last Edit: October 20, 2006, 09:59:05 AM by Tzvook
»
Logged
ruebenwurzel
Leaders Team
A Baker's Baker
Offline
Posts: 6255
Keep on Rockin
Re: Yet another event calendar
«
Reply #34 on:
October 20, 2006, 11:28:29 AM »
Hello
Quote
Ohh, well I used so many core hacks (functionality + visibility)
So don't wonder if you get problems with modules wich needs standard core files.
Quote
If there was a changes log of touched files between versions
Somewhere here in the forum i posted a package with only the changed files from 2.6.3 to 2.6.4. Search for it (i will do it too if i get some time), maybe this helps you to make upgrade your "user defined" version easier.
Matthias
Logged
You search for help, please look here:
Help-Page
You search for Modules, Templates or Languages, please look here:
Addons-Page
chetvictor
Pending Apprentice Baker
Offline
Posts: 2
Re: Yet another event calendar
«
Reply #35 on:
November 28, 2006, 05:55:26 AM »
Quote from: keijok on August 22, 2006, 06:04:08 AM
Quote from: tjoppru on August 21, 2006, 07:25:19 PM
Yes i created a page with Event Calendar as page type and added an event and made it viewable by the public and All I get is a blank page that says the Title at the top.
That's odd
Can you see any error messages in the webserver log?
If so, could you please paste the error here so I can take a look...
This is because in the event.class.php file it declares
var $type = '';
Twice
Delete line 26 in the event.class.php and the calendar will show.
Chet
«
Last Edit: November 28, 2006, 05:57:03 AM by chetvictor
»
Logged
marathoner
Master Baker
Offline
Posts: 383
Re: Yet another event calendar
«
Reply #36 on:
December 15, 2006, 09:50:49 PM »
I love this module and have made some changes. One thing that some other folks may want to take advantage of is to be able to put a small calendar on any page (as opposed to coding it into the template as mentioned earlier). I simply created a function called small_cal() and then call this from a code section on a page. Here is the function:
function small_cal() {
global $database;
require_once( WB_PATH.'/modules/event_calendar/calendar.class.original.php' );
$cal = new Calendar( $database, 'menu' );
echo "".$cal->writeCalendar();
}
Note that the code is exactly the same as that used in the template but that it also has to include the global variable $database.
If you want to see my function in action, check out:
http://www.secondsoletotalsports.com
Hope someone out there can use this.
«
Last Edit: December 16, 2006, 02:58:49 AM by marathoner
»
Logged
DGEC
Master Baker
Offline
Posts: 382
Re: Yet another event calendar
«
Reply #37 on:
January 30, 2007, 09:28:32 PM »
Quote from: marathoner on December 15, 2006, 09:50:49 PM
advantage of is to be able to put a small calendar on any page (as opposed to coding it into the template as mentioned earlier). I simply created a function called small_cal() and then call this from a code section on a page. Here is the function:
...
Note that the code is exactly the same as that used in the template but that it also has to include the global variable $database.
Just wanted to check - is this safe to use on "multi-oven" sites? (one code installation, multiple sites)
I'm not sure if the $database variable includes (or is) the database's site prefix.
Logged
useeme2ce
Pending Apprentice Baker
Offline
Posts: 4
Re: Yet another event calendar
«
Reply #38 on:
April 25, 2007, 05:53:45 PM »
I use this one. It works...
But the Date is wrong. It starts with: Monday, 1st April. Not with Sunday, 1st April.
Any idea how to fix this?
By the way - are there any workarounds for the normal event calender, to show a small calender in the navigation? That was the only reason, why I used this special event calender...
Logged
marathoner
Master Baker
Offline
Posts: 383
Re: Yet another event calendar
«
Reply #39 on:
April 27, 2007, 08:31:12 PM »
Quote
By the way - are there any workarounds for the normal event calender, to show a small calender in the navigation? That was the only reason, why I used this special event calender...
Regarding the wrong days...I don't know why the calendar would have the days wrong. Do other date functions work correctly on your system? Just a thought...it may be a PHP configuration issue.
Regarding the small calendar...as I mentioned above, you can either implement the small calendar code into your template or create a small function that you can call from a code section of a specific page. Both the full calendar and the small calendar are CSS based so you can make it as big or small as you want. See my site as an example:
www.secondsoletotalsports.com
Logged
Pages:
1
[
2
]
3
4
5
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
===> Security Announcements
=> Guest Area and Off-Topic
=> Website Showcase
-----------------------------
English
-----------------------------
=> Help/Support
===> Help/Support of WB2.7.x core
=> Website Baker Development
===> Website Baker 3
=> Documentation
=> Templates
=> Modules
===> Code Snippets
=> Languages
=> Archive
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Hilfe/Support
===> Templates, Module & Co.
===> Hilfe/Support von WB2.7.x core
=> Diskussion über WB
=> Off-Topic
=> Archiv
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Help / Support
===> WB Core
===> Templates, Modules & Languages
=> WB Discussie
=> Niet-Terzake (Off Topic)
-----------------------------
French
-----------------------------
=> Help/Support
-----------------------------
Italian
-----------------------------
=> Help/Support
Loading...