[Snippet] zcalendar3
#41
Posted 05 August 2007 - 03:23 PM
#42
Posted 08 August 2007 - 08:59 AM
Obviously this can be changed drastically to suit the individual, but at least it might point users in the right direction in styling their own calendars. See in action :here.
Attached Files
#43
Posted 08 August 2007 - 12:54 PM
Cris D., on Aug 8 2007, 04:59 AM, said:
Obviously this can be changed drastically to suit the individual, but at least it might point users in the right direction in styling their own calendars. See in action :here.
This is a very nice suite of calendar snippets... the final results look and operate so well!
#44
Posted 08 August 2007 - 01:31 PM
What I would like to have is an agenda-kind of calendar. So I'm thinking I need different snippets for the administration (entering of data), a calendar month sheet-view, a calendar week-view and a day-view. Furthermore now when clicking on an event, I am returned to a page with a month-sheet with all the events underneath. But I already clicked an event, so I assume I would go to a page about that event. In a month-view calendar I would display each separate event when clicked in a popup windows I guess. Also I would like to link to an existing document. And if a pageid was given have clicking the event in the overview open the given pageid.
Also I would need the starttime en endtime as well, not only the dates, so that I can also enter meetings from 20:00 untill 22:30 for example.
But first I'll wait how this snippet evolves. I already like the looks of it very much!
Edited by vw53a, 08 August 2007 - 01:34 PM.
#45
Posted 08 August 2007 - 10:50 PM
In theory, everything you suggest is possible if you can tweak them.
Quote
Quote
Quote
Quote
Quote
Quote
This is the easiest to do. Simply add the extra fields to your database, add the extra fields to the admin forms in zcal and add the extra fields in your template and your away.
Edited by Cris D., 10 August 2007 - 09:37 PM.
#46
Posted 09 August 2007 - 01:40 AM
if($s>1){$output.="<a href=\"".$etomite->makeURL($page,'',[here]'?Ym='.$Ym.'[to here]')."#".$testday."\" title=\"Beginning: ".$active_titles."\" class='$event_class'>".$event."".$s."</a>\n";
}elseif($s==1){ $output.="<a href=\"".$etomite->makeURL($page,'',[here]'?Ym='.$Ym.'[to here]')."#".$testday."\" title=\"Beginning: ".$title_link."\" class='$event_class'>".$event."".$s."</a>\n";
}
This is required for the event anchor to work if NOT on the current month.
Edited by Cris D., 09 August 2007 - 01:41 AM.
#47
Posted 11 August 2007 - 08:05 PM
Please let me know if I've skipped any steps, I've tried to make this as complete as possible.
Instructions:
Download the calendar3.js file (don't forget to rename it from "calendar.php" to "calendar.js" and ftp it up to the manager/media/tigra_calendar/ folder.
Add the javaScript line between the <head></head> tags in your template:
<script src="manager/media/tigra_calendar/calendar3.js" type="text/javascript"></script>
Save your template. I'm using Mollio_typeA template to start with this web site.
Create a new snippet called "authenticate_visitor" and download the snippet from the old snippet library. Save snippet.
Download latest zcalendar3 snippet "calendar3.php" - save to your desktop. Open this and copy and paste to a new snippet in your Manager and call it - zcalendar - save file. Within this file you must enter the parameters for you database login:
//Set the database connection details to link to the table: the same as the config.inc.php file.
$host = $host="localhost"; //hostname where the MySQL database is located
$user = $user="xxxxxxxxx"; //MySQL username for the external MySQL database
$pass = $pass="xxxxxxxxx"; //MySQL password for the external MySQL database
$dbase = $dbase="xxxxxxxxx"; //MySQL database name to which you wish to connect
There is some code before the database configuration to cut and paste into a new chunk within this snippet. Make a new chunk and call it: "zcalTemplate" and save the file.
Create a document to use for the calendar snippet. Make sure the "cache" is not checked.
In the body of this document, put this code:
[!zcalendar!] [[authenticate_visitor]] - save document.
In the Manager configuration - turn on "use access permissions" - YES
Under "Users" created a "Group" called "admin" - then in the "Manager Permissions", I checked the permission box called "admin" and saved the file. The manager will log you out and then you log back in.
Now open up a new browser page and go to the new page you created. You will get the login form.
You will see a visitor login and you can sign in and then start adding events via the chunk you created called "zcalTemplate". Once you are finished, there is a "Logout" button at the bottom and you will see the page that your visitors will see. I'm still working on design, but I think this may be a very workable solution for an event calendar.
Attached Files
Edited by katherholt, 04 December 2007 - 02:21 PM.
#48
Posted 11 August 2007 - 09:17 PM
1) the javascript file is the one required to call the pop-up calendar and has little to do with your java navigation. The script file you added was:
Quote
<script type="text/javascript" src="templates/mollio/js/common.js"></script>
Quote
2)
Quote
Quote
Next, I had a play with visitor permissions and the authenticate_visitor snippet. This snippes seems to work regardless of any permissions being set in your configuration, therefore admin users do not need to change any of this. It is only if users with limited access require access to the event admin form that you will need to turn on permissions.
Finally, I noticed that your calendar event in september, when clicked on goes back to august. This means that you do not have the latest version with the '?Ym='.$Ym.'' in the $etomite->makeURL('','','') as per the post above.
Once you have this set up, the other two are a breeze! Enjoy.
Edited by Cris D., 11 August 2007 - 09:34 PM.
#49
Posted 11 August 2007 - 11:24 PM
This was my script in the template:
<script src="manager/media/tigra_calendar/calendar3.js" type="text/javascript"></script>
Next, I'd like to try the mini-calendar on the home page that links to the calendar page or event detail, but I need to master this calendar first. I really appreciate this script because I've been looking at a lot of 3rd party scripts and plugins that are just way too many choices to view a simple event calendar.
Karen
#50
Posted 17 August 2007 - 10:45 PM
#51
Posted 17 August 2007 - 11:11 PM
Chris, if you are interested in helping make this script adapt to the above needs, I can chip in some money to help and/or let you use the site I'm working on below for development of the calendar.
Here is what I started:
http://www.roswellrotary.com/calendar.html - with one event in September. I like the list below and will continue to add to it for better display.
Karen
#52
Posted 17 August 2007 - 11:12 PM
The main problem will be how much room the code takes up and how it is displayed in the event box. I have been thinking of ways to do it but I can't visuaize a clean solution that it intuitive.
I was thinking display events:2, if spanned event also exists on this date, then events3?? or will people think that this means 3 events start today? Then a spanned event and no event, output EVENT? or ONGOING? What about if there is a spanned event and an END, list SPANNED only? or END and SPANNED? (How much room will this take in the cell, will it wreak havoc on div height width designs? Or leave off the spanned events for ending dates, therefore not consistent.
If you have any thoughts, let me know, I'd be happy to do it if I know what to do!
Edited by Cris D., 20 August 2007 - 11:49 AM.
#53
Posted 17 August 2007 - 11:18 PM
Quote
The zcalendar does allow all html in the description box, allows images links via the pic (internal or a full img src address for external links) box, It does allow multiple dates and spanned ocurrences are OK now, for multiple recurrences, is something I could look at if you can give me a more specific example...
#54
Posted 17 August 2007 - 11:22 PM
Here are some examples:
http://www.villaricatourism.com/events.html
http://www.serviceteamtraining.com/upcomin...s-schedule.html
http://www.flowerybranchga.org/special-events.html
#55
Posted 17 August 2007 - 11:26 PM
#56
Posted 17 August 2007 - 11:33 PM
to the snippet call eg
[!zcalendar?hcalendar=1!]
After looking at your examples, this can be achieved quite easily with zcalendar.
The two main things you will require is 1) custom templates to display the info as required.
2) Change the dates dislayed from this month only to..yo the start of the current month (or today) to the end of the year.
Change the line
$where="`sdate`>='".$SQLStartMonth."' AND `sdate`<='".$SQLEndMonth."' OR `fdate`>='".$SQLStartMonth."' AND `fdate`<= '".$SQLEndMonth."'";to
$where="`sdate`>='".$SQLStartMonth."' AND `sdate`<='".$SQLEndYear."' OR `fdate`>='".$SQLStartMonth."' AND `fdate`<= '".$SQLEndYear."'";
Then add near the top of the snippet with the other date definitionst
$SQLEndYear=$year."-12-31";//set to the end of the year
Now all events from the beginning of the month to the end of the year will be displayed. Let me know if you need help to get month name headers in there.
Quote
This can be done with a hybrid of zcal by limiting the results from above (from today to the end of the year) and returning only the next 10. What that looks like will be determined again by your custom template. It is definitely possible.
Change this line:
$cal_data=$etomite->getIntTableRows($fields="*",$from=$zcalendar,$where,$sort="sdate", $dir="ASC",$limit=999,$push=true,$addPrefix=true);to
$cal_data=$etomite->getIntTableRows($fields="*",$from=$zcalendar,$where,$sort="sdate", $dir="ASC",$limit,$push=true,$addPrefix=true);
And add in the snippet call ?limit=10 where 10 is the maximum number of results you want to show.
Katherholt, if you want some personalized service to get this snippet up and running for your requirements, PM me and I'd be happy to work with you.
Edited by Cris D., 18 August 2007 - 05:35 AM.
#57
Posted 18 August 2007 - 03:01 PM
http://www.roswellrotary.com/calendar.html today.
Karen
#58
Posted 19 August 2007 - 04:41 AM
#59
Posted 19 August 2007 - 05:51 AM
Of course, everything is possible, however, adding a feature like this will require a LOT more code, changing forms integrating new logic to the display additional table fields etc. I realise that this would be a good feature but it is more than I am willing to do at the moment as it would require a complete overhaul to integrate it.
I was wondering how far I would go with support for this snippet, I guess that was the line
I'm still happy to assist in making small changes to suit personal circumstances, installation assistance, fixing bugs...
#60
Posted 19 August 2007 - 10:57 AM
Cris D., on Aug 19 2007, 01:51 AM, said:
Of course, everything is possible, however, adding a feature like this will require a LOT more code, changing forms integrating new logic to the display additional table fields etc. I realise that this would be a good feature but it is more than I am willing to do at the moment as it would require a complete overhaul to integrate it.
I was wondering how far I would go with support for this snippet, I guess that was the line
I'm still happy to assist in making small changes to suit personal circumstances, installation assistance, fixing bugs...
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users













