Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 08:03:12 PM
1 Hour
1 Day
1 Week
1 Month
Forever
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
.
155551
Posts in
21715
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
New event calendar module: ProCalendar
Pages:
1
[
2
]
3
4
...
8
Go Down
Author
Topic: New event calendar module: ProCalendar (Read 7309 times)
Argos
Moderator
Offline
Posts: 2161
Re: New event calendar module: ProCalendar
«
Reply #25 on:
October 04, 2011, 07:26:21 AM »
You're right. I updated the info.php and the link (I must have forgotten to save the last time I checked it).
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
instantflorian
Betatester
Offline
Posts: 804
Re: New event calendar module: ProCalendar
«
Reply #26 on:
October 05, 2011, 12:05:53 PM »
Hi,
I've got a feature request: it is possible to add a RSS feed to the calendar which shows the next upcoming or the last added events? Only if it's not too complicated.
(Just an idea of a customer of mine...)
BR
_florian.
Logged
pcwacht
AddOn Development
Offline
Posts: 2859
Re: New event calendar module: ProCalendar
«
Reply #27 on:
October 05, 2011, 03:27:04 PM »
Can be done.
Might be that for including customs a bit php editing might be needed.
what do you need to be rss-ed?
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
pcwacht
AddOn Development
Offline
Posts: 2859
Re: New event calendar module: ProCalendar
«
Reply #28 on:
October 05, 2011, 07:54:20 PM »
First RSS feeder for testing!!!!!
demo :
http://www.pcwacht.nl/modules/procalendar/rss.php?page_id=32
1 unzip rss.zip
2 copy rss.php to modules/procalendar
3 call rss -
http://www.yourdomain.com/modules/procalendar/rss.php?page_id=12
( Set page_id to match your situation !!! )
If there are events, they should show up.
Variables you might like to play with: lines 14 to 20
Code:
// Editable values
// Show how many items, defaults to 10?
$max = 10;
// Set time frame for coming events, default one year
$year2 = $year + 1;
$month2 = $month;
If you need 6 months, set $month2 = $month+6; and $year2 = $year;
If you need 1 year and 6 months, set $month2 = $month+6; and $year2 = $year+1;
Have fun,
John
Edit: file download removed. This feature is part of the module since version 1.0.4
«
Last Edit: March 15, 2012, 11:11:03 AM by Argos
»
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
instantflorian
Betatester
Offline
Posts: 804
Re: New event calendar module: ProCalendar
«
Reply #29 on:
October 06, 2011, 08:55:42 AM »
Hi,
Thank you very much so far. Currently, it doesn't work yet:
Code:
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in .../modules/procalendar/rss.php on line 11
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in .../modules/procalendar/rss.php on line 12
Warning: Cannot modify header information - headers already sent by (output started at .../modules/procalendar/rss.php:11) in .../modules/procalendar/rss.php on line 50
(...Some Content...)
]]> http://test.meerwinck.com/eyck/pages/en/teaching/book-lessons.php?id=2&detail=1 http://.../pages/en/teaching/book-lessons.php?id=2&detail=1
But this is not so important for me in the moment.
I encountered a strange bug:
click on options > e.g. Template and there on "Save"
click again on "Template" => all fields are empty
go back => default settings for use time, start/end date, not the customized ones
click on "Back", click again on "options" and on "template" => everything OK
BR
_florian.
«
Last Edit: October 06, 2011, 09:34:24 AM by Argos
»
Logged
pcwacht
AddOn Development
Offline
Posts: 2859
Re: New event calendar module: ProCalendar
«
Reply #30 on:
October 06, 2011, 09:31:44 AM »
Will digg in the bug
What php version do you have? for dealing with the warning.
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
instantflorian
Betatester
Offline
Posts: 804
Re: New event calendar module: ProCalendar
«
Reply #31 on:
October 06, 2011, 09:36:56 AM »
Hi John,
it's PHP 5.3
BR
_florian.
Logged
Argos
Moderator
Offline
Posts: 2161
Re: New event calendar module: ProCalendar
«
Reply #32 on:
October 06, 2011, 09:37:15 AM »
I just tested it on my demo site and I cannot confirm this. Everything works like it should. There are no empty fields like you described. I use the latest WB and PHP 5.2.9
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
instantflorian
Betatester
Offline
Posts: 804
Re: New event calendar module: ProCalendar
«
Reply #33 on:
October 06, 2011, 09:48:08 AM »
Well, it definitively happens here... I've tested again with Firefox and Chrome, same effect.
WB 2.8.2 Rev. 1506 with your BE-Theme Rev. 1.6
PHP Version 5.3.8-1~dotdeb.1
If you want to have a look, I can create an account for you...
BR
_florian.
Logged
Argos
Moderator
Offline
Posts: 2161
Re: New event calendar module: ProCalendar
«
Reply #34 on:
October 06, 2011, 09:53:12 AM »
Please create an account for both me and John, so we can have a look. Just PM us. Thanks Florian.
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
pcwacht
AddOn Development
Offline
Posts: 2859
Re: New event calendar module: ProCalendar
«
Reply #35 on:
October 06, 2011, 08:34:25 PM »
The bug seems to be browser related.
With IE no errors
With Firefox I had same bug.
Will look into it to see where it comes from.
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
pcwacht
AddOn Development
Offline
Posts: 2859
Re: New event calendar module: ProCalendar
«
Reply #36 on:
October 07, 2011, 10:37:24 AM »
Found the rss bug
It seems at your server the default_timezone is not set in php.ini.
Now the rss.php will set default_timezone to avoid that.
Found the strange template save bug.
After save the link was
--/modules/procalendar/modify_settings.php?page_id=2&section_id=2
wich should be
--/modules/procalendar/modify_settings.php?page_id=2§ion_id=2
It look slike IE interprete it as it should, and Firefox didn't.
Attached a zip with three files, unpack, overwrite at server.
If it fixes at your server as well we can release 1.0.4
John
Edit: file download removed. This feature is part of the module since version 1.0.4
«
Last Edit: March 15, 2012, 11:11:30 AM by Argos
»
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
instantflorian
Betatester
Offline
Posts: 804
Re: New event calendar module: ProCalendar
«
Reply #37 on:
October 07, 2011, 10:48:06 AM »
Hi John,
great! No problems any more... thank you so much.
BR
_florian.
Logged
Argos
Moderator
Offline
Posts: 2161
Re: New event calendar module: ProCalendar
«
Reply #38 on:
October 07, 2011, 03:15:36 PM »
I have updated the module to 1.0.4.
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
croony
Offline
Posts: 8
Re: New event calendar module: ProCalendar
«
Reply #39 on:
October 13, 2011, 09:07:22 AM »
Hi,
I just tested the ProCalenar and I think it's a pretty nice work. The only thing I miss is a Group selection when I set the visibility of an entry to private. Is it possible for me to add this Group selection in any way?
Regards,
croony
Logged
Argos
Moderator
Offline
Posts: 2161
Re: New event calendar module: ProCalendar
«
Reply #40 on:
October 13, 2011, 09:36:03 AM »
Good suggestion. I hope John will find the time and a way to do that!
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
pcwacht
AddOn Development
Offline
Posts: 2859
Re: New event calendar module: ProCalendar
«
Reply #41 on:
October 13, 2011, 11:03:24 AM »
The current private/public option is a per user visibility setting, not for a group!!!!
If user1 enters an event he can set it to private (or better personal), no other user will see them (maybe admin, didn't test that
)
What you need is not implemented.
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
tiggerific
Offline
Posts: 25
Re: New event calendar module: ProCalendar
«
Reply #42 on:
October 17, 2011, 01:49:51 PM »
This looks like a great module with a lot of options - about time there was a better calendar module!
I noticed that your "Download and try it for yourself" link still points to a [wblink]. This is a problem with WB2.8.2 which I have had to correct in every installation...
In the WYSIWYG module's view.php file, I added back the code from the previous version of WB:
Code:
$wb->preprocess($content); # <-- Added; don't know why this line was removed
The internal links are then correctly converted.
Logged
Argos
Moderator
Offline
Posts: 2161
Re: New event calendar module: ProCalendar
«
Reply #43 on:
October 17, 2011, 02:44:50 PM »
I just checked again, and noticed that the link was right when I was logged in, but wrong after logging out. When I switched from the default editor to another editor, the problem was gone.
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
pcwacht
AddOn Development
Offline
Posts: 2859
Re: New event calendar module: ProCalendar
«
Reply #44 on:
October 17, 2011, 05:00:05 PM »
Link still faulty.
Soon first tests with groups access will be done, if it is ok there will be an update
Events can be:
public, everyone can see
private, only owner of event can see it (and admin)
groupname, user belonging to that group can see the event (and admin ofcourse)
If you want to test this, you'll need to download a new functions.php at :
http://www.pcwacht.nl/pages/kalendar/extrainfo.php
Then rename existing functions.php in /modules/procalendar
Upload the new unzipped functions.php.
There are no db or other changes needed.
To undo, delete functions.php and rename the old functions.php back.
Allso fixed a very tiny error, when in frontview viewing december, next month link doesn't has a title, same with januari, previous link is without a title.
John
«
Last Edit: October 17, 2011, 05:06:40 PM by pcwacht
»
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
Argos
Moderator
Offline
Posts: 2161
Re: New event calendar module: ProCalendar
«
Reply #45 on:
October 17, 2011, 05:04:25 PM »
Quote from: pcwacht on October 17, 2011, 05:00:05 PM
Link still faulty.
Not here. Tested all browsers. Weird....
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
pcwacht
AddOn Development
Offline
Posts: 2859
Re: New event calendar module: ProCalendar
«
Reply #46 on:
October 17, 2011, 05:22:50 PM »
And I did a ctrl-f5 in IE , hard reload
Checked in IE and FF
See attached pic, look at statusbar
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
Argos
Moderator
Offline
Posts: 2161
Re: New event calendar module: ProCalendar
«
Reply #47 on:
October 17, 2011, 09:09:31 PM »
I don't understand. To get rid of the weird problem I just changed the WB link into a hard URL.
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
pcwacht
AddOn Development
Offline
Posts: 2859
Re: New event calendar module: ProCalendar
«
Reply #48 on:
October 17, 2011, 09:29:40 PM »
quoted from tiggerific: $wb->preprocess($content); # <-- Added; don't know why this line was removed
Not yet confirmed, but I had to replace this as well some time ago.
Don't know if it was a first 282 release .....
Did allso see the preprocess somewhere else.. will dig into it in a clean wb282 including servicepacks, hotfixes and other updates (seems WB wants to mimic Microsoft?)
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
Stefek
WebsiteBaker Org e.V.
Offline
Posts: 4884
Re: New event calendar module: ProCalendar
«
Reply #49 on:
October 17, 2011, 09:44:58 PM »
Hello John,
I had the same issue once with another module I worked on.
I derived a simple function from the preprocess method of class wb.
You may have a look if this helps to resolve the issue.
The function goes like this:
Code:
<?php
// <?php to force forum colorizer, ignore this line
/*
*
* replace all "[wblink{page_id}]" with real links
* @param string &$content : reference to global $content
* @return void
* @history 100216 17:00:00 optimise errorhandling, speed, SQL-strict
* NOTE: this function is derrived from the CORE Function to be found in framework/class.frontend.php
*/
if (!
function_exists
(
'preprocess_internal_links'
)){
function
preprocess_internal_links
(&
$content
)
{
global
$database
;
$replace_list
= array();
$pattern
=
'/\[wblink([0-9]+)\]/isU'
;
if(
preg_match_all
(
$pattern
,
$content
,
$ids
))
{
foreach(
$ids
[
1
] as
$key
=>
$page_id
) {
$replace_list
[
$page_id
] =
$ids
[
0
][
$key
];
}
foreach(
$replace_list
as
$page_id
=>
$tag
)
{
$link
=
$database
->
get_one
(
'SELECT `link` FROM `'
.
TABLE_PREFIX
.
'pages` WHERE `page_id` = '
.(int)
$page_id
);
if(!
is_null
(
$link
))
{
$link
=
WB_URL
.
PAGES_DIRECTORY
.
$link
.
PAGE_EXTENSION
;
$content
=
str_replace
(
$tag
,
$link
,
$content
);
}
}
}
}
}
Regards,
Stefek
Quote from: pcwacht on October 17, 2011, 09:29:40 PM
(seems WB wants to mimic Microsoft?)
(unfortunatly not its struggle for success
)
«
Last Edit: October 17, 2011, 09:48:05 PM by Stefek
»
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Pages:
1
[
2
]
3
4
...
8
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...