51
koltz
Re: Feature for a great calendar module ?
  • 2005/2/17 15:58

  • koltz

  • Just popping in

  • Posts: 19

  • Since: 2003/7/22


SELECT id, title, day, description, contact, url, email, start_date, end_date, cat_name, cat_desc, cat_color FROM xoops_extcal_events E INNER JOIN xoops_extcal_cat C ON E.cat = C.cat_id WHERE year = 2005 AND month = 2 AND day = 2 ORDER BY day ASC, start_date ASC

Thanks, Corey

52
zoullou
Re: Feature for a great calendar module ?
  • 2005/2/17 16:04

  • zoullou

  • Quite a regular

  • Posts: 250

  • Since: 2004/3/2 0


In index.php replace by that :
$all_event $event->getAllEvent($info['cal']['month']['current']['month'], $info['cal']['month']['current']['year'], false$cat);


See you

53
koltz
Re: Feature for a great calendar module ?
  • 2005/2/17 16:33

  • koltz

  • Just popping in

  • Posts: 19

  • Since: 2003/7/22


Thanks, that did it. Now, am I going psycho or did Sunday move to the right at the end after Saturday? It displays as Monday Tuesday Wednesday Thursday Friday Saturday Sunday in that order? I will see if I can find it in the code, if you know what is wrong :)

Thanks for all your help, this is a great contrib and looking forward to v2 when it becomes avail. Maybe some of this will be put to use in v2?

Thanks, Corey

54
koltz
Re: Feature for a great calendar module ?
  • 2005/2/17 21:42

  • koltz

  • Just popping in

  • Posts: 19

  • Since: 2003/7/22


Well i got the physical dates to read in order (Sunday - Saturday), but can't figure out the actual days to bump them by 1. Will continue to look, but if you have some clue, that would be greatly appreciated. Some of the comments are in french also.

Corey

55
zoullou
Re: Feature for a great calendar module ?
  • 2005/2/17 23:48

  • zoullou

  • Quite a regular

  • Posts: 250

  • Since: 2004/3/2 0


French week begin on monday and finish on sunday. You must modify the code to have sunday at the begin of week but i don't now how to make that

See you

56
koltz
Re: Feature for a great calendar module ?
  • 2005/2/18 11:07

  • koltz

  • Just popping in

  • Posts: 19

  • Since: 2003/7/22


You french always so difficult :), anyway got it working. Actually found a bug in your v1 code :P. To change it to meet where the calendar starts on a Sunday, in you INDEX.php and EXTCAL_MINICAL.php file, change the lines to read below:
// Counter for the day number of this month
    
$day_count 0;
    
    
// Counter for the number's cell in cellendar
    
$cell_count 1;


In Index.php, you had them equal 0 & 0, in extcal_minical you had them equal to 1 & 1. Not really a bug, but can be confusing.

Now really I think the last thing I have to do is when switching between calendars, it will reset to all, but I am on the right track and should have that done shortly :).

I guess one more thing that I would like, I have the upcoming events listed on the main page, am I able to some how get the daily_view.php listed there instead. It gives more upfront info like the Category and I really only need today's events listed.

Thanks for your help. I will post the code with the calendar view change with categories when I am done.

Corey

57
koltz
Re: Feature for a great calendar module ?
  • 2005/2/18 11:42

  • koltz

  • Just popping in

  • Posts: 19

  • Since: 2003/7/22


Ok, all you should have to do is replace the following code:

<tr class='prevcurentnext'>
      <
td colspan='2'><img src="images/arrow_left.gif" />&nbsp;<a href='index.php?month=<{$prevmonth.id}>&year=<{$prevmonth.year}>'><{$prevmonth.name}> <{$prevmonth.year}></a></td>
      <
td colspan='3' class='<{$classcurrentmonth}>'> <{$thismonth.name}> <{$thismonth.year}></td>
      <
td colspan='2'><a href='index.php?month=<{$nextmonth.id}>&year=<{$nextmonth.year}>'><{$nextmonth.name}> <{$nextmonth.year}></a>&nbsp;<img src="images/arrow_right.gif" /></td>
    </
tr>


with

<tr class='prevcurentnext'>
      <
td colspan='2'><img src="images/arrow_left.gif" />&nbsp;<a href='index.php?month=<{$prevmonth.id}>&year=<{$prevmonth.year}>&cat=<{$catselected}>'><{$prevmonth.name}> <{$prevmonth.year}></a></td>
      <
td colspan='3' class='<{$classcurrentmonth}>'> <{$thismonth.name}> <{$thismonth.year}></td>
      <
td colspan='2'><a href='index.php?month=<{$nextmonth.id}>&year=<{$nextmonth.year}>&cat=<{$catselected}>'><{$nextmonth.name}> <{$nextmonth.year}></a>&nbsp;<img src="images/arrow_right.gif" /></td>
    </
tr>


in the extcal_index.html file (don't forget to update the install when messing with the HTML files :).

Still could use the help on the daily_view.php on the main page though :)

Corey

58
Azrahell
Re: Feature for a great calendar module ?
  • 2005/3/8 16:54

  • Azrahell

  • Just popping in

  • Posts: 1

  • Since: 2005/1/3 2


Is there any recent Beta version of this module for download?

Thanks a lot!

59
stefan88
Re: Feature for a great calendar module ?
  • 2005/3/8 17:40

  • stefan88

  • Community Support Member

  • Posts: 1085

  • Since: 2004/9/20


Hi zoullou,

it looks great - specially the personal calendar feauture. Can't wait to test it :)

Hi Koltz:
Quote:
You french always so difficult :)

well, I'm not a french, but my week begins on monday too:) And I think it is the same in most of the world.

60
zoullou
Re: Feature for a great calendar module ?
  • 2005/3/11 9:35

  • zoullou

  • Quite a regular

  • Posts: 250

  • Since: 2004/3/2 0


Hi all,

The next beta version of eXtcal will be developpe for XOOPS V3. So I wait for the first Alpha of XOOPS 3 to start developement.

Cheers

Login

Who's Online

46 user(s) are online (38 user(s) are browsing Support Forums)


Members: 0


Guests: 46


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits