1
mekano
PiCal List View dropdown menu stops at 2010
  • 2011/2/11 11:18

  • mekano

  • Just popping in

  • Posts: 22

  • Since: 2008/1/14


I am using piCal-0.7 with Xoops 2.0.16.

It's all working fine except the List View dropdown list shows only the years up to 2010 even though there are events in the calendar for 2011. How do I get it to include 2011? I would appreciate any help with this.


2
zyspec
Re: PiCal List View dropdown menu stops at 2010
  • 2011/2/11 15:40

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


I don't have piCal-0.7, I only have 0.9 but I suspect it's "similar"...

look in ./class/piCal_xoops.php - around line 620 you'll find something like:

$year_options "" ;
  for( 
$y 2001 $y <= 2020 $y ++ ) {
  if( 
$y == $this->year ) {
    
$year_options .= "ttt$y' selected='selected'>".sprintf(strip_tags(_PICAL_FMT_YEAR),$y)."n" ;
  } else {
    
$year_options .= "ttt$y'>".sprintf(strip_tags(_PICAL_FMT_YEAR),$y)."n" ;
  }
}

I suspect the "for" line looks something like:
for( $y 2001 $y <= 2010 $y ++ ) {


Change the '2010' to something like '2020' and see if that fixes the problem. Don't forget to clear the template cache or the change won't appear to take effect.

3
mekano
Re: PiCal List View dropdown menu stops at 2010
  • 2011/2/17 17:16

  • mekano

  • Just popping in

  • Posts: 22

  • Since: 2008/1/14


Many thanks, zyspec, that did the job. I very much appreciate your taking the time to help me.

Hope you have a wonderful day :)

mekano

4
zyspec
Re: PiCal List View dropdown menu stops at 2010
  • 2011/2/17 20:34

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


No problem... Glad it worked.

Login

Who's Online

437 user(s) are online (330 user(s) are browsing Support Forums)


Members: 0


Guests: 437


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits