It's a bird, it's a plane...

Thursday December 20, 2007

It's SUPER CALENDAR!! You asked for it... The latest and greatest AJAX calendar is available now. There's lots of new features and a visual refresh included, so go get it now!

comments Comments

event name instead of 'event'

by Peter Verkooijen

I finally got it working, after replacing addresses in the code with full paths. I even managed to integrate it with an existing 'events' table

This is a great looking calendar!

But is there any way to replace the 'event' in the calendar with the title of the event? Or put the title of the event in the title=".." of the link, so you'll get at tooltip showing which event it is?

I've tried replacing 'event' in the code with ".$row['heading']." and several variations, but couldn't get it to work.


Does not run...

by Buzz

Hi, first of all, thank you for this nice looking calendar. I did a lot of searchign to find an calendar like yours. But unfortunately I did not get this script to run! Even when I tried to use full paths, it always refuses to connect to the database (YES! I checked my username, password, database name, table name and so on...)And this happens both in the super_calendar.php and super_calendar_admin.php

Does this script require a specific PHP Version (4? 5?)

What else can I re-check to get this calendar running?

I would appreciate any help with this script!

Buzz


Answers

by Marty

I'll try to answer both questions here...

Changing the event text to an event heading is doable, but will require some customization of the php file. I don't recommend it because the calendar cells are too small to hold the event heading, and it doesn't look very good imho.

You may try using a persistent db connection in the php file, but other than that, I really can't offer much more help. It should run fine on php4+, it's running on php5 on my site now.


event name instead of 'event'

by Peter Verkooijen

Thanks again Marty. I agree putting entire event headings into the calendar wouldn't look good.

I wanted to try to put the heading in title=".." in the link, but the calendar makes it easy enough just to click on the link, so it's not a priority.

But having a lot of 'event', 'event', 'event' in a month looks a bit silly. Not sure what would be a better solution. Color background?

I'll try to come up with something...


User Suggestion

by Marty

I received a user suggestion, and I though I would share it with everyone. Tim suggests an method of choosing dates in the 'jump box'. I haven't tested the code, but it does look ok.

In your super calendar, pass month & year to jump menu, then have it select the correct month/year in the dropdown, and make the year range dynamic +/- 2 years:

php:
onClick='showJump(this,\"$name\",".substr($year,-2,2).")'

js: showJump(obj,month,year){ ... var selected=''; for(var i=0;i<12;i++) { n = ((i+1)<10)? '0'+(i+1):i+1; if(months[i] == month){ selected = 'selected'; } else { selected = '' } output += '<option '+selected+' value="'+n+'">'+months[i]+' </option>\n'; } output += '</select> \n<select id="year">\n'; for(var i=year-2;i<=year+2;i++) { n = (i<10)? '0'+i:i; if(i == year){ selected = 'selected'; } else { selected = ''; } output += '<option '+selected+' value="20'+n+'">20'+n+' </option>\n'; }


thanks

by ada

Though I was having a few issues, this is a super calender I was getting a database error saying no database selected but I I declared the database and called it using mysql_select_db(($variablename,$db)and it works perfectly fine.


mods

by steve

I've successfully modded this calendar to list multiple events per day using this: <pre> while ($row = mysql_fetch_array($result)) { $p_name = $row[\"body\"]; $p_id = $row[\"heading\"]; $pt_list.= \"<a href=\\\"$p_id\\\" class=\\\"calLink\\\">$p_id</a><br />\"; } </pre> in place of this: <pre> $row = mysql_fetch_row($result); </pre>

I can list multiple events but the events from the previous day show up during that same month. For example, the first will have Event A and Event B both listed correctly. The 15th has Event C and Event D in the database, but shows Event A, Event B, Event C, and Event D on the calendar.

I feel like I am missing something really simple here. Any thoughts?


mods (2)

by steve

I messed up my code up above. Here's the correct code:

while ($row = mysql_fetch_array($result)) { $p_name = $row["body"]; $p_id = $row["heading"]; $pt_list.= "<a href=\"$p_id\" class=\"calLink\">$p_id</a><br />"; }


Arabic support

by Emad

Hi.. the calendar looks greattt, i liked it, it's very useful and nice. i want to ask if the calendar support the arabic text. becuase i want to add some events in arabic and thank you in advance..


Change startday

by Siddus

I am wondering if there is any way to get the calendar to start the week with monday instead of a sunday ?? that is the most common european way to have a calendar .. Siddus


Event Name instead of "Event" FIXED

by WebDude

Goto Pastebin http://pastebin.ca/1256919 Ive pasted the code there


drag n drop

by MikeBC

Am I supposed to be able to drag events from one day to another?


multiple calendars?

by Jenn

Is there a way to display multiple calendars? I've tried giving them their own file names, folders, etc.. I even tried giving each it's own DB but only one will display (although the spacing is there to allow them, the second and third just do not show up)


post comment Post a Comment
Name:
Heading:
Comments:
(BBCode OK)
Captcha Image:captcha
Characters: