How to integrate the calendar in

Similar documents
Configuration Setting

SeaSonde Combine Web Server

Host at 2freehosting.Com

bispark software, Dharwad

Chapter 10: MySQL & PHP. PHP and MySQL CIS 86 Mission College

KEIL software. Index of contents UPDATE. 1. Important information 1.1. What has changed?

Delegating Access & Managing Another Person s Mail/Calendar with Outlook. Information Technology

SFSC Website Cheat Sheet

PHPRad. PHPRad At a Glance. This tutorial will show you basic functionalities in PHPRad and

All form templates are listed in a left-side menu in 'Forms' section, where you can also create a new form with a help of the blue button. (8.1.

PHP Development - Introduction

PHP & My SQL Duration-4-6 Months

Beginning Web Administrator Training

PHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008.

Nextiva Drive The Setup Process Mobility & Storage Option

MySQL: Access Via PHP

SCOUT ASSOCIATION OF HONG KONG SERVICE USER TRAINING 2013

Hello everyone! Page 1. Your folder should look like this. To start with Run your XAMPP app and start your Apache and MySQL.

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. WordPress

Cacti monitoring tool

SUD Residential Reporting Web Sites Provider User Instructions

Create-A-Page Design Documentation

Migration Tool. User Guide. SHOPIFY to MAGENTO. Copyright 2014 LitExtension.com. All Rights Reserved.

The connection has timed out

InterCall Unified Communications User Manual. Draft Outlook Integration edition. This document was updated on January 28, 2009.

3.3 Audio Import Manager (AIM)

MAGENTO Migration Tools

varchar(30), Primary Key (name))engine=innodb; bigint not null auto_increment, Primary Key (accountid))engine=innodb;

SKILLBUILDERS CALENDAR

DocShuttle Dictator. by Bytescribe, Inc.

Running A MyDNS Name Server On OpenBSD (MySQL/PHP + MyDNS + MyDNSConfig)

CSC 215 PROJECT 2 DR. GODFREY C. MUGANDA

ITS331 IT Laboratory I: (Laboratory #11) Session Handling

MANUAL ACCORDION TOOL

GpsGate BuddyTracker. User Guide. Version: Rev: A

CIW 1D CIW JavaScript Specialist.

User Guide. BlackBerry Workspaces for Windows. Version 5.5

User Guide. Version 8.0

DreamTeam Document Manager User Guide

Lecture 7: Dates/Times & Sessions. CS 383 Web Development II Wednesday, February 14, 2018

Using Your New Webmail

SSH Device Manager user guide.

Chapters 10 & 11 PHP AND MYSQL

Let Robots Manage Your Schema Without Killing All Humans. Jenni

4.6.5 Data Sync User Manual.

IEMS 5722 Mobile Network Programming and Distributed Server Architecture Semester 2

Dynamic Select Option Menu Using Ajax And PHP. Wednesday, Mar 11, 2015

ENABLING WEBCHAT HOSTED USER GUIDE

CompleteView Video Proxy User Manual. CompleteView Version 4.6.1

Mount Saint Mary College, Newburgh, NY Internet Programming III - CIT310

Quick Start Manual for Mechanical TA

extension for Magento2 User Guide

Skype For Business(Windows) Getting Started

Customize the Navigation Pane

Testing Documentation

Logging into the system

Perch Documentation. U of M - Department of Computer Science. Written as a COMP 3040 Assignment by Cameron McKay, Marko Kalic, Riley Draward

Website Backend Manual

Getting Started with Cisco WebEx Meeting Applications

Comp 519: Web Programming Autumn 2015

Document Container Guide

Yii User Identity Error Code 100

Get in Touch Module 1 - Core PHP XHTML

Database connection 1

CSE 154 LECTURE 21: COOKIES

CSE 154 LECTURE 21: COOKIES

Moodle Plugin for CopySafe Web -- Installation for Moodle 3.5 and later --

OneLogin Integration User Guide

Static Webpage Development

Configuring Anonymous Access to Analysis Files in TIBCO Spotfire 7.5

Description of access to the VMU intranet system

Outlook 2003, Level 2 Page 1

D2L Start Up! I. To log in... 2 II. Your Profile I. Main Navigation Bar... 3 II. News... 4 III. Role Switch... 4 IV. Calendar...

Advanced Web Tutorial 10

AgriOcean DSpace, a customized version of DSpace. Technical background

PST for Outlook Admin Guide

USER MANUAL. SuitePort - SuiteCRM Customer Portal for Joomla TABLE OF CONTENTS. Version: 1.1.0

if (WP_DEBUG) E_ALL 'on'; }

Virto SharePoint Forms Designer for Office 365. Installation and User Guide

jfqbi= = eqji=qççäâáí= = = eqji=^ééäáå~íáçå=réäç~çéê== rëéê=dìáçé= oéäé~ëé=oko=

Web Push Notification

Security Guide. Configuration of Permissions

Eurojust Webmail 2013

Lecture 7: Web hacking 3, SQL injection, Xpath injection, Server side template injection, File inclusion

Requirements Document

4. Fill in your information. Choose an address for your PBworks wiki. Be sure to choose For Education as your workspace type.

Somatis Website Maintenance User's Manual

OUTLOOK WEB APP (OWA): MAIL

Sign-up Forms Builder for Magento 2.x. User Guide

Fixed Header edream Market

1. Go to the UTAS web site: 2. Hover the mouse over Study to open the drop down menu and click on the Webmail link.

Form Customizer v3.0 Support Frequently Asked Questions (FAQs)

Conversion Popups. manual

An Overview of Webmail

Electronic Committees (ecommittees) Frequently Asked Questions v1.0

Print Station. Point-and-Click Printing WHITE PAPER

System Admin Manual <SNAPVALET> <Team No- 03>

Authentication CHAPTER 17

Expense Management Asset Management

GroupWise 7 WebAccess Introduction

Transcription:

How to integrate the calendar in PHPmaker generated code. The calendar(php/mysql solution) is based on fullcalendar (jquery plugin by Adam Shaw) To integrate the calendar there are some modifications necessary: Make changes to phpmaker-generated code Make changes to the calendar Make changes to Fullcalendar.js Set custom configs The directory in which the calendar is located must be placed next to the directory that PHPmaker has generated. In this case that was: /fullcalendar /kaltest2 (the PHPmaker generated code) (tha calendar made by Paul Wolbers) A wish of The title of every event starts with the user_id. (example: 11-) If the event is made by the administrator then the title starts with A-

Make changes to phpmaker-generated code 1 [required] In header.php : Delete or put comments (<!-- -->) around the next 3 lines. These lines are for the old (DHTML) calendar. <! <script type="text/javascript" src="calendar/calendar.js"></script> <script type="text/javascript" src="calendar/lang/calendar-en.js"></script> <script type="text/javascript" src="calendar/calendar-setup.js"></script> --> 2 In the new page blankpage.php on the following lines: [required] Around line 249 : (before include_once "footer.php" ) Insert this code: include_once "../kaltest2/index.php"; Change kaltest2 to the correct name of the folder!! the name blankpage should be replaced with another name, otherwise the page will be overwritten if you add another blankpage [optional] Around line 12 : (behind <?php include_once "userfn9.php"?><?php ) Insert this code: if(redirect_to_login_when_not_loggedin &&!isset($_session['fullcalendar_status_userid'])) { header('location: login.php'); exit; What does that do? REDIRECT_TO_LOGIN_WHEN_NOT_LOGGEDIN can be true or false and is set in kaltest2/configs/config.php. When set to true, the calendar is not visible when someone is not logged in and tries to go to the blankpage in the browser. Instead the visitor sees the loginpage. When set to false, the calendar is visible and contains public items. Inserting this code is optional. It is meant to redirect the user to the loginpage, when the user is trying to access the calendar (in this case blankpage.php ) directly in the browser. When you want to show a public calendar when no user is logged in, it s not necessary to add these lines, but I recommend to insert it and then set REDIRECT_TO_LOGIN_WHEN_NOT_LOGGEDIN to false in kaltest2/configs/config.php.

Make changes to the calendar In this case: kaltest2 1 [required] Kaltest2/include/default.inc.php on line 7, set the correct path to the configs directory: if(file_exists('/home/.../public_html/kaltest2/configs/config.php')) { require_once '/home/.../public_html/kaltest2/configs/config.php'; else if(file_exists('../configs/config.php')) { require_once '../configs/config.php'; Originally this was not necessary to change, but somehow the config.php can t be found otherwise. (I will do some testing on my server and when I find a solution I will let you know) 2 [optional] In Kaltest2/script/script.js set the option showagendabutton to true or false to show or hide the agendabutton in the calendar. Find the next piece of code and add showagendabutton: true, $('#calendar').fullcalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaweek,agendaday', showagendabutton: true,

Make changes to Fullcalendar.js [optional if you re going to use the agenda view] In fullcalendar.js in line 744: $('.fc-content-paul').load(' YOUR_SITE /kaltest2/index.php?action=agenda', function() {

Set custom configs These config-options can be found in kaltest2/configs/config.php 1 Setting correct paths and constants * FULLCALENDAR INCLUDES if($_server["http_host"] == 'localhost' OR $_SERVER["HTTP_HOST"] == '127.0.0.1') { // for local testing on your computer define('fullcal_dir','/home/.../public_html/paulwolbers/kaltest2'); define('fullcal_url','http://localhost/paulwolbers/kaltest2'); define('external_url',fullcal_url.'/external'); else{ // PATH DEFINES HERE define('fullcal_dir','/home/.../public_html/paulwolbers/kaltest2'); define('fullcal_url','your_site/kaltest2'); define('external_url',fullcal_url.'/external'); define('config_dir',fullcal_dir.'/configs'); define('external_dir',fullcal_dir.'/external'); define('include_dir', FULLCAL_DIR.'/include'); define('classes_dir', FULLCAL_DIR.'/model'); * LANGUAGE define('language', 'DE'); // supported NL, EN, FR, DE, not complete * CALENDAR define('use_calendar_color_for_event', true); define('redirect_to_login_when_not_loggedin', true); * AGENDAVIEW define('limit_amount_agenda_days', 15); * DRAG AND DROP define('show_loginname_in_calendar', true); define('loginname_label', 'Logged in: '); define('remove_after_drop', true); // amount of days that are shown in // the agendaview // above drag and drop part // show or hide the checkbox * DRAG AND DROP TEXTS define('drag_and_drop_text', 'Drag and drop from this list'); define('remove_after_drop_text', 'remove after drop'); * EDIT POPUP CONFIG define('show_date_selection', true); define('show_year', true); define('start_year', '-2');

define('end_year', '+2'); define('simple_time_select', false); define('minhour', 5); define('maxhour', 20); define('minute_interval', 15); // simple smarty selectbox or jquery // timepicker // timepicker: interval in minutes define('show_color_selection', true); 2 Set database config in kaltest2/configs/config.php if($_server["http_host"] == 'localhost') { // for local testing on your computer $str_hostname = 'localhost'; $str_username = 'root'; $str_password = ''; $str_database = 'DBNAME'; else { // online settings here $str_hostname = 'localhost'; $str_username = 'USERNAME'; $str_password = 'PASSWORD'; $str_database = 'DBNAME'; Events table: CREATE TABLE IF NOT EXISTS `events` ( `event_id` int(11) NOT NULL auto_increment, `title` varchar(255) default NULL, `date_start` date default NULL, `time_start` time default NULL, `date_end` date default NULL, `time_end` time default NULL, `allday` tinyint(1) NOT NULL default '0', `calendartype` varchar(155) NOT NULL, `user_id` int(11) NOT NULL, `color` varchar(10) NOT NULL, PRIMARY KEY (`event_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;