<div dir="ltr"><div class="gmail_extra">I don't use this recipe, but I'll give some generic ideas/hints. See below</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 11, 2015 at 6:43 PM, erik burggraaf <span dir="ltr"><<a href="mailto:burggraaferik@gmail.com" target="_blank">burggraaferik@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote type="cite" class="">In config.php on the line above the include for my calendar I have the following include:<br>include_once("$FarmD/cookbook/icalexport.php");<br><br>I have uploaded the script to my cookbook directory.<br>Before uploading the script to the cookbook directory, I edited the following lines of the script as follows.<br><br>SDV($ICalCalendarGroup, 'Calendar');<br>SDV($ICalCalendarTitle, 'NFB Nevada');<br>SDV($ICalTimeZone, 'Europe/Berlin');<br>SDV($ICalFileName, $ICalCalendarGroup);<br>For reference, these are lines 89 to 92 of the script.<br></blockquote></blockquote><div><br></div><div>Normally the way to handle this is to use lines like this in config.php:</div><div><br></div><div>$ICalCalendarGroup = 'Calendar';</div><div>$ICalCalendarTitle = 'NFB Nevada';</div><div>...</div><div><br></div><div>The SDV() function stands for "Set Default Value" and so if there is already a value in that variable (from your config.php) it will not be changed. This is something used throughout pmwiki so worthwhile to get a handle on.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote type="cite" class=""><br>The script seems to be installed correctly.  I get no spurious errors, but I'm not seeing a reference to it anywhere and I have the following questions.<br></blockquote></blockquote><div><br></div><div>Most recipes in pmwiki don't show anything in your site until you edit a page to put the appropriate markup or whatever. Not sure if that's the case with this one or not. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote type="cite" class=""><br>First,  how do I set the time zone?  I need gmt-8.  I see the line with the varyable but I don't know what argument  is expected.<br></blockquote></blockquote><div>This is from the comments at the top of the script:</div><div><br></div><div>===(snip)===</div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">## $ICalTimeZone - the time zone the events belog to - default:"Europe/Berlin"</pre></div><div>===(snip)===</div><div><br></div><div>So you can see the format it is expecting and you can override it in your config.php as described above. A *very* brief google of "timezone ical tzid" reveals some helpful links and a possible indication that perhaps there are some problems with standardization of timezone in ical. You'll have to check that out. In any event, you will be using a city specifier rather than something like "GMT-8" or etc.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote type="cite" class="">Second, I see from notes in the script that my ics file is ment to be stored in <br><a href="http://yourserver/index.php/uploads/Calendar/Calendar.ics" target="_blank">http://yourserver/index.php/uploads/Calendar/Calendar.ics</a><br>Now I have two issues with this.  First, I don't really want a folder on my server called index.php.  I see that I can change the folder path using something called the $edit function, but I don't know enough about php at this point to attempt it.  Second, regardless of the folder used, I'll have to manually create it myself and make it writeable will I not?  The instructions say nothing about setting up the path to the ics file.<br></blockquote></blockquote><div>This is not talking about a directory in this physical location, but rather a possible description based on a particular configuration of CleanUrls of where to find the uploads directory and specifically using uploads by group and the group is "Calendar". You should carefully read and understand these pages to get an idea of these concepts:</div><div><br></div><div><a href="http://www.pmwiki.org/wiki/Cookbook/CleanUrls">http://www.pmwiki.org/wiki/Cookbook/CleanUrls</a><br></div><div><a href="http://www.pmwiki.org/wiki/PmWiki/Uploads">http://www.pmwiki.org/wiki/PmWiki/Uploads</a><br></div><div><a href="http://www.pmwiki.org/wiki/PmWiki/UploadsAdmin">http://www.pmwiki.org/wiki/PmWiki/UploadsAdmin</a><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote type="cite" class="">Third, what triggers the script to generate the file?  I'm assuming it hasn't tried yet, since the path isn't available on the server and I haven't gotten an error from the script.  I dnow how to link to the file once it's generated, but how can I make sure the script is constantly updating and maintaining the file?</blockquote></blockquote></div>Go look in the uploads directory (typically right off of the pmwiki directory) and see what is there. I haven't read enough on this specific recipe to even know what it's trying to do, but it sounds like it ends up with a file in the uploads directory so I would look there. It may be that you need to set up your uploads to be by-group before it will work, but that's just a guess.</div><div class="gmail_extra"><br></div><div class="gmail_extra">-Peter</div><div class="gmail_extra"><br></div></div>