Page 1 of 1
[solved] Small Calendar
Posted: Fri Nov 09, 2007 10:47 pm
by neel99
1. I am trying to fit calender in the third colum but its overflowing, I tried to change the en_US.php, but I can not make any changes in it because of file permission. ( I read on the message board on the same topic)
2. I want the dates in small calender linked to the Event page. If one clicks on the small calender, the landing page should be the events on that date. Right now it takes to event page with previous and next button opens up small calender in the content area.
Here is my link to the site.
http://www.joyzac.com
Thanks a lot. Nice work with the CMS.
Re: Small Calendar
Posted: Sun Nov 11, 2007 5:58 pm
by Dr.CSS
Unless you can get it to read an en_US file that has single letter abbreviations you may need to make that column larger/wider...
Re: Small Calendar
Posted: Mon Nov 12, 2007 2:17 pm
by lollipop27
Why dont you try to give the th a fixed width and say overflow hidden ... so that you cut of the end?
have you tried this?
Re: Small Calendar
Posted: Mon Nov 12, 2007 4:36 pm
by kermit
this should get around the file permissions issue where the server owns the files and you cannot edit them as your own user:
download the module's tar.gz file and extract to your local pc OR download the language file that needs editing via FTP.
edit the Language file's abbreviations as needed (two letter abbreviations should be short enough: e.g. Su Mo Tu We Th Fr Sa)
in cmsms 1.2 file manager; go to 'settings' and enable 'advanced' mode; then navigate in file manager to the directory where the language file is at on the server.
using file manager, delete the language file and upload your edited one in its place.
Re: Small Calendar
Posted: Mon Nov 12, 2007 8:20 pm
by neel99
Thanks for help. Now the edited the en_US.php. Did I do anything wrong, because it still not showing the single alphabet for Day...
$lang['cal_sunday'] = 'Sunday';
$lang['cal_monday'] = 'Monday';
$lang['cal_tuesday'] = 'Tuesday';
$lang['cal_wednesday'] = 'Wednesday';
$lang['cal_thursday'] = 'Thursday';
$lang['cal_friday'] = 'Friday';
$lang['cal_saturday'] = 'Saturday';
$lang['cal_sun'] = 'S';
$lang['cal_mon'] = 'M';
$lang['cal_tue'] = 'T';
$lang['cal_wed'] = 'W';
$lang['cal_thu'] = 'T';
$lang['cal_fri'] = 'F';
$lang['cal_sun'] = 'S';
Re: Small Calendar
Posted: Tue Nov 13, 2007 9:36 am
by kermit
clear the cmsms cache, perhaps?
Re: Small Calendar
Posted: Tue Nov 13, 2007 3:25 pm
by neel99
Can you please help with this. Like you said I made the changes in (marked red) en_US.php file. But still its not not showing up in small calender.
Mark has used the small calender in one of his sites. Can you please have a look at the file below. I cleared the cache also.
# Language: en_US
$lang['eventdesc-EventAdded'] = 'Called after adding a calendar event';
$lang['eventdesc-EventEdited'] = 'Called after editing an existing calendar event';
$lang['eventdesc-EventDeleted'] = 'Called after an event has been deleted';
$lang['eventdesc-CategoryAdded'] = 'Called after a category is created';
$lang['eventdesc-CategoryEdited'] = 'Called after a category is edited';
$lang['eventdesc-CategoryDeleted'] = 'Called after a category is deleted';
$lang['eventhelp-EventAdded'] = '
Sent when a calendar event is added.
Parameters
\"event_title\" - Event Title
\"event_summary\" - Summary Text
\"event_details\" - Detailed Description
\"event_date_start\" - The event start date/time
\"event_date_end\" - The event end date/time
\"event_created_by\" - The userid of the author
\"event_id\" - The event id
';
$lang['eventhelp-EventEdited'] = '
Sent when a calendar event is edited.
Parameters
\"event_title\" - Event Title
\"event_summary\" - Summary Text
\"event_details\" - Detailed Description
\"event_date_start\" - The event start date/time
\"event_date_end\" - The event end date/time
\"event_created_by\" - The userid of the author
\"event_id\" - The event id
';
$lang['eventhelp-EventDeleted'] = '
Sent when a calendar event is deleted.
Parameters
\"event_id\" - The event id
';
$lang['eventhelp-CategoryAdded'] = '
Sent when a calendar category is added.
Parameters
\"category_id\" - The category id
';
$lang['eventhelp-CategoryEdited'] = '
Sent when a calendar category is edited.
Parameters
\"category_id\" - The category id
\"category_name\" - The category name
\"category_order\" - The category sort order
';
$lang['eventhelp-CategoryDeleted'] = '
Sent when a calendar category is deleted.
Parameters
\"category_id\" - The category id
\"category_name\" - The category name
\"category_order\" - The category sort order
';
$lang['msg_eventadded'] = 'Event Added';
$lang['error_noupload'] = 'ERROR: No uploaded file found';
$lang['error_invalidfilename'] = 'ERROR: The file uploaded cannot be accepted';
$lang['error_problemwithupload'] = 'ERROR: A problem occurred trying to upload the file';
$lang['error_filecopyfailed'] = 'ERROR: A Problem occurred when copying the file to its final destination';
$lang['error_fileexists'] = 'ERROR: A file by that name already exists';
$lang['error_csvfilenotfound'] = 'ERROR: Could not find the CSV File';
$lang['error_cantopenfile'] = 'ERROR: Cannot open file';
$lang['cal_calendar'] = 'Calendar';
$lang['cal_description'] = 'Add, edit and remove events';
$lang['cal_addevent'] = 'Add Event';
$lang['cal_import_events'] = 'Import Events';
$lang['cal_events'] = 'Events';
$lang['cal_categories'] = 'Categories';
$lang['cal_calendar_template'] = 'Calendar Template';
$lang['cal_list_template'] = 'List Template';
$lang['cal_upcominglist_template'] = 'Upcoming Template';
$lang['cal_event_template'] = 'Event Template';
$lang['cal_settings'] = 'Settings';
$lang['cal_prev'] = '« Prev';
$lang['cal_next'] = 'Next »';
$lang['cal_categories_updated'] = 'Categories Updated';
$lang['cal_settings_updated'] = 'Settings Updated';
$lang['cal_add_event'] = 'Add Event';
$lang['cal_edit'] = 'Edit';
$lang['cal_delete'] = 'Delete';
$lang['cal_areyousure'] = 'Are you sure you want to delete';
$lang['cal_update_template'] = 'Update Template';
$lang['cal_sunday'] = 'Sunday';
$lang['cal_monday'] = 'Monday';
$lang['cal_tuesday'] = 'Tuesday';
$lang['cal_wednesday'] = 'Wednesday';
$lang['cal_thursday'] = 'Thursday';
$lang['cal_friday'] = 'Friday';
$lang['cal_saturday'] = 'Saturday';
[glow=red,2,300]$lang['cal_sun'] = 'S';
$lang['cal_mon'] = 'M';
$lang['cal_tues'] = 'T';
$lang['cal_wed'] = 'W';
$lang['cal_thurs'] = 'T';
$lang['cal_fri'] = 'F';
$lang['cal_sat'] = 'S';
[/glow]
$lang['cal_january'] = 'January';
$lang['cal_february'] = 'February';
$lang['cal_march'] = 'March';
$lang['cal_april'] = 'April';
$lang['cal_may'] = 'May';
$lang['cal_june'] = 'June';
$lang['cal_july'] = 'July';
$lang['cal_august'] = 'August';
$lang['cal_september'] = 'September';
$lang['cal_october'] = 'October';
$lang['cal_november'] = 'November';
$lang['cal_december'] = 'December';
$lang['cal_add'] = 'Add';
$lang['cal_update'] = 'Update';
$lang['cal_event'] = 'Event';
$lang['cal_date'] = 'Date';
$lang['cal_summary'] = 'Summary';
$lang['cal_details'] = 'Details';
$lang['cal_more'] = 'more >>';
$lang['cal_return'] = 'Return';
$lang['cal_to'] = 'to';
$lang['cal_past_events'] = 'Past Events';
$lang['cal_upcoming_events'] = 'Upcoming Events';
$lang['cal_any_category'] = 'Any Category';
$lang['cal_show_only_events_in'] = 'Show Only Events In';
$lang['cal_filter_by'] = 'Filter By';
$lang['cal_go'] = 'Go';
$lang['cal_title'] = 'Title';
$lang['cal_fromdate'] = 'From Date';
$lang['cal_todate'] = 'To Date';
$lang['cal_summary'] = 'Summary';
$lang['cal_description'] = 'Description';
$lang['cal_update_categories'] = 'Update Categories';
$lang['cal_language'] = 'Language';
$lang['cal_updatesettings'] = 'Update Settings';
$lang['cal_use_twelve_hour_clock'] = 'Use twelve hour clock on hour drop-downs?';
$lang['cal_default_category'] = 'Default Category';
$lang['cal_update_fields'] = 'Update Fields';
$lang['force_category']='Force at least one category';
$lang['showpastyears']='How many years in the past is allowed';
$lang['showfutureyears']='How many year into the future is allowed';
$lang['hidesummary']='Should the summary field be hidden';
$lang['hidecontent']='Should the content field be hidden';
$lang['category_reminder']='Please check one or more categories for this event';
$lang["module_example_stylesheet"]="Calendar CSS example";
$lang['error_permission'] = 'You need the appropriate permission (%s) to access this functionality';
$lang['install_postmessage'] = 'Make sure to set the "Modify Calendar" permission on users who will be administering calendar events.';
$lang["deletetagged"]="Delete tagged events";
$lang["confirmdeletetagged"]="Are you sure these events should be deleted?";
$lang["taggeddeleted"]="Tagged events was deleted";
$lang['templates'] = 'Templates';
$lang['template_help'] = 'Template Help';
$lang['file_templates'] = 'File Templates';
$lang['addtemplate'] = 'Add Template';
$lang['template'] = 'Template';
$lang['templatenametext'] = 'Template Name';
$lang['edittemplate'] = 'Edit Template';
$lang['deletetemplate'] = 'Delete Template';
$lang['newtemplate'] = 'New Template Name';
$lang['templatenameexists'] = 'Error: A template with that name already exists. Please choose a different name.';
$lang['templateimported'] = 'The template was sucessfully imported into the database and is now installed for use.';
$lang['view_default_stylesheet'] = 'View Default Stylesheet';
$lang['filename'] = 'Filename';
$lang['importtemplate'] = 'Import Template';
$lang['template_deleted'] = 'The template was successfully deleted from the database.';
$lang["updatetemplatesuccess"]="The template was updated successfully";
$lang["updatetemplatefailure"]="An error occurred updating the template";
$lang["settingssaved"]="Settings was saved successfully";
$lang["categorydeleted"]="Category deleted";
$lang["categoryupdated"]="Category updated";
$lang["categoryadded"]="Category added";
$lang["eventdeleted"]="The event was deleted";
$lang["eventupdated"]="The event was updated";
$lang['default_page_error'] = 'Error: You must set a default page in order to use Calendar with pretty URLs turned on. Please go to the Calendar settings tab and choose one.';
$lang["time_at"]="at";
$lang['type']='Type';
$lang["name"]="Name";
$lang["order"]="Order";
$lang['fieldadded'] = 'Field Successfully Added';
$lang['fielddeleted'] = 'Field Deleted';
$lang['fields'] = 'Custom Fields';
$lang['textfield'] = 'Text Field';
$lang['uploadfield'] = 'File upload field';
$lang["description"]="Calendar is a module for displaying events on your page. When the
module is installed, a Calendar admin page is added to the content menu
that will allow you to manage your events.";
$lang['cal_changelog'] = '
Version: 0.7.10 - calguy1000
Added support for file uploads in custom fields
Added the ability to supply \'next\' as the event_id in the event display, to display the next upcoming event.
Version: 0.7.9
Added custom fields that can be associated with each event.
Version: 0.7.8
Fixed a detailpage/returnlink bug... again...
Version: 0.7.7
Added a default category
Added an option to allow an event to be forced a member of at least 1 category
Added options of how many years in the past and future you should be able to select
Progress towards more uptodate API-usage, using templates, actions etc.
Numerous bugfixes
Version: 0.7.6
Added column style output for upcominglist and pastlist
Moved example stylesheet to the stylesheetlist
Added tagging of events and deletions of tagged ones
Reworked for use of external actionfiles
Improved tab-functionaliy and actionmessages
Version: 0.7.5
Fixed a lot of openbasedir-issues
Version: 0.7.4
Fixed hardcoded length of title input field
Fixed some missing localization
Removed support for pretty urls (it was not working, as some parameters were missing, and putting them in would have made the urls unpretty anyways
Updated permissions model. Now need \'Modify Templates\' permission to modify the templates, and \'Modify Site Preferences\' permission to adjust the preferences.
Version: 0.7.3
Added Minimum CMS Version
Added the pastlist option
Version: 0.7.2
CMS 1.0 compatiblity
Split out into numerous files for better memory efficiency
Introduced references where necessary to improve memory efficiency
Added functions to allow for talking with this module via other modules
Added events
Improved security and reduced memory footprint
Version: 0.7 stable
Fixed problem with broken month list on 31st of each month;
Fixed problem with Calendar showing in the menu for unauthorized admin users.
Version: 0.7beta3
Added the yearlist view option to list all events in the year. Acts like the list option.
Version: 0.7beta2
Added the reverse parameter to show events in reverse chronological order.
Version: 0.7beta1
Added navigation in the list view, fixed problem with events not showing up in the list view.
Version: 0.7alpha2
Bug fix: include last day of the month!
Bug fix: template use of $table_id should have {} around it.
Include icon for content page.
Whitespace changes - trailing spaces and tabs/space tidy up.
Make default templates XHTML 1.0 Transitional compliant.
Version: 0.7alpha1
Complete rewrite to fit into 0.10.x better.
Support language for day and month names
Use smarty templates for controlling the display.
Rewrite the SQL used to select the events to hopefully be more maintainable.
Note that the language files are not fully updated for this version!
Version: 0.6.1
More fixes for multi-day event on calendar. Added new parameter "time_format" so we can make the display of a single day event with a start and stop time look better. Change de_DE\'s "to" to "bis" as per Mordran\'s post on the boards.
Version: 0.6
Fix event display so that if the end date is not set, we don\'t display "to".
Filter by category when displaying an upcominglist.
Fix End date setting that was off by one.
Fix odd behaviour of year when transitioning from Jan to Dec or Dec to Jan in the calendar view.
Support mutli-day events in the calendar view.
Version: 0.5
Fix the drop down list for end date year. Fix DE translation of "Return" (thanks Piratos!).
Fix spacing around "to" (thanks Greg!). Add Danish and Dutch translations courtesy of board members esmann and dont.
Version: 0.4
Support for language translations. Default to a NULL end date. Improved the help information.
Display upcoming events in the correct order! Other minor bug fixes.
Version: 0.3
Initial support for "From" and "To" dates for events. Ability to filter admin list of events by category.
Version: 0.2
New display option: "upcominglist". Also many bugfixes!
Version: 0.1
Initial release.
';
$lang['defaultcalendarpage'] = 'Default page that contains Calendar. This page must contain a Smarty tag that calls Calendar. Required if you use the pretty URLs.';
$lang['uploaddirectory'] = 'Directory wherer file uploads should be placed';
$lang['uploadfiletypes'] = 'Allowed file types';
$lang['uploadunique'] = 'Ensure unique filesnames';
$lang['help_template'] = '
Print Author Name:
Author: {$event.authorname}
';
$lang['cal_help'] = What does this do?
Re: Small Calendar
Posted: Wed Nov 14, 2007 1:57 am
by kermit
what language is selected in the calendar module? (content -> calendar -> settings)
i dunno what's up, but it defaulted to french for me, and en_US doesn't even show in the pull-down.
try selecting en_GB in the module; and then edit THAT language file inside the lang/ext directory.
SOLVED Re: Small Calendar
Posted: Wed Nov 14, 2007 8:03 pm
by neel99
You are right. I was editing US_eng, and calender language was Br_eng. Problem Solved. Thanks for help everyone.
Re: Small Calendar
Posted: Thu Nov 15, 2007 1:00 pm
by streever
Great neel

!!!
do you mind editing your FIRST post on this to say Solved? *otherwise I can't tell when browsing forum, looking for threads to help in*