Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Calendar?
Sorry!
My 100 notices mentioned above only mess up the version I have istalled on my local computer. Not the online installation – that works butifully!
It would be very nice to get a fix for the local one though, I’d like to be able to test on that (only got a small modem) and it looks VERY messy this way!
> erwin wrote:
> This is one nifty plugin :)
>Such a shame you cannot show more than one post per day in the smallformat mode. It would certainly have a place on my site if that was possible. :)
>Good job.
Another thing:
Do you think it would be possible to start the week on mondays?
That maybe a more european concept for timetables, and it would feel more familiar for my readers – maybe as an option?
Last edited by fri (2004-06-09 20:21:05)
Offline
Re: Calendar?
fri, could you possibly email me all 100 warning’s you are getting? And when you deactive my plugin, do the warnings continue or stop?
When I’ve had any warnings or errors they haven’t been in publish.php but in a tmp file, almost all of them have been as a result of some syntax problem.
Starting days on Monday is something that I was going to originally have then scrapped just to get a basic calendar at first. It is something that I plan on adding.
Offline
Re: Calendar?
Of course :)
When I deactivate they stop!
If I put on an the attribute smallformat: <txp:mdp_calendar smallformat=“1” />
the warnings limit to 6!
- but I’ll send you the 100 now…
Offline
Re: Calendar?
Stupid error reporting, I didn’t tell PHP to display all errors/warnings/notices and that led to fri’s problem. This new version fix’s the problem.
Offline
Re: Calendar?
Got it! Thank you again.
Now.. this server behaviour of mine..
I would be very interested in switching that kind of paranoia off. What is it good for?
I just don’t have a clue HOW.
Could anybody fill me in?
Maybe more people have that problem too – without knowing it yet – till the day they happily look forward to see a new function in work – and get insulted by their own php.
Offline
Re: Calendar?
Unforunately there isn’t much you can do. Maybe in your index.php add the line “error_reporting(0);” but that will only work for Textpattern and its plugin’s. If you uploaded any other script with notice’s then they would be displayed.
Offline
Re: Calendar?
well.. thats a good start.
I appreciate your help.
Offline
Re: Calendar?
Is there a way to have the range of months displayed to only cover the beginning of articles to the latest articles? In other words if my oldest article is in January 2004, when displaying January there would not be a backlink to December 2003.
Offline
Re: Calendar?
Mostlikely not, unless there is an option for range in the txp:mdp__calendar tag. Usually calendars show every month, every year, etc…
bludrop studios .::. Creative Expression
Offline
Re: Calendar?
> trailgirl wrote:
> Is there a way to have the range of months displayed to only cover the beginning of articles to the latest articles? In other words if my oldest article is in January 2004, when displaying January there would not be a backlink to December 2003.
Nope. It wouldn’t be terribly hard to do, simply run two querie’s that return true if there are article’s in the specified month (one for next and previous month). A nice feature though, I’ll add it to the suggested for future versions box. I’ve got a new version that does clean URL’s much better, thanks to Manfre, but I’m going to get them even better before I release into the wild (and messy URL’s also need work).
Offline
Re: Calendar?
hey greenrift.. thank you for making that calendar.. i know some people apparently abhor the little calendars (i’m not referring to the large event-style calendars), but i actually really like them. i don’t expect this to be any sort of a top priority for you, but if you’l be working on this wonderful plugin further, i’d really like to be able to edit the days of the week (M T W ~ Mon Tue Wed, etc.) and the < to «.., and especially to be able to change/remove the zeros (01 02 03… 09 10 —> 1 2 3… 9 10).. those would be extra-splendid. and the way i had set mine up in movable type, i was able to show the entries for a given day in the ‘title’ or the url of the day.. so it was only visible on hover, but there nonetheless.. i don’t suppose that’s as easy to do, though? regardless, this is a beautiful plugin and i’m thankful someone made it. thanks, greenrift. :)
EDIT: i did find the very very simple solution to removing the zeros.. for anyone who was as dense as me about it, the way you do it is just to go to your plugins listing on your textpattern admin panel and click on the calendar plugin, and you’ll get the whole code of it…
find the lines
<code>/* doubleDigit($num)
/* Padds a single digit number to double digit.
*/</code>
and in place of the “0”, just…. make it blank: “ “. that’s it.
that’s probably how i’ll be editing the days of the week and the left and right arrows too, huh.
Last edited by alicson (2004-06-19 02:25:04)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: Calendar?
Thank you, greenrift. Awesome plugin.
Offline