Author Topic: display todays events from event-calender on frontpage  (Read 15746 times)

JTux

  • Guest
Re: display todays events from event-calender on frontpage
« Reply #25 on: October 02, 2007, 11:52:39 AM »
Yet Another Event Calendar.  It's a Month view

....
http://forum.WebsiteBaker.org/index.php/topic,3777.0.html is the thread and
http://keijok.kapsi.fi/wb/pages/en/wb-modules/event-calendar.php?lang=EN is the documentation & download page

I went in and set a fixed height for the cells, I didn't like very short days if there was nothing for the week.

<Snipped>
Reminds me, there were a couple other things I wanted to tweak as well...

Hello DGEC,

I have started to use the Event Calendar by Keijok, but the links to his website don't work anymore so I haven't been able to find any documentation. I would like to tweak some things like the height of cells in the main calendar and the mini calendars, but I don't know where to start. Can you please give me some pointers to how you do this?

Thanks

John

Offline DGEC

  • Posts: 388
  • Gender: Male
    • EbelTech homepage
Re: display todays events from event-calender on frontpage
« Reply #26 on: October 02, 2007, 05:14:44 PM »
The Internet Archive's "Wayback Machine" is your friend.

Go to http://archive.org and enter the vanished page into the text box and you will shortly get a list of all the dates when they archived the page. The "*" tells you when they noticed differences in the page. Sometimes attachments like images don't get saved on one date, but do on others, so you might need to try a couple of different "identical" dates.

The first half of the documentation is how to use the calendar, the second half is CSS names and other coding display information. Cell height is not an option. Neither, is table with, I had to go in and manually set the overall table size to fit to my content width in a couple of places. Rats. I should have commented where I did that. I always forget that! I'm used to a SCL library at work, makes it easy to see where things have changed. Hmm. That would be nice to have in WB too...

As for the cell height, I forget how I did it - and I overwrote my experimental site so I have nothing to compare against.  I think I went into the php code where it writes out the table's cell definition and modified it to a set height.  Please post if you find the line to do that.
Start by looking at the view.php IIRC. 
The one problem with the modern tendency to write everything in different files is that it makes it harder to trace and find something without an IDE and debugger.

There's actually a ton of things I like to have it do differently, easist being putting the Add Event sub-form at the TOP of the page. When you have several pages worth of dates, it gets tiresome scrolling to the bottom every time. In fact, I'd like to modify it to display "pages" so that, i.e., only the current day/week/month/quarter's events are listed.
Even better, Adding or Editing events by clicking on the description or date in the calendar itself (for logged in administrators only of course) is also a vastly better interface than forcing you to the admin page all the time. The phpeventcalendar that I mentioned before is nice & easy to use like that, although it's not under development any more either and I never quite got to integrating it with WB before this one came out anyway. The project "webcalendar" is very powerful but harder to set up from what I can tell.

There's also issues with default time entry. I'd like to set a default time other than 9 - 4. And I think it was messing it up anyway, setting end time of 4 am or something - prior to the start time. Ahem. I just haven't got fixing any of that yet. I still haven't fixed my template rendering badly with FF in fact. Sigh.

JTux

  • Guest
Re: display todays events from event-calender on frontpage
« Reply #27 on: October 05, 2007, 03:44:58 AM »
Thanks for the advice DGEC. I'll have a go at it but I'm pretty much a beginner with code so I'm sure how I'll go. I will post if I work it out!
Cheers,
John

Offline DGEC

  • Posts: 388
  • Gender: Male
    • EbelTech homepage
Re: display todays events from event-calender on frontpage
« Reply #28 on: October 05, 2007, 11:00:25 PM »
All right! Got some progress here (even fixed my FF issues - did you know FF & IE handle the absence of a BODY statement differently? Go figure). And I didn't even remember to look at the docs  :roll:

I've modified several files, but the calendar.css file is the one to get a minimum fixed height, if you want nice clean code. Just add
Code: [Select]
height: 60px;or ems or whatever your design calls for in the calendar_day, calendar_eventday & calendar_today definitions. If that doesn't sell you on CSS... one line added to the 3 different types of cells vs adding a height to every <td> element?

I was also doing some adjusting of the font sizes and I converted the fixed pixel width to 94% or something like that (divide by 7 to get the size of the columns & adjust various fields to suit) - I had to cut the names down to short forms to get the width% to work - it's expandable, the same as the height!  (I was very confused - why are the column widths all different?? :-P) The languages/EN.php file contains the text strings for that.

You know, we probably should be discussing this in the mod_evcal thread.  Which, actually, is the point that Greg was making in his rant in the template management thread. There does need to be a wiki rather than just the message board so these kind of things could be added there and people pointed to the entries rather than rehashing multiple out-dated threads.

erpe0812

  • Guest
Re: display todays events from event-calender on frontpage
« Reply #29 on: April 16, 2008, 11:38:30 AM »
@spawnferkel:
where do I have to put this code in the template?
I tried to make a copy and paste to the template allcss2 but it did not worked.

erpe

Offline Olli

  • Posts: 291
Re: display todays events from event-calender on frontpage
« Reply #30 on: June 17, 2008, 04:36:26 PM »
@vis-elu: do you still have problems with the code?
sorry just accidentally read it without having topic notification turned on.

just put the javascript stuff between <head>... </head>

that should do the trick

regards

 

postern-length