I’ve run across a few problems installing Theo’s calendar hack. I thought I’d provide comments on what I’ve resolved, and ask some questions to get me through the steps I’ve found confusing.
I’ll relate this to Theo’s documentation, and the steps he outlines. Thus, the instructions he has are available along with the download of his hack. (The first hurdle is finding his hack, because I had to search through the forums for links.)
Step 1: install tables
I have no idea how to manage a MySQL database, and don’t find PHPMyAdmin (which I get with pMachine Hosting) all that friendly as an utter newbie.
Therefore, it took me a while and some Googling to figure out how to use Theo’s “tables.sql” file. Here’s how I did it:
Logged into pMachine Hosting control panel.
Connected to PHPMyAdmin, using the instance appropriate for my hosted site. I was on srv03, so I connected to PHPMyAdmin #3.
Clicked on “Databases” link under “MySQL” heading.
Clicked on the link for my database, which matched my pMachine Hosting account name.
Clicked on the “SQL” link.
Clicked on the “Choose file” button and selected the “tables.sql” file from Theo’s hack download.
Clicked “Go.”
According to PHPMyAdmin, the file was imported successfully.
Step 2: install calendar scripts
Here, I didn’t use the Webified FTP client from pMachine Hosting, because it didn’t immediately seem to support uploading an entire folder. So I just used my desktop FTP client to upload the “event_calendar” folder.
Step 3: change include files
I found this step pretty clear, and it doesn’t seem to matter where the include statements are inserted. I inserted them towards the end of each file, under the last include statement I found.
Step 4: update pMachine templates
In contrast, I do not find this step clear. I’m not sure where I should insert the text from “advanced search.txt” and “events.txt”. I think they go in “search.cp.php” and “calendar.cp.php” respectively. However, besides having exact filenames, I think it would be extremely helpful to me, as a beginner, to have instructions on where to insert. Do I paste the text at the end of the file, or somewhere inside the existing code? The calendar.cp.php file, in particular, seems quite complex, and harder to determine where to put the new text when I don’t know how everything fits together.
So I’m basically stuck here for the moment, and I don’t want to screw up my organization’s site.
