Firefox PHP

Module: Google Calendar

Posted by Joe Curia 
Re: Module: Google Calendar
January 12, 2009 09:45PM
Joe, I am wondering whether you can direct me to the file in which I could add a cookie if anybody selects the "View Topic" button on the bubble that shows up when clicking a calendar event. Thank you!
Re: Module: Google Calendar
January 12, 2009 11:07PM
That is a bit complex, but I think you could achieve this by changing the View Topic link from a simple url to a javascript function which first sets the cookie, then redirects to the topic. The HTML for the event bubble is found in the language file in the EventBubbleHTML variable. Your javascript function could be added to the page in the google_calendar/listings_bin/event_listings_bubble.js file which is added to all pages which would have an event bubble.

Hope that helps :)


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 13, 2009 02:02PM
I added target=\"_self\" and a class to "View Topic" in english.php:
Quote

"EventBubbleHTML" => "<b>%title%</b><br/>When: %start% - %end%<br/>%where%<div style=\\\"text-align: center; margin-left: -1px; margin-top: 2px; padding-top: 2px; border-top: 1px solid ".$PHORUM["DATA"]["border_color"].";\\\"><a href=\\\"%read_url%\\\" target=\"_self\" class=\"calendar-redirect\">View Topic</a></div>",

Then I changed a cookie which supposed to redirect the user to the specific topic. No success. Afterwards I removed the "View Topic"-link. No change.

Do you have any hints for me? Thank you!
Re: Module: Google Calendar
January 13, 2009 02:53PM
I have not done a whole lot of work with cookies, so I'm not sure what your goal is here. What is the purpose of leaving the cookie? What data will it hold?


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 13, 2009 03:17PM
At the moment I have the calendar "iframe" in a different DIV than the forum. So, if I click on "View Topic" Firefox will open a new window and is showing again the calendar and not the specific Event Topic. I tried to assign a simple cookie with a click event on "View Topic" in order to display the forum DIV instead of the calendar DIV. But I am afraid that I don't have access to the "View Topic" link in the calendar event bubble since it doesn't even disappear after removal from the language file.
Re: Module: Google Calendar
January 13, 2009 03:29PM
I'm sorry, this was a misunderstanding on my part. I though you were referring to the popup in the seven day event listing which can be added to the forum pages. You were actually referring to the popup created by Google when clicking on an event in the embedded calendar. That popup is populated from the EventDescription field in the language file.


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 14, 2009 01:38PM
Thank you. Unfortunately, any changes to the HTML/EventDescription in /lang/english.php won't reflect on the calendar bubbles (although I cleaned the cache). Do you have advice for me?
Re: Module: Google Calendar
January 14, 2009 01:43PM
Sorry, to be even clearer, the EventDescription field is sent to Google when the event is created and thus not updated until the event itself is edited. Hence, any changes to the language file will only show up in new events or if the post for a previous event is edited.


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 15, 2009 09:59AM
Good Job Joe,

i have some cuestion:

1. repetition of events?

2. When i post a event by google web, i can't see in forum, why?

3. I del the event's topic in forum and i view the event in Event List, why?

Thanks!
Re: Module: Google Calendar
January 15, 2009 10:25AM
4. When i post a topic with event, in event list and in gmail have +1 hour, why?

5. You use cache for this mod?

Thanks!
Sorry, only registered users may post in this forum.

Click here to login