Pages

Wednesday, December 29, 2010

wdcalendar

Yes wdCalendar is same as famous as and as same as google calendar developed using js and php with advanced facilities like drag event and multi-color events.
Handling or merging wdCalendar with your project is so easy......
just create a jqcalendar table inside your database.

and the structure of the table is in setup.sql

Step 1.
Edit datafeed.php in php folder inside wdCalendar folder.

dbconfig.php


class DBConnection{
function getConnection(){

$db = "Your_DB_Name_here";
$server = "Server";//eg : localhost
$username = "db_username";//eg: root
$password ="db_password";//eg: console

mysql_connect($server,$username,$password) or  die("Could not connect: " . mysql_error());
mysql_select_db($db) or   die("Could not select database: " . mysql_error());
}
}
?>
give your dbname,server,user,password thats it you have linked the db with wdCalendar.

Step 2.
now last step to do is.
there is a file called datafeed.db.php and datafeed.php
rename
1. datafeed.db.php to datafeed.php
2. datafeed.php to any name because datafeed is just a sample file.

Now run your calendar, if you are getting any error then redo from the beginning.
if there is no error, it means you have successfully linked wdCalendar with your project.

Sometimes you may have to use wdCalendar without using default jqcalendar table or using existing table(your own) to add events.........
Posting soon on this......

2 comments:

  1. How to add a field to events. I updated database to include a Resource, how to add that to the event i.e. what php files are updated and how?

    ReplyDelete