Calendar plugin - CSS wird nicht geladen

Hast du Probleme oder Fragen bei der Einrichtung bestimmter Plugins ? Diese kannst du hier loswerden.
Antworten
pphlwmarcel
Beiträge: 37
Registriert: 11. Jun 2015, 21:12

Calendar plugin - CSS wird nicht geladen

Beitrag von pphlwmarcel »

Hallo,

ich nutze Admidio Version 3.3 und versuche das Calendar-Plugin in die Sidebar einzubinden.
Ich habe in der my_body_bottom.php den Aufruf "include(ADMIDIO_PATH . FOLDER_PLUGINS . '/calendar/calendar.php');" hinzugefügt und der Kalender wird auch grundsätzlich angezeigt, allerdings stimmt die Formatierung nicht (siehe Fotos)

Ich habe die Vermutung das das CSS nicht richtig geladen wird. Könnt ihr das Problem nachvollziehen oder liegt es irgendwo an meiner Installation?
Fehlerhafte Formatierung
Fehlerhafte Formatierung
Admidio Übersicht - Mozilla Firefox_2018-05-12_18-00-21.png (5.87 KiB) 7125 mal betrachtet
Fehlerhafte Formatierung
Fehlerhafte Formatierung
Admidio Übersicht - Mozilla Firefox_2018-05-12_18-00-03.png (4.6 KiB) 7125 mal betrachtet
Edit:
ein Fehler gefunden:

Calendar.css - Stilbearbeitung im Firefox

Code: Alles auswählen

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /adm_program/'. $g_root_path. '/adm_pluginsrrrendar/calendar.css was not found on this server.</p>
</body></html>
pphlwmarcel
Beiträge: 37
Registriert: 11. Jun 2015, 21:12

Re: Calendar plugin - CSS wird nicht geladen

Beitrag von pphlwmarcel »

Ich habe den CSS jetzt wie früher in der Datei "my_header.php" geladen und jetzt funktioniert das Plugin fast richtig ;-)
Einziges Problem das noch bleibt ist, dass dieser "Termin Popup"
Termine - Mozilla Firefox_2018-05-12_20-45-13.png
Termine - Mozilla Firefox_2018-05-12_20-45-13.png (8.05 KiB) 7120 mal betrachtet
erst funktioniert, wenn ich einen Termin einmal angklickt (also aufgerufen) habe. In der Übersicht kommt da nur folgendes Fenster:
Admidio Übersicht - Mozilla Firefox_2018-05-12_20-46-46.png
Admidio Übersicht - Mozilla Firefox_2018-05-12_20-46-46.png (6.64 KiB) 7120 mal betrachtet
Benutzeravatar
amitabhmca
Beiträge: 104
Registriert: 18. Apr 2018, 02:44
Wohnort: Singapore

Re: Calendar plugin - CSS wird nicht geladen

Beitrag von amitabhmca »

Hi pphlwmarcel,

Could you please elaborate more, what exactly you did you achieve this?

Did you add some code in my_header.php and its working?

Thanks,
Amitabh
pphlwmarcel
Beiträge: 37
Registriert: 11. Jun 2015, 21:12

Re: Calendar plugin - CSS wird nicht geladen

Beitrag von pphlwmarcel »

Hello Amitabh,

so in Firefox I found out that the page tries to load the calendar.css isn't loaded right.
After I added this line to the my_header.php the calendar Plugin is displayed right.

Code: Alles auswählen

<link rel="stylesheet" type="text/css" href="<?php echo ADMIDIO_URL .'/adm_plugins/calendar/calendar.css'?>" />
As mentioned in the release notes for Admidio the css for the plugins should be loaded by the admidio script and there should be no need to add the css to the my_header.php manually.

So I haven't found out where the problem in admidio code is, but I guess there is a error ;-)
Benutzeravatar
amitabhmca
Beiträge: 104
Registriert: 18. Apr 2018, 02:44
Wohnort: Singapore

Re: Calendar plugin - CSS wird nicht geladen

Beitrag von amitabhmca »

Hi pphlwmarcel,

Thank you very much. I just tried and my calendar looks nice.

[attachment=1]Calendar.PNG[/attachment]

I also tried adding below line for birthday and it looks better..

[code]<link rel="stylesheet" type="text/css" href="<?php echo ADMIDIO_URL .'/adm_plugins/birthday/birthday.css'?>" />[/code]
[attachment=0]birthday.PNG[/attachment]

Thanks,
Amitabh
Dateianhänge
birthday.PNG
birthday.PNG (3.5 KiB) 7089 mal betrachtet
Calendar.PNG
Calendar.PNG (5.45 KiB) 7089 mal betrachtet
pphlwmarcel
Beiträge: 37
Registriert: 11. Jun 2015, 21:12

Re: Calendar plugin - CSS wird nicht geladen

Beitrag von pphlwmarcel »

Hello,

you‘re right, with Adding the line the calendar works Fine. But as mentioned in the changelog it should work without adding any line to my_header.php

Gr, Marcel
Antworten