Firefox PHP

Module: Google Calendar

Posted by Joe Curia 
Re: Module: Google Calendar
November 26, 2008 06:50PM
At the start of the module code in google_calendar/settings.php, you will find these lines commented out:
Language: PHP
/* For Dev Only */ //unset($PHORUM["phorum_mod_google_calendar"]); //phorum_db_update_settings(array("phorum_mod_google_calendar"=>$PHORUM["phorum_mod_google_calendar"])); //unset ($PHORUM["phorum_mod_google_calendar_cache"]); //phorum_db_update_settings(array("phorum_mod_google_calendar_cache"=>$PHORUM["phorum_mod_google_calendar_cache"])); /* End Dev Only */

Simply remove the "//" comment characters from the beginning of each four lines of code, browse to the module's settings page, then recomment those lines. Now when you go to the settings page you can start from scratch.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Google Calendar
November 26, 2008 08:03PM
Thanks, it seemed to have cleared some settings but I am still getting some data I can not clear. Which groups are alowed to post for instance, I can not change those now. Also i dont see any events unless I open the full calendar view.

I must have messed something else up as events created in the forum dont go to the calendar only events that I create at the google website are seen

Cheer

Cave and Crag
Re: Module: Google Calendar
November 26, 2008 09:58PM
Please describe exactly what you mean by not being able to change which groups can post events. The code should have completely removed any settings this module uses as those are the only two arrays in which settings are stored (except the event data itself which is stored with the messages.)

I am assuming you first chose "Selected groups and . . ." under Who can post events. You then hit submit and had a list of possible groups. None should have been selected the first time. You then selected one (or more with Ctrl-Click) and hit submit again to allow members or the selected groups to post events. You should also be able to change these groups in the same manner.

As far as events not posting to google:
  • Did you properly authenticate to google, with a google account that has permission to post events?
  • Did you create at least one color-coding?
  • Are you getting the form to post events along with your messages?
    • If so, do you see that event data added to the message body even if it doesn't show up on the google calendar?
  • Is the Event Logging module enabled? Are you seeing any errors or confirmations in that module?


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Google Calendar
November 26, 2008 11:43PM
Thanks for that I have sorted the cleared the "Groups" issue now. I tried to create another event and enabled the event log. I include the latest. Do you want me to send all the others?

Yes the event data is recorded with the message body, it is not making any entry onto my calendar so I guess its something wrong with the permissions??

Thnaks for the help.

User info:

User ID = 1, username = John [ view user's profile ]
User IP address = 82.36.156.5

Additional details:

Message:

PHP notice: Undefined variable: js_event_data

PHP notice generated at /home/jotech/public_html/forum/mods/google_calendar/listings_bin/next_seven_event_listings_start_output.php:303

Back trace:

Function include_once called at
{path to Phorum}/mods/google_calendar/google_calendar.php:413
----
Function phorum_mod_google_calendar_start_output called
----
Function call_user_func called at
{path to Phorum}/common.php:1557
----
Function phorum_hook called at
{path to Phorum}/common.php:1275
----
Function phorum_output called at
{path to Phorum}/include/index_new.php:216
----
Function include_once called at
{path to Phorum}/index.php:84
----

Request info:

HTTP_HOST = www.jotech.co.uk
HTTP_REFERER = [www.jotech.co.uk]
REQUEST_URI = /forum/index.php
Re: Module: Google Calendar
November 27, 2008 12:53AM
Unfortunately I am going to need more than just the one log message. Ideally you would give me every log message with the details, but please copy them into a single txt file and upload that file.

Just so we're clear, did you read through the Installation and Usage Guide and follow all of the steps listed there? It's possible something was left out, but I want to make sure you have that as a basis for going forward.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Google Calendar
November 27, 2008 12:41PM
Thanks Joe, I seem to be getting it sorted now most features are working except the show the next seven days listings.

Cheers
Re: Module: Google Calendar
November 27, 2008 01:47PM
Glad to hear everything else is clearing up. The event listing issue is related to a bug of mine. Apparently the php function for converting a time string to a timestamp only takes US English, so you got to help test the module code by the simple fact that you live in England :) Thanks for catching the bug.

Please redownload the RC_1. You will only need to reupload the two ...event_listings_start_output.php files in the listings_bin folder.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Google Calendar
November 27, 2008 02:51PM
That has worked fine, great Job Joe.
Re: Module: Google Calendar
December 03, 2008 06:05AM
sadly though, for me, it doesn't work properly.

Although authenticating, it takes me back to the module section where it asks me to authenticate.

When I try to add more categories,

there's no delete per box
if I created more than one category and tried to change any one of their colours it only changes the last one.

If I try to save, it simply doesn't. (As if I've started from square one).

I've copied the module over twice. I've tried IE7, Opera and FF.

www.iloveqatar.net/forum
Re: Module: Google Calendar
December 03, 2008 02:45PM
Thanks for this module, it's working relatively well. I'm just waiting for the private calendar function to be implemented :)

I found out a small bug though that can be seen in the screen shot. The event popup pops up in the wrong place making clicking it impossible. I tried with emerald and lightweight themes. I can send you a link in PM if you want to see it in action.

Also attached is finnish lang-file (UTF-8)

EDIT: language file now included in the module. Thank you for your work. - Joe Curia

---
-=[ Panu ]=-



Edited 1 time(s). Last edit at 12/23/2008 02:22PM by Joe Curia.


Sorry, only registered users may post in this forum.

Click here to login