Show more than 99 days of upcoming events

Support for the WordPress Calendar plugin
jvuz
Posts: 6
Joined: Wed Aug 05, 2009 6:59 am

Display upcoming events

Unread post by jvuz » Wed Aug 05, 2009 7:09 am

Hello,

first I'd like to say you're doing a great job. I like your calendar a lot! I was just wondering if there is a way to enlarge the amount of days for the upcoming events. Now you cannot display more then 99 days.

Thanks,
Jvuz

User avatar
Kieran
Posts: 2067
Joined: Sat May 26, 2007 1:55 pm
Location: London
Contact:

Re: Display upcoming events

Unread post by Kieran » Wed Aug 05, 2009 7:16 pm

You can enter how many days of upcoming events you want to display using the calendar options page in the admin panel.

chloraldo
Posts: 1
Joined: Wed Aug 05, 2009 11:56 pm

Show more than 99 days of upcoming events

Unread post by chloraldo » Wed Aug 05, 2009 11:59 pm

Hi

I am trying to display more than 99 days in the sidebar using the upcoming event widget. But the text field only allows to digits. Any way around this?

Is there a way to do this?
Thanks in advance,
chloraldo

User avatar
Kieran
Posts: 2067
Joined: Sat May 26, 2007 1:55 pm
Location: London
Contact:

Re: Show more than 99 days of upcoming events

Unread post by Kieran » Thu Aug 06, 2009 6:55 am

Oh I see, well at the moment you'd need to go into the code and remove the restriction on the text field. As far as I can remember there is no restriction on the database. You should be aware however that the more days into the future calendar "looks" the more load it places on your site (will get slower)

jvuz
Posts: 6
Joined: Wed Aug 05, 2009 6:59 am

Re: Show more than 99 days of upcoming events

Unread post by jvuz » Thu Aug 06, 2009 7:00 am

Hello,

thanks for the reply. Where exactly do I need to look?

Jvuz

jvuz
Posts: 6
Joined: Wed Aug 05, 2009 6:59 am

Re: Show more than 99 days of upcoming events

Unread post by jvuz » Thu Aug 06, 2009 7:14 am

Sorry, I've found it. It's in calendar.php, search for 'days into the future' and change

Code: Select all

size="" maxlength="2"
into

Code: Select all

size="2" maxlength="3"

jvuz
Posts: 6
Joined: Wed Aug 05, 2009 6:59 am

Re: Show more than 99 days of upcoming events

Unread post by jvuz » Thu Aug 06, 2009 10:47 am

Kieran wrote: You should be aware however that the more days into the future calendar "looks" the more load it places on your site (will get slower)
Even if there aren't a lot of events?

jiggg
Posts: 1
Joined: Thu Aug 06, 2009 4:49 pm

Re: Show more than 99 days of upcoming events

Unread post by jiggg » Thu Aug 06, 2009 5:05 pm

I also increased the number of days shown, but I was also wondering about the number of characters for the Event Title.

I changed the size and maxlength in calendar.php to allow me to input 40 characters. I then get an error about the length. I have found the regex which checks the characters in the title box, but I dont want to change it to allow 40 incase the restriction is in place for a reason... can you shed light on this?

User avatar
Kieran
Posts: 2067
Joined: Sat May 26, 2007 1:55 pm
Location: London
Contact:

Re: Show more than 99 days of upcoming events

Unread post by Kieran » Thu Aug 06, 2009 6:09 pm

Download the development version, that issue is fixed there.

Post Reply