>> AROUNDMe

  Copyright (c) 2003-2006 Barnraiser. All rights reserved.

>> This file lists database, template and language file changes and will allow you to upgrade rather 
   than reinstall.
   
   You should aim to replace all files except the config directory and any language and template 
   files you may have modified. For those follow the instructions below.
   
   Most installations do not customise either their templates or their language files. If you have not 
   then simply backup and copy all the files in this installation into your required destination and 
   run any database queries listed below. If you have customised your templates and language files 
   then read the template and language file sections below and replace or modify where stated.
   
   ** ALWAYS PERFORM A FULL FILE AND DATABASE BACKUP BEFORE UPGRADING **
   
   
   
>> from version 0.6.7 to 0.6.8
   TEMPLATE -----------------------------------------------------------------
   sch_edit.tpl.php - search for "poll" and replace with "schedule".
   spl_view.tpl.php - replace line 335
   sn_profile.tpl.php - replace lines 31 to 46 (denied display content).
   sch_edit.tpl.php - remove all intances of - align :"Tl",
   quz_edit.tpl.php - add
   quz_view.tpl.php - add
   default.tpl.php - insert lines 339-348 (quiz menu item)
   mag_view.tpl.php - insert lines 323-357 (quiz)
   register.tpl.php - remove lines 89-166 (preview)
   register.tpl.php - remove line 234 (preview button)
   sch_view.tpl.php - replace lines 1251, 1258, 1298 and 1305 (my_schedule)
   sch_view.tpl.php - insert lines 54,55 (allocation edit link)
   sn_list.tpl.php - replace line 31 with lines 31 to 39
   sn_profile.tpl.php - remove lines 570 to 574 (poll link)
   grp_membership.tpl.php - replace line 280 (edit_profile)
   blg_edit.tpl.php - replace lines 137, 157, 170
   frm_edit.tpl.php - replace lines 385, 406, 419
   lib_edit.tpl.php - replace lines 174, 194, 207
   pol_edit.tpl.php - replace lines 329, 349, 352
   sch_edit.tpl.php - replace lines 658, 678, 691
   search.tpl.php - replace line 126 (group link)
   my_profile.tpl.php - replace
   my_view.tpl.php - replace
   default.tpl.php - remove lines 451 to 460 (my publishing link)
   node_rsp.tpl.php - replace (quiz added)
   grp_rsp.tpl.php - replace (quiz added)
   
   
   
   LANGUAGE -----------------------------------------------------------------
   spl_view.lang.php - insert $lang['sub_enter'] = "enter";
   grp_rsp.lang.php - insert $lang['hdr_schedule'] = "schedule items";
   grp_rsp.lang.php - delete $lang['hdr_activities']
   grp_rsp.lang.php - delete $lang['hdr_tasks']
   nlt_edit.lang.php - insert $lang['txt_total'] = "total";
   node_group.lang.php - $lang['err_no_groups'] = "Sorry, you have no groups to list.";
   quz_edit.lang.php - add
   quz_view.lang.php - add
   arrays/arr_error.lang.php - insert lines 79,80 (array items 53 and 54)
   common.lang.php - insert line 52 (menu_quizzes)
   arrays/arr_acs.lang.php - insert lines 50, 71, 87, 98 (quiz)
   mag_view.lang.php - insert $lang['hdr_quizzes'] = "quizzes";
   mag_view.lang.php - insert $lang['err_no_quizzes'] = "Sorry, there are no quizzes available.";
   arrays/arr_user.lang.php - insert line 47 (quiz)
   arrays/arr_group.lang.php - insert lines 36 and 47 (quiz)
   sch_view.lang.php - insert $lang['href_edit_allocation'] = "edit allocation";
   sch_edit.lang.php - insert $lang['href_view_schedule'] = "view schedule item";
   sch_edit.lang.php - insert $lang['err_schedule_item_edit'] = "sorry, you are not allowed to edit this item.";
   sn_list.lang.php - insert $lang['hdr_directory'] = "directory";
   grp_membership - insert $lang['txt_delete_my_membership'] = "Do you want to delete your membership of this group? You can press 'delete' below to do so. You will be prompted to confirm your request.";
   grp_membership - replace $lang['txt_delete_membership'] = "Do you want to delete this members membership from this group? You can press 'delete' below to do so. You will be prompted to confirm your request.";
   nlt_digest_send - insert $lang['hdr_rsp_quiz'] = "Latest quizzes";
   nlt_digest_send - insert $lang['hdr_bookmark_quiz'] = "Your bookmarked quizzes";
   nlt_digest_send - insert $lang['hdr_pub_quiz'] = "Your published quizzes";
   my_view.lang.php - replace
   node_rsp.lang.php - insert $lang['hdr_quizzes'] = "quizzes";
   grp_rsp.lang.php - insert $lang['hdr_quizzes'] = "quizzes";
   grp_view.lang.php - insert $lang['hdr_quizzes'] = "quizzes";
   grp_common.lang.php - insert $lang['err_no_quizzes'] = "Sorry, no group quizzes available.";
   common.lang.php - $lang['txt_group'] = "group";
   
   CONFIG -----------------------------------------------------------------
   config_acs.inc.php - insert lines 45, 56, 81 and 92 (quiz)
   config_aroundme.inc.php - insert lines 203 (quiz) and 228,237,245 (quiz stats)
   
   
   DATABASE -----------------------------------------------------------------
   # Table structure for table `am_quiz`
	CREATE TABLE `am_quiz` (
	  `quiz_id` int(11) NOT NULL auto_increment,
	  `quiz_title` varchar(100) default NULL,
	  `quiz_body_intro` text,
	  `quiz_body_exit_pass` text,
	  `quiz_body_exit_fail` text,
	  `quiz_pass_rate` int(3) default NULL,
	  `group_id` int(11) default NULL,
	  `quiz_synopsis` varchar(255) default NULL,
	  `quiz_start_datetime` datetime default NULL,
	  `quiz_end_datetime` datetime default NULL,
	  `user_id` int(11) default NULL,
	  `quiz_create_datetime` datetime default NULL,
	  `quiz_edit_datetime` datetime default NULL,
	  `quiz_retake_daycount` int(3) default NULL,
	  `quiz_display_answers` int(1) default NULL,
	  `quiz_display_results` int(1) default NULL,
	  `quiz_allow_comments` int(1) default NULL,
	  `file_id` int(11) default NULL,
	  PRIMARY KEY  (`quiz_id`)
	) TYPE=InnoDB CHARACTER SET utf8;
	
	
	# Table structure for table `am_quiz_option`
	CREATE TABLE `am_quiz_option` (
	  `option_id` int(11) NOT NULL auto_increment,
	  `question_id` int(11) default NULL,
	  `option_body` varchar(255) default NULL,
	  PRIMARY KEY  (`option_id`)
	) TYPE=InnoDB CHARACTER SET utf8;
	
	
	# Table structure for table `am_quiz_question`
	CREATE TABLE `am_quiz_question` (
	  `question_id` int(11) NOT NULL auto_increment,
	  `quiz_id` int(11) default NULL,
	  `question_body` varchar(255) default NULL,
	  `question_answer` text,
	  `question_order` char(3) default NULL,
	  `question_correct_option_id` varchar(11) default NULL,
	  PRIMARY KEY  (`question_id`)
	) TYPE=InnoDB CHARACTER SET utf8;
	
	
	# Table structure for table `am_quiz_result`
	CREATE TABLE `am_quiz_result` (
	  `result_id` int(11) NOT NULL auto_increment,
	  `user_id` int(11) default NULL,
	  `quiz_id` int(11) default NULL,
	  `result_create_datetime` datetime default NULL,
	  `result_mark` int(1) default NULL,
	  PRIMARY KEY  (`result_id`)
	) TYPE=InnoDB CHARACTER SET utf8;


----------------------- END OF FILE ---------------------------

