From my search of these forums, I conclude I'm the only one here who wants to get rid of the ical integration in the event module.
My users have enough trouble figuring out how to log in, and having an unwanted icon on the screen that pops up a WIndows error is enough to send them screaming from the room. Anyone have any suggestions?

Comments

Goofy-1’s picture

i found an easy(dirty?) but working solution.
in event.module there are two lines (351 & 1631). i commented out these two lines and the icon disapeared. this works for me... and causes no problemes (until now!)

j10z’s picture

Thanks much, but could I impose on you to list the text of those two lines? My editor doesn't count lines and I need to rely on finding text.

Goofy-1’s picture

Here the two lines:

$output .= theme('event_ical_link', 'event/ical/'. $node->filter);

$output .= theme('event_ical_link', 'event/ical');

try it

bypass’s picture

In the most recent (17/05/06) cvs of the event module the line numbers are 393 and 1779. I used notepad++ to search for the 'event_ical_link' term.

I also want to get rid of the icon as users run when they see it and the error.
Bypass

trevortwining’s picture

I'm not professing to be the inventor of this, but recently stumbled across this information and hope it's useful to someone looking for the Drupal way of doing it.

You need to create an empty theme function in your theme. Because there's no instructions in the overridden function, it doesn't do anything and doesn't process the original instructions.

Example: in a project I'm working on I needed to eliminate the following items: XML icon for feeds, ical icon for iCal, and the more link on the calendar block. (client didn't want them in).

Rather than comment out the code above, enter these lines into your template.php file within your theme. NOTE: This assumes you're using phptemplate.

//note the empty curly braces, no instructions!
function customthemename_event_more_link($path) {} 
function customthemename_xml_icon(){}
function customthemename_event_ical_link($path) {}


//I'm not certain that the $path variable is required in these, but it was in the original, so I left it. I don't think it matters one way or the other.

Hope that helps someone.

Trevor Twining
http://www.trevortwining.info

Trevor Twining
Freelance Drupal Dev
Theme/Modules/Sitebuilding

lias’s picture

Hi, I added your code to my template.php file in my spreadfirefox theme but it didn't remove anything. In particular, I'm trying to remove the link to the calendar that shows up on each event item. Hmmm?
Lsabug

jm42’s picture

I used this for Drupal 5.1. This is working for me. I had to change the xml icon to feed icon which I found referenced in the event.module.


//note the empty curly braces, no instructions!
//This is for using Garlend theme
function garland_event_more_link($path) {} 
function garland_feed_icon($path){}
function garland_event_ical_link($path) {}


//I'm not certain that the $path variable is required in these, but it was in the original, so I left it. I don't think it matters one way or the other.
lias’s picture

Tried it again on 5.1 for latest events module and works. Thanks!

xscape31’s picture

I too want to remove all three of these, but I don't have a file named template in my bluemarine theme folder.

lias’s picture

to your theme and enter the code there. Check out this handbook page:
http://drupal.org/node/11811

flaxter’s picture

Add this to your theme's style sheet (style.css):

.ical-link { display: none; }

mrschlei’s picture

or even change it in the bottom of event.css

nonprofit’s picture

Certainly you can disable the display all sorts of elements with the css. This approach should be avoided as your system is still going to render them. Thus, you have all of the performance hit and none of the benefit. A much better way to remove the iCal feed is to disable the Calendar iCal module (yoursite.org/admin/build/modules).

Blessings!

-NP

PascalAnimateur’s picture

You can disable the iCal link for specific views under the iCal display, in the feed parameters, remove the attached displays you don't want.