Plugin Author
anmari
(@anmari)
Hi Ditler,
I cannot recreate the problem locally or on http://test.icalevents.com.
Locally I have tried with default css,and custom css. I have also ticked to not include the plugin css and all is working as expected.
http://icalevents.com/3591-custom-css-for-event-lists/
Perhaps something is interfering on your site ? As a quick fix, if you theme css is adequate, you could simply tick the box to not have the css used.
If you want to find out what is happening on your site, try usual debugging steps: http://webdesign.anmari.com/2932/debugging-a-possible-clash-between-plugins-andor-a-theme/
Do let me know if you figure it out.
Thread Starter
ditler
(@ditler)
I have the problem since I have SSL.
Fixed it it: amr-ical-events-list-main.php, line 349
from
else $icalstyleurl = ICALLISTPLUGINURL.’css/’.$amr_options[‘cssfile’];
to
else $icalstyleurl = ICALLISTPLUGINURL.stristr($amr_options[‘cssfile’],’css/’);
That did it, though I guess this is not a real fix.
Best
Andy
Plugin Author
anmari
(@anmari)
hi Ditler,
better would be to specifically allow for https, not just http in the lines above. This will be in the next update:
if (stristr($amr_options['cssfile'],'http://')
or stristr($amr_options['cssfile'],'https://'))
Hi Anmari,
Could you (also) make it work for absolute URLs please (if that is of any interests)?
In fact I ran into the same issue, sort of. I recently forced an area of my site in https. On the page displaying ical event the style was borked because of CSS refered to via http.
my “workaround” was to:
– define( ‘WP_PLUGIN_URL’, ‘/wp-content/plugins’ );
– (select the plugins’ default css – not the one in uploads)
– change amr-ical-events-list-main.php, following line (350ish) as follow:
if (stristr($amr_options['cssfile'],'http://') || $amr_options['cssfile'][0] == '/')
BTW, many thanks for your great plugin.
I only use a very small portion of it, only to display a cal from a davical public/ticket link (‘would have so loved a more “accomplished” caldav client but that’s another story) and it works perfectly fine.
So many, many thanks again.