An Event Calendar Mod

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

Kosse, your hack sounds good. 8)
Did not tried it yet tough.
Don,t know if I'll ever do. :oops:
When I see this: 11 pages of discussions regarding this Calendar :roll:
Sounds like it is a highly popular feature.
Hoping Oliver to come up with a fully integrated solution soon...

Cheers,
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post by Kosse »

StudioZ wrote:Kosse, your hack sounds good. 8)
Did not tried it yet tough.
Don,t know if I'll ever do. :oops:
When I see this: 11 pages of discussions regarding this Calendar :roll:
Sounds like it is a highly popular feature.
Hoping Oliver to come up with a fully integrated solution soon...

Cheers,
Yes, that would be nice ;)
And as for the hack, well I don't know if it will work for everybody, but it does for me...
The ' is a big issue as u know... we french speaking pple use it quite often, and mysql doesn't like it... :P

Cheers
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

For anyone interested,
Volkman has made his Ioronrock's Calendar hack available.
Details here:
http://www.phpwcms.de/forum/viewtopic.php?p=52126#52126

Cheers,
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

Small add-on

Post by volkman »

Sorry, the installation-help is missing one topic to be edited. for those of you who already downloaded the mod, please check
http://www.phpwcms.de/forum/viewtopic.php?p=52163#52163

I have sent StudioZ an new archive with the corrected set

Sorry for the inconvenience, I've been too tired

volkman
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post by Kosse »

Hi volkman, congrats nice job,
One question, did u inlcude the hack that was made for the special characters in your version? (http://www.phpwcms.de/forum/viewtopic.p ... &start=152)
Thanks.

Cheers
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

Post by volkman »

hi kosse,
thanks for the hint, yes, the cal-week starts on mondays, not on sundays.
If i had the time, there is soo much to clean from leftovers of ionrocks version he made for a customer.
cewenet pointed me to the file /inc_tmpl/header.php where still a javascript function for editing and deleting of calendar-users sits (from ionrocks customer). This one can be deleted. I had never opened that file before :?

have a good one

volkman
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

I'm testing the newest Version of this Calendar mod and I find out, that the
FCKeditor (what else ;) ) won't start - also have tested to set to HTMLarea doesn't work too :(

So I look into the Code and have done the followin modifikation in
mod_calendar/inc_tmpl/calendar.event.forms.php

Code: Select all

switch($_SESSION["wysiwyg_editor"]) {
to

Code: Select all

switch($_SESSION["WYSIWYG_EDITOR"]) 
{

for the new FCKeditor 2.1 the Call has changed - so this

Code: Select all

//load FCKeditor
 case 2:	
   include(PHPWCMS_ROOT."/include/inc_lib/fckeditor.editor.inc.php") ;
   $oFCKeditor = new FCKeditor ;
   $oFCKeditor->ToolbarSet = 'phpwcms' ;
   $oFCKeditor->Value = stripslashes($values['description']) ;
   $oFCKeditor->CreateFCKeditor( 'description', '100%', '350' ) ;
   break;
has to be changed to

Code: Select all

//load FCKeditor
 case 2:
  include(PHPWCMS_ROOT."/include/inc_ext/FCKeditor2/fckeditor.php");
  $oFCKeditor = new FCKeditor('description');
  $oFCKeditor->ToolbarSet = 'phpwcms' ;
  $oFCKeditor->Width = '436';
  $oFCKeditor->Height = '400';
  $oFCKeditor->Value = stripslashes($values['description']) ;
  $oFCKeditor->BasePath = '/include/inc_ext/FCKeditor2/' ;
  $oFCKeditor->Create('description') ;
  break;
tested with phpWCMS Version 1.2.6 DEV - CSV
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

Post by volkman »

horst,
you are my heroe! I was trying to find out why even the damm HTMLarea did not work, just writing in capitals - now it works here (DEV 1.2.5), thank you!
Thx aswell for the hint on FCKeditor


I am still not using FCKEditor cause it screws up my Umlauts (öäü). After editing the summary displays ä instead of ä if I open the complete view of an article.
see http://www.phpwcms.de/forum/viewtopic.php?p=47389
and
http://www.phpwcms.de/forum/viewtopic.p ... highlight=

I'd love to use FCKeditor, had em installed (your version), but...

volkman
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

@volkmann

goto ../include/inc_tmpl/articlecontent.list.tmpl.php ~line 46

change

Code: Select all

<td valign="top" class="v10"><?php echo html_specialchars(strip_tags($article["article_summary"])); ?>
to

Code: Select all

<td valign="top" class="v10"><?php echo strip_tags($article["article_summary"]); ?></td>
maybe this solve your Problem ;)
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

@Volkmann

to solve a Error when creating a monthly/week Event (undefined function get_ordinal_day(...) in Line ... )

you have to move the Function from Line ~509 to the top of the File right after <?php

Code: Select all

function get_ordinal_day($ord, $nthday, $evtime)
	{
			$currenttime=$evtime;
			$i=0;
	
			while ($i<$nthday) {
					if ($ord==date("w", $currenttime)) $i++;
					if ($i<$nthday) {
					   $currentarray=explode("-", date("Y-m-d", $currenttime));
					   $currenttime=mktime(0,0,0,$currentarray[1], $currentarray[2]+1, $currentarray[0]);
					}
			}
			return $currenttime;
	}
if you use a prpend in your Database you can set it in ../mod_calendar/inc_lib/main.config.php

Code: Select all

$prefix				= "cms__";
and modify the cal_mod.sql everywher

Code: Select all

CREATE TABLE `cms__phpwcms....
and

Code: Select all

INSERT INTO `cms__phpwcms
befor running in SQL for creating the Tables.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

Post by volkman »

wow horst, thanks a lot. maybe i never ran into this cause i never used that feature...
i have to finish a big print-publishing job right now (need some money :cry: ). after that, i will try to incorporate all the rechent changes and do some codecleaning. will work on the backend localisation aswell, there is still some stuff left. i like the calendar, its plain and easy.

volkman
sixtonveit
Posts: 11
Joined: Sun 13. Nov 2005, 11:48

Post by sixtonveit »

hello,
i hav installed the Calender Mod 3.0...it is looking good. But i have a question.

On the calender in the left (or right) frame you can click on the date to open
allevents...like here : http://thekhabeleschool.org/cms/index.php

But how can i do this, at my Website it is not possible to open the "allevent of the month"....what can i do ?

My project site is: http://tus-lintfort.de.s522.evanzo-server.de/

thanks.
sixtonveit
Posts: 11
Joined: Sun 13. Nov 2005, 11:48

Post by sixtonveit »

hello,
i hav installed the Calender Mod 3.0...it is looking good. But i have a question.

On the calender in the left (or right) frame you can click on the date to open
allevents...like here : http://thekhabeleschool.org/cms/index.php

But how can i do this, at my Website it is not possible to open the "allevent of the month"....what can i do ?

My project site is: http://tus-lintfort.de.s522.evanzo-server.de/

thanks.
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

Post by volkman »

open /inc_lib/calendar.classes.php and go to line 149/150. I did not need that functionality, so I commented it out. The necessary line is still there of cause.

Delete the to comment-characters // in front of line 149 and put them in front of line 150 and you are done.

volkman
sixtonveit
Posts: 11
Joined: Sun 13. Nov 2005, 11:48

Post by sixtonveit »

Hello again,

thank you, i have done this. Now i can klick on the days but the "allevent" don´t open. Can you take a look on my Project above ?
Post Reply