Installation Guide
Please read through this guide carefully, if you experience any issues please contact us via our Theme Forest profile, we'll try and get back to you the same day.
Requirements
- 1 MySQL Database
- PHP 4.x or later
Step 1
Check the downloaded package.
Here at Jigowatt, we all use a selection of Macintosh computers and laptops, this script was developed and packaged using one, occasionally Windows doesn't like this so please check a selection of the files to make sure they've got to you in one piece. If not, please find out what to do here.
Backup Backup Backup! Keep a fresh copy of the files somewhere safe before you edit them.
Step 2
Create your MySQL Database, you will need the server address (usually localhost) the database name, database user and password.
File: calendar.sql - aprox line 35
Replace 'admin' and '21232f297a57a5a743894a0e4a801fc3' with your prefered login details. The password is in MD5 format, do NOT enter a plain-text password, it will not work. If you need to encrypt your password please click here
Save and insert calendar.sql into your Database via your prefered editor (phpMyAdmin etc.)
INSERT INTO `calendar_users` (`user_id`, `username`, `password`) VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3');
File: admin/dbconn.php - aprox line 2
Replace these details with those of your database and save.
$db = dbconn('localhost','database_name','database_user','database_pass');
Step 3 (Read Note)
File: calendar.php
Note: Steps 3, 4 & 5 are for including the calendar.php file into an existing PHP page/site.
Because you will have already created your header (containing title & head tags) we can remove the included header.php & footer.php files and integrate important components needed by the calendar.php file into your existing page. Remove aprox line 6: include('header.php'); Remove aprox line 95: include(admin/footer.php');
Step 4 (Read Note)
File: header.php - aprox line 8
Insert the following code into your existing page head (i.e. your existing file similar to header.php, head.php).
It is important you insert this between your < head > tags otherwise the JS files will not be called correctly.
Step 5 (Read Note)
File: your_file.php** - line n/a
In the PHP file you want to include the calendar on, simply include the calendar.php page code inside it. You may or may not need the php tags around it, depending on your page.
Please take note and be careful where you place the Javascript call after the calendar script. (Otherwise the lightbox day view window will not function)
$type = CAL_GREGORIAN;
$month = $_GET['month'];
if(!$_GET['month']) { $month = date('n'); } // Month ID, 1 through to 12.
through to..
} // EOF for $i
echo "< /div >";
?>
Step 6 (Optional)
File: stylesheet.css - aprox line 26
Included with the Calendar are different colours for the User Interface. If you would like to change the colour of each day change 'url(assets/day.png)' to contain the image you require.
Example Code: .cal_day { background: url(assets/day_green.png) top no-repeat; }
Step 7
Save and upload the files to your server. You must upload them in the file structure provided.