Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)"Add to Yahoo Calendar" PLUS "YahooMaps/Mapquest"
Pages: [1]   Go Down
Print
Author Topic: "Add to Yahoo Calendar" PLUS "YahooMaps/Mapquest"  (Read 2428 times)
0 Members and 1 Guest are viewing this topic.
raffi
Guest
« on: November 27, 2002, 10:52:00 AM »

Alright, here are two things on my wishlist which I do not see anyone having brought up.

1) Every Yahoo! user account comes with a calendar for that person, which you can easily set to allow the public to view.  When you view someones calendar, you see a tiny link at the bottom which says something like "add to my calendar" which takes that event and sticks it on your Yahoo! Calendar as well.  The code it uses to add it is all in the link itself, and it seems pretty basic.  This would be quite nice indeed.  Via Yahoo! folks could even syncronize those events with their Outlook or Palm software.

2) If the event add has the address much like Yahoo Calendar does, then it would be nice if that was automatically used to link to a map of the location either on Yahoo Maps or Mapquest.

This would be sweet as options in CalendarScript itself, or as plug ins...

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: November 27, 2002, 12:30:00 PM »

** it would be nice if that was automatically used to link to a map of the location either on Yahoo Maps or Mapquest. **

How to do that has been discussed in the previous forum message "Yahoo Maps or Mapquest Mod?".

Dan O.

------------------

Logged
raffi
Guest
« Reply #2 on: November 28, 2002, 12:35:00 AM »

Thanks!  I went through all the posts and completely missed it...
Logged
raffi
Guest
« Reply #3 on: November 29, 2002, 12:47:00 AM »

I would still be interested in an automatic "Add to my calendar" link showing up...
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #4 on: November 29, 2002, 01:41:00 PM »

** I would still be interested in an automatic "Add to my calendar" link showing up... **

You mean "Add to my Yahoo! calendar"?

I don't use Yahoo! calendar. If you do, examine the such a link there to see what is required and add the necessary code to your calendar's template. I would suspect however that those links would include the user's Yahoo! ID (or other such information) that wouldn't be available to you on your non-Yahoo! calendar.

Dan O.

------------------

Logged
Raffi Kojian
Guest
« Reply #5 on: March 18, 2003, 09:08:00 AM »

>>** I would still be interested in an automatic "Add to my >>calendar" link showing up... **

>You mean "Add to my Yahoo! calendar"?

Yes :-)

>I don't use Yahoo! calendar. If you do, examine the such a >link there to see what is required and add the necessary >code to your calendar's template. I would suspect however

If I knew how to do that, I would not have asked here.  Plus, I think it would be quite handy to many calendar users, and therefore would be nice if it was included in the base script.

>that those links would include the user's Yahoo! ID (or >other such information) that wouldn't be available to you >on your non-Yahoo! calendar.

Nope, you don't need any of those things.

Logged
raffi
Guest
« Reply #6 on: March 18, 2003, 10:05:00 AM »

Here is an example of the "Add to my Yahoo! calendar" link URL that you would need to generate.  If anybody clicks on it and is logged into a yahoo! account this would immediately add the event to their calendar.
http://calendar.yahoo.com/?v=60&ST=20030318T130000&TITLE=this+is+the+title+text&DUR=0200&VIEW=d&DESC=here+is+the+description+of+the+event+text&in_loc=this+is+the+location+text

Where:
ST=20030318 = date
T130000 = time
TITLE=this+is+the+title+text = title
DUR=0200 = duration
VIEW=d - detailed view
DESC=here+is+the+description+of+the+event+text = description
in_loc=this+is+the+location+text = location text

the only one I am not sure of is the v=60 at the beginning, but I could probably work that out.

Because the description of the event can be quite long however, I was thinking a more simple solution would be for it simply to add the event date, time and title, with the only description being a link to the event on your calendar...  that would prevent a very messy link and doubled page size that could occur otherwise.  Plus it brings them back to your site :-)

As I said, the coding for this is beyond me, although I am looking at the Yahoo! map coding on another thread and wondering if I should take a stab at it or if I will just regret it too much.  The '+' between all text alone scares me! :-)

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #7 on: March 18, 2003, 01:10:00 PM »

** The '+' between all text alone scares me! **

Perl has a very simple methods available to substitute characters.
This code should replace all spaces in the $title variable with +
symbols and make a new variable to hold the changed value.

$newtitle = $title;
$newtitle =~ s/ +/\+/;

But you may want to URL encode any values that will be passed
as part of a URL using something like this. It will ensure that characters
like " ' & are properly encoded.

$newtitle = &URLEncode($title);

Used in a template, a new variable need not be used.

<%= &HTML::encodeHTML($title)%>

Which would print out the URL encoded form of the value held
in the $title variable.

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: