Page 1 of 2
Calendar Plugin
Posted: Wed Oct 05, 2005 6:45 pm
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!
Re: Calendar Plugin
Posted: Wed Oct 05, 2005 9:58 pm
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
Posted: Thu Oct 06, 2005 2:59 pm
by Guest
This time the blog is offline! We have no entry in the future, thats the problem!
Posted: Thu Oct 06, 2005 3:19 pm
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
Posted: Thu Oct 06, 2005 4:22 pm
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 ")!
Posted: Thu Oct 06, 2005 4:39 pm
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
Posted: Fri Oct 07, 2005 2:32 pm
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!
Posted: Fri Oct 07, 2005 2:56 pm
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
Posted: Fri Oct 07, 2005 3:05 pm
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!
Posted: Fri Oct 07, 2005 3:16 pm
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
Posted: Fri Oct 07, 2005 4:40 pm
by Guest
Posted: Fri Oct 07, 2005 4:41 pm
by Guest
Ausserdem werden die Artikel nach unten immer schmäler! Was kann man da noch machen???
Posted: Fri Oct 07, 2005 4:43 pm
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
Posted: Fri Oct 07, 2005 4:54 pm
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!
Posted: Fri Oct 07, 2005 5:02 pm
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