Firefox PHP

Module: Google Calendar

Posted by Joe Curia 
Re: Module: Google Calendar
December 11, 2008 06:57PM
sadly it still doesn't work.

When I click on authenticate, select the email to allow access to the domain and continue, it just takes me back to the module and asks me to authenticate.

If I try to create a category (ignoring the fact that I haven't authenticated yet) I get the following.

Warning: Invalid argument supplied for foreach() in /home/.XXXXXXX/XXX/iloveqatar.net/forum/mods/google_calendar/settings_bin/settings_post.php on line 150

Settings Updated with Errors
Test: <HTML> <HEAD> <TITLE>Token invalid - Invalid AuthSub token.</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1>Token invalid - Invalid AuthSub token.</H1> <H2>Error 401</H2> </BODY> </HTML>

And nothing has happened.
Re: Module: Google Calendar
December 12, 2008 04:55PM
amnesia,

That is the expected behavior for adding categories without authentication. I will look into disabling that function until authentication has been made.

Could you check a couple things for me:
  1. Can you check if Google has actually authenticated?
    1. Go to https://www.google.com/accounts/ManageAccount
    2. Under Personal Settings->Security, click on "Change authorized websites"
    3. Confirm that your website is listed for Google Calendar with a "Revoke Access" link after it.
  2. Can you clear out all of this module's settings by following the directions in my earlier post.
    1. Only after you have followed those instructions, please confirm that you can save settings for this module by choosing "Show a listing of the current week's events" and submitting this change.
    2. If successful, you should see a number of new options appear on the settings page.
    3. Now retry the authentication process.

Let me know one way or the other. If need be, I may need to upload a debugging version of this module for you.


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
December 20, 2008 12:17PM
Hi Joe, I was looking at the event logs and noticed that this event keeps occurring, The Calendar seems to work fine so i can just ignore it.


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:306

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
December 20, 2008 01:54PM
Thanks for pointing out that bug. As you noted, it is not critical and only occurs when there are no events in the current listing. I have added a fix to the current release. You can redownload it, but only need to reupload these two files:
google_calendar/listings_bin/
  • next_seven_event_listings_start_output.php
  • weekly_event_listings_start_output.php


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
December 20, 2008 04:26PM
OK, I uploaded those two files . thanks.

Its working fine again great job, Joe



Edited 1 time(s). Last edit at 12/23/2008 03:32PM by jotech.
Re: Module: Google Calendar
January 11, 2009 01:17PM
Hi Joe Curia!

I have a problem with the authentication function. I successfully registered at Google and set up the calender.

After I cklicked on "Authenticate now" in the mod settings page, I am rewarded to the Google page. I click on "Grant Access" and then the strange thing happens. ^^

I am rewarded to the settings page again, but with an error message:
Quote

Fatal error: Call to undefined function curl_init() in /srv/www/httpd/phost/e/de/pytalhost/eldis-falda/web/forum/mods/google_calendar/settings_bin/gdata_functions.php on line 5

I have only rudimental knowledge of PHP, so I don't know what to do now.
I hope you can help me!
Re: Module: Google Calendar
January 11, 2009 01:46PM
Your PHP installation does not have the curl extension enabled. Curl is a library that can be used for doing web requests from PHP scripts. You will have to ask your hosting provider if they can enable the curl extension for your PHP setup.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Google Calendar
January 11, 2009 02:12PM
Thank you very much for your help!

At least I know why it doesn't work.
And I also know that I won't be able to use the Mod, because my provider doesn't support this extension.

Hopefully there will be another calendar mod, which is completely integrated in Phorum. I didn't like the idea to post events to Google. I don't want to post anything to Google. ^^
Re: Module: Google Calendar
January 11, 2009 04:02PM
Askerion,

There were many requests for a Google calendar integration, but I also would prefer it built into Phorum. I built this mod to cut my teeth on calendar work as it were. One of my long range plans is to use this module as a base for a completely integrated Phorum calendar. However, this won't be happening soon, probably not in the first half of this year.

Unfortunately, due to the nature of the Google interaction, the curl extension is necessary, otherwise I would have tried to make a work-around for you. As it was, I took the long and difficult route of making this module compatible with PHP 4 rather than simply using Google's full api which would have required PHP 5.

Sorry for the bad news, but I hope there was some ray of hope for you in this post :)


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
January 11, 2009 09:43PM
Oh yes, there was. :D

Thank you for your explanation, I can understand that you did it that way.
I have a lot of time, so I will wait until you present your first fullyintegrated calendar. ^^
So just take your time, I'll be sure it will be a great mod. :)
Sorry, only registered users may post in this forum.

Click here to login