Calendar Plugin

Creating and modifying plugins.
Guest

Calendar Plugin

Post by Guest »

Hi, i have a little question about the buttons at the calendar plugin. The forward button will be displayed every time. How can i manage that the forward button will not be displayed if the next month has no entries. Like this: http://blog.s9y.org/. Thanks for your help!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Calendar Plugin

Post by garvinhicking »

The forward arrow will be shown as long as there is a single entry that is set in the future of any next month.

If you give me the URL to your blog I can check it out. It seems that you have one entry in the future (even if it'S an entry for next year it will show the forward button for all months to come until that date).

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

This time the blog is offline! We have no entry in the future, thats the problem!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Are you sure about that? I can imagine no other way you would get arrows from the future, only if any entry is set in the future.

Please provide a dump of your serendipity_entries SQL table, or take the blog online - I cannot you further without this information, as it works for me.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

This month (October) the forward button is displayed and links to November. At November we have no entries (" Keine Einträge vorhanden
(Seite 1 von 1, insgesamt 0 Einträge ")!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

But it could be that a draft entry was made in November, December or any month later than that?

You can execute this MySQL query:

Code: Select all

SELECT MAX(timestamp) AS max, MIN(timestamp) AS min FROM serendipity_entries
This will give you the maximum and minimum timestamps serendipity uses for showing the calendar icons.

If you have not made any entry (which you are only saying right now...) then the calendar arrows will be shown from LAST year to NEXT year! Make a first entry, then the arrows will adjust to your entry.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

Hi thanks for your help but i don´t understand the solution. My php and mysql is not so good. Can you tell me what i have to do a little bit easier? If it´s possible in german please!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I already gave you the easiest solution if you read through my whole answer:
If you have not made any entry (which you are only saying right now...) then the calendar arrows will be shown from LAST year to NEXT year! Make a first entry, then the arrows will adjust to your entry.
In german:
Du hast nie gesagt, dass Du in Deinem Blog noch keine Einträge hast! :) Wenn das so ist, zeigt s9y immer die Kalenderpfeile von letztem Jahr bis nächstes Jahr an. Erstell einfachen einen Blog-Eintrag, und die Kalendar-Pfeile werden sich danach ändern.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

Ich habe bereits Einträge für September und Oktober, der back button im Septmber wird nicht angezeigt was auch richtig so ist. Allerdings wird der forward button im Oktober angezeigt obwohl noch keine Einträge für November geschrieben wurden!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Okay, ich dachte, Deine "Seite 1 von 0, 0 Einträge" bezöge sich auf Dein ganzes Blog.

Dann musst Du mal phpMyAdmin installieren (falls niht schon geschene) und folgende SQL Abfrage ausführen:

Code: Select all

SELECT MAX(timestamp) AS max, MIN(timestamp) AS min FROM serendipity_entries 
Dann mit dem Ergebnis hierhin zurückkommen. Da Dein blog leider nicht online ist, kann ich zusätzliche Tests zur Fehlersuche ja leider nicht durchführen. :)

Viele Grüße,
garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

Guest

Post by Guest »

Ausserdem werden die Artikel nach unten immer schmäler! Was kann man da noch machen???
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Die IP die Du nennst ist eine Private IP, die man im Internet nicht aufrufen kann...

Ich müsste die Seite sehen um was zu dem "schmäler werden" sagen zu können...

Viele Grßüe,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

Na das hab ich mir schon fast gedacht, das läuft nur intern hier! Da kann ich leider auch nichts machen!

Zum Problem! Es werden 10 Artikel pro Seite angezeigt! Der erste ist in der Breite 100% und dann wird es immer schmäler bis zu ca. 50% breite der Seite. Eine Art V-Form also!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Bei der Artikelform klingt das bei mir danach, dass Du ungültiges HTML Code in einem Artikel drin hast. Jag Deine Seite mal durch einen HTML-Validator. Ohne Zugriff zum Blog kann ich Dir da leider nichts zu sagen...mach mal nen Screenshot und schick mir Quelltext von dem HTML und CSS (benutze sowas wie http://nopaste.php-q.net/, also nicht HTML/CSS hier rein koopieren)

Hast Du denn die obige SQL-Abfrage mal ausgeführt?

Viele Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply