By j10z on
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
same problem and solution
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!)
thanks, but...
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.
the two lines:
Here the two lines:
$output .= theme('event_ical_link', 'event/ical/'. $node->filter);
$output .= theme('event_ical_link', 'event/ical');
try it
line numbers
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
Right way to remove ical function
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.
Hope that helps someone.
Trevor Twining
http://www.trevortwining.info
Trevor Twining
Freelance Drupal Dev
Theme/Modules/Sitebuilding
Hi, I added your code to my
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
Thanks it works
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.
Tried it again on 5.1 for
Tried it again on 5.1 for latest events module and works. Thanks!
Almost
I too want to remove all three of these, but I don't have a file named template in my bluemarine theme folder.
Add template.php
to your theme and enter the code there. Check out this handbook page:
http://drupal.org/node/11811
another quick and easy way to do it
Add this to your theme's style sheet (style.css):
.ical-link { display: none; }or even change it in the
or even change it in the bottom of event.css
display: none
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
Disable it from views
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.