badwolfff
asked on
How do I add two icons one to share my event date on iCal (.ics) and one for google cal on my events page?
This is the site where I want to add the icons (per event thumbnail):
https://www.missionfamily.org/index.php?_route_=events
This is what I want the icons to do (for each even the below content should be for that event, obviously):
icon1: https://www.associazioneculturaleinasia.it/wp-admin/admin-ajax.php?action=eventon_ics_download&event_id=2784&sunix=1442077200&eunix=1442097000
icon 2: http://www.google.com/calendar/event?action=TEMPLATE&text=Giornata+inAsia+2015%2F16&dates=20150912T150000Z/20150912T203000Z&details=Giornata+inAsia+2015%2F16&location=Via+Brolo+Musella+27%2C+Ferrazze%2C+San+Martino+B.A.+%E2%80%93+Verona
I am looking for a php or a jquery solution. I would like the icons to appear when you hover over each even thumbnail (where you will see other icons present).
Any ideas?
thanks
https://www.missionfamily.org/index.php?_route_=events
This is what I want the icons to do (for each even the below content should be for that event, obviously):
icon1: https://www.associazioneculturaleinasia.it/wp-admin/admin-ajax.php?action=eventon_ics_download&event_id=2784&sunix=1442077200&eunix=1442097000
icon 2: http://www.google.com/calendar/event?action=TEMPLATE&text=Giornata+inAsia+2015%2F16&dates=20150912T150000Z/20150912T203000Z&details=Giornata+inAsia+2015%2F16&location=Via+Brolo+Musella+27%2C+Ferrazze%2C+San+Martino+B.A.+%E2%80%93+Verona
I am looking for a php or a jquery solution. I would like the icons to appear when you hover over each even thumbnail (where you will see other icons present).
Any ideas?
thanks
ASKER
Really I would be happy just to know how to generate the ics file and the google calendar share url in real time. Rest I can do myself
I am not sure I understand the question - can you elaborate?
What icons do you want to show?
What on the page link you provided am I looking for in terms of the hover active items?
What icons do you want to show?
What on the page link you provided am I looking for in terms of the hover active items?
ASKER
Each thumbnail on the page indicated above is an even with a date (or dates if it lasts more than one day), an even name, an event organizer and an even place. I would like to auto-generate for each two thumbnails - thumbnail 1: click to save the event to you ical, thumbnail 2: click to add to your google cal
:D
:D
Ok but how do you want to do that?
Do you want to include icons next to the map and social media icons?
If so what icons do you want to put in there?
If this is what you want to do then it is a case of adding the links to the compare-list div and then styling it / changing the icons as needed
Can't test but that would be the general idea.
Do you want to include icons next to the map and social media icons?
If so what icons do you want to put in there?
If this is what you want to do then it is a case of adding the links to the compare-list div and then styling it / changing the icons as needed
<div class="compare-list mar-top-30">
<a href="https://www.missionfamily.org/mese-famiglie-rimini"> </a>
<a style="color:#66B3F2;" href="https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Piazza+Cavour%2C+Rimini%2C+Italia&ie=UTF8&hq=&hnear=Piazza+Cavour%2C+Piazza+Cavour%2C+47921+Rimini+RN%2C+Italy&t=m&z=14&iwloc=A&output=embed" data-original-title="Vedi Ubicazione" data-toggle="tooltip" class="locationmap cboxElement"><i class="fa fa-map-marker"></i></a>
<a data-original-title="condividi con social network" data-toggle="tooltip"><i class="fa fa-share-alt"></i></a>
<a href="https://www.associazioneculturaleinasia.it/wp-admin/admin-ajax.php?action=eventon_ics_download&event_id=2784&sunix=1442077200&eunix=1442097000" target="_blank"><i class="fa fa-calendar"></i></a>
<a href="http://www.google.com/calendar/event?action=TEMPLATE&text=Giornata+inAsia+2015%2F16&dates=20150912T150000Z/20150912T203000Z&details=Giornata+inAsia+2015%2F16&location=Via+Brolo+Musella+27%2C+Ferrazze%2C+San+Martino+B.A.+%E2%80%93+Verona" target="_blank"><i class="fa fa-google"></i></a>
</div>
Can't test but that would be the general idea.
ASKER
Hi,
I know how to generate the html code via php to add two more icons inside the hover overlay. What I don't know is how to generate the ics compatible file (for iOS) and google cal compatible link per event which would allow users to save each event to calendar.
I know how to generate the html code via php to add two more icons inside the hover overlay. What I don't know is how to generate the ics compatible file (for iOS) and google cal compatible link per event which would allow users to save each event to calendar.
ASKER
Here is an example:
http://www.old-find.com/
as you can see in the screenshot if you scroll down you will find a section called Events Calendar, click ont the first even and towards the end you will see two items:
Calendar GoogleCal
I would like to achieve what those buttons do.
What I need to know is how to reorganize my existing data in the right format to make the output from those links compatible with ical and google cal.
http://www.old-find.com/
as you can see in the screenshot if you scroll down you will find a section called Events Calendar, click ont the first even and towards the end you will see two items:
Calendar GoogleCal
I would like to achieve what those buttons do.
What I need to know is how to reorganize my existing data in the right format to make the output from those links compatible with ical and google cal.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The reason for moving the question is that PHP is a server-side technology. It has no knowledge of anything like a mouse movement unless the client browser makes a request to the server. Details here:
https://www.experts-exchange.com/articles/11271/Understanding-Client-Server-Protocols-and-Web-Applications.html