bugrain.com

Global Links

Site links


Content

Bugrain :: Forums :: Plugins by bugrain :: Hall Of Fame
Results always displaying January

Moderators: bugrain
migrobe Wed Aug 03 2005, 06:30PM
Posts: 3

Hi,

i got a little problem: All time in a competitions Date "January" is displayed even if a other month is configuered.

Thx if anybody got some help for me.

migrobe
bugrain Thu Aug 04 2005, 05:30AM

Posts: 828

Have you got a URL so I can see what is happening?

cheers
bugrain
migrobe Sat Aug 06 2005, 09:58AM
Posts: 3

Hi,

thanks for answering. URL is: -link-

The entries in the Database are correct as i can see.

hof_year_id hof_year_event hof_year_year hof_year_month hof_year_day hof_year_venue
4 1 2005 8 2 Biblis-Wattenheim

Expected Date is: 2. August 2005
Displayed Date is: 2.January 2005

greatings
migrobe
bugrain Mon Aug 08 2005, 06:03PM

Posts: 828

Thanks,

Found and fixed.

If you want to fix locally before I relase change lines 72-76 in halloffame.php to:

  1. if ($hof_year_day)
  2.    $text .= " (".date("j F", mktime(0,0,0,$hof_year_month,$hof_year_day,1970)).")";
  3. } else {
  4.    $text .= " (".date("F", mktime(0,0,0,$hof_year_month,1,1970)).")";
  5. }



cheers
bugrain
migrobe Mon Aug 08 2005, 07:04PM
Posts: 3

thx for your help works great but need to look like this:

if ($hof_year_day) {
$text .= " (".date("j F", mktime(0,0,0,$hof_year_month,$hof_year_day,1970)) .")";
} else {
$text .= " (".date("F", mktime(0,0,0,$hof_year_month,1,1970)).")";
}

If not you get a parse error in Line 93.

greatings
migrobe
bugrain Mon Aug 08 2005, 07:54PM

Posts: 828

Yeah, must have deleted the { when I edited the code in to the post.

cheers
bugrain

Right bar


Footer