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
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post by Kosse »

Hi again Joakim José,
3 examples of working calendars:
http://thekhabeleschool.org/cms/index.php original MOD
http://tus-lintfort.de.s522.evanzo-server.de/ volkman MOD
http://www.mjlaloy.be/mjlaloy/index.php?agenda in between version ;) (have to modify the div z-index because with FF, you can't click on calendar... :shock: )

As you can see days are "clickable" but display the full month (some examples of calendars, but don't remember where I saw them... :oops: show only the day you click on)

And, plz don't take it on pico, he's a great guy! Just that sometimes pple who help a lot (like he does) get tired of ... how can I say... mmm... lazzy questions? (not stupid, lazzy, means that pple post without reading and ask "help" "help" --> I'm not saying it's your case, I just say sometimes it happens) ;)

Cheers
Jakim José
Posts: 77
Joined: Fri 18. Feb 2005, 18:55
Location: Portugal/Aveiro

Post by Jakim José »

Kosse wrote:I love this...
http://tus-lintfort.de.s522.evanzo-server.de/ volkman MOD
Kosse wrote:And, plz don't take it on pico, he's a great guy! Just that sometimes pple who help a lot (like he does) get tired of ... how can I say... mmm... lazzy questions? (not stupid, lazzy, means that pple post without reading and ask "help" "help" --> I'm not saying it's your case, I just say sometimes it happens) ;)
OK, I'm sorry pico and all users! (I don't understand english very well)

How I put the links?
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

Post by volkman »

Hi Jakim José!
Open the file calendar.classes.php in mod_calendar/inc_lib/

If you use "my" mod, go to line 149 and delete the two comments // in front of the line

Add // in front of line 150 then.
Linking is on then.

On page 13 of this thread, 2nd post, you find some explanation how to use the link-feature.
hope that helps

volkman
Jakim José
Posts: 77
Joined: Fri 18. Feb 2005, 18:55
Location: Portugal/Aveiro

Post by Jakim José »

volkman wrote:Hi Jakim José!
Open the file calendar.classes.php in mod_calendar/inc_lib/

If you use "my" mod, go to line 149 and delete the two comments // in front of the line

Add // in front of line 150 then.
Linking is on then.
OK.
volkman wrote:On page 13 of this thread, 2nd post, you find some explanation how to use the link-feature.
hope that helps
With the explanation on 2nd post of page 13 of this thread - http://www.phpwcms.de/forum/viewtopic.php?p=52938#52938 - I don't understood what where he was.

I tried all the codes, but I did not obtain the result to make with that on click the events details of this day appear in the main "frame".

And it don't appear the details of the event (day, categorie, title, time, location and description) in main frame.
It appears only the month, year and title above de calendar in left frame.

I wish as well as here - http://tus-lintfort.de.s522.evanzo-server.de/.

And what file can I modifie to edit the font and color of calendar events?
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

Hello Jakim

First: http://www.malouin.ws/design/downloads-phpwcms.phtml download all the stuff from Studios Website Vers. 3 is mentioned.

After unpacking it: There will be some parts to add into css file, mostly this drives the color of the calendar. (As hint try different browsers)

Then go back to volkmanns thread, open the (in the package includede) file in an text editor and UNCOMMENT the two lines. This will result the linking of events.

Afterwards uploadd all the stuff as explained.

You need to have 2 different TAGS : (as explained some pages ago)

One .. ist for the cal with links... f.e. on the left side and the other tag is for the printing of events.

If you only take the call Tag with links, the php machine will jump to the event table.

Thast all... GREAT STUFF ! Its worth the time following the code how it works.

Jürgen

/*Edit*/ Was no good idea with the hot wine this morning on christmas market :shock:
Jakim José
Posts: 77
Joined: Fri 18. Feb 2005, 18:55
Location: Portugal/Aveiro

Post by Jakim José »

DF6IH wrote:After unpacking it: There will be some parts to add into css file, mostly this drives the color of the calendar. (As hint try different browsers)
Ok. And what the line css to modify the font size of the days on calendar?
DF6IH wrote:You need to have 2 different TAGS : (as explained some pages ago)

One .. ist for the cal with links... f.e. on the left side and the other tag is for the printing of events.

If you only take the call Tag with links, the php machine will jump to the event table.
I don't know where is it.

What is the topic explain how to jump the event details to "main table" onclick on events links?
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

Just a hint:

As Firefoxer *g* i could not live with two differnet views of the calendar. For noe i don't know, if there is to much css inside my installation, but in IE the thing looked total different as in firefox.

...since ... i changed the colours in css to names ! silver, black.. and so on.

Now ... completly the same !

Code: Select all

/* Days Cells colors */


.noactiveday, .noactiveday td, .noactiveday tr {
color: #000000;
font-size: 8px;
background-color: silver;
text-decoration: none;
padding-top: 1px; padding-bottom: 1px;
}


.activeday, .activeday td, .activeday tr {
color: #ff0000;
font-size: 8px;
background-color: silver;
text-decoration: normal;
padding-top: 1px; padding-bottom: 1px;
}

.activeday a, .activeday a:link, .activeday a:active, .activeday a:visited 
{
color: #ff0000;
font-weight: bold;
background-color: silver;
text-decoration: none;
padding-top: 1px; padding-bottom: 1px;

}

td.activeday a:hover {
color: #ff0000;
background-color: silver;
text-decoration: underline;
padding-top: 1px; padding-bottom: 1px;

}

.activeday, .activeday td, .activeday tr {
color: #000000;
background-color: #eeeeee;
text-decoration: none;
padding-top: 1px; padding-bottom: 1px;
}
Changed template to 150px and calendar fits in template!
Jakim José
Posts: 77
Joined: Fri 18. Feb 2005, 18:55
Location: Portugal/Aveiro

Post by Jakim José »

DF6IH wrote:...Changed template to 150px and calendar fits in template!
OK... the font size is smaller, but "cell padding" of the days continue big.
Bigger than 150px! (and the template already is 150px)
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

Hello Jakim,

as far as i understood:

There are several div Tags and a table. The table is fixed to (in my install) 150 px. The only thing that could happen, is that inside the small calendar width can grow bigger than the coded width. Then, different browers make different views as well, caused by different interpretation. I have no pixel meassure instrument :wink: but the thing fits to template.

I have a 10 row php in the template, which takes a **** emergency service out of the database, siwtches "daydriven" the service and put the monthly small cal just beneath of that. Quite easy with big effect in 150px :P

greetz

Jürgen
Jakim José
Posts: 77
Joined: Fri 18. Feb 2005, 18:55
Location: Portugal/Aveiro

Post by Jakim José »

DF6IH wrote:You need to have 2 different TAGS : (as explained some pages ago)

One .. ist for the cal with links... f.e. on the left side and the other tag is for the printing of events.

If you only take the call Tag with links, the php machine will jump to the event table.
It will be possible not to function because I use phpwcms 1.2.3 version?
Last edited by Jakim José on Sat 31. Dec 2005, 13:01, edited 1 time in total.
LPWV
Posts: 34
Joined: Mon 19. Dec 2005, 04:31

I LOVE IT

Post by LPWV »

I love this script...

Please take a look at the way I implemented it:
http://www.lpwv.org/index.php?calendar_ebm

However, the active days are not linking and neither is the heading...Just curious as to how I turn on the links...

If anyone has any suggestion for improvements on the way I am using the script...Please let me know...I really would appreciate some feeback...
Michael S. Wilson
Sir Erazor
Posts: 72
Joined: Sat 18. Jun 2005, 10:41

Post by Sir Erazor »

I don´t get the calendar running :-(

i can use every function @ the "mods" section in my backend, but the replacement-tag does n t work :/

i did it like this:

{CAL:0:front.template.php}

is here missing sth?
THX
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

Hello his majesty :D

{CAL:1:volk_temp_all_noevent_links.php:volk_temp_events_links.php:termine:3}

Thats the way to get the small overview working where: "termine" is the name of the linked part like "index.php?termine"

inside the article with the ailas "Termine" this :

{CAL:1:volk_temp_all_content.php:volk_temp_events_content.php:Veranstaltungen:calEventDayDetail }

The third part is the name of category in calender.
part 4 .. if I remember well .. is the css class .. but not shure
Thats for Volkmans hack of ionrocks calendar. just look for his threats in this forum.

This stuff has a very large interaction of CSS an hardcoded parts.

I would like to have a complete documentation ... but not shure if I ever will have enough time to dig throug all the mod. It's worth, in my opinion...

Its quite easy to use the database of the cal to get information for template with extra 10 line mod. Something like next event ... or taodays emergency service... or so...

greetz

Jürgen
bskov
Posts: 11
Joined: Sun 15. Jan 2006, 19:08
Location: Århus - Denmark
Contact:

dansk sprogpakke til backend

Post by bskov »

Hi All

I managed to install this nice mod (v. 3.0)

and I made a danish Language file for the backend - you can get it here:

http://www.brianskov.dk/da.zip


just ad the folder "da" to your

/phpwcms/include/inc_module/mod_calendar/inc_lang/backend/

Nice job all of you.... :D :D :D
Brian Skov
Sir Erazor
Posts: 72
Joined: Sat 18. Jun 2005, 10:41

Post by Sir Erazor »

hey,

i have a little problem (answers maybe in german :-)) ...

http://www.erazorsland.de/kljb/index.php?termine ... i can´t click the narrows... its very.. mhm... i dont understand the problem ... one time it looks like being ok, but when i test it anothertime i cant klick to other months like january :-(

what can i do? did i sth wrong? :-(

lg
Post Reply