Author Topic: Hammerskin Disappears in 2008  (Read 8047 times)

Wichtel

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 550
Hammerskin Disappears in 2008
« on: January 03, 2008, 06:14:51 AM »
Hi Folks

the Hammerskin Disappears in 2008 from your TodayScreen. It's a problem with a variable this reaches only to 2007.

I will fix the Problem in the next Day's.

mfigrs

  • TodayPlus Newbie
  • *
  • Posts: 11
Re: Hammerskin Disappears in 2008
« Reply #1 on: January 22, 2008, 12:34:25 PM »
I have already updated the skin by myself. I have just edited the .TXT file and extended the "TIERKREISZEICHENANZEIGE BIS EINSCHLIE├čLICH 2007" section to 2008. The code start's around line 220 in the file.

The whole section after editing looks like this:

   if,var,var16,,<,38353
      //Jahr 2004
      addvar,var16,-37988
   else
      if,var,var16,,<,38718
         //Jahr 2005
         addvar,var16,-38353
      else
         if,var,var16,,<,39083
            //Jahr 2006
            addvar,var16,-38718
         else
            if,var,var16,,<,39448
               //Jahr 2007
               addvar,var16,-39083
            else
               //Jahr 2008
               addvar,var16,-39448
            endif
         endif
      endif
   endif

It was pretty simple...  ;-)

mfigrs

  • TodayPlus Newbie
  • *
  • Posts: 11
Re: Hammerskin Disappears in 2008
« Reply #2 on: January 22, 2008, 12:37:30 PM »
Ah, I forgot. I also edited the section of the skin's .TXT file "// Angabe der calendar week (KW) of the year", around line 600, to reflect the correct number of weeks. My code is as follows: (I hope Wichtel, that you don't mind  :-? )

   if,var,var33,,<,38355
         //Jahr 2004
         addvar,var33,-37977
   else
      if,var,var33,,<,38719
         //Jahr 2005
         addvar,var33,-38348
      else
         if,var,var33,,<,39083
            //Jahr 2006
            addvar,var33,-38712
         else
            if,var,var33,,<,39448
               //Jahr 2007
               addvar,var33,-39083
            else
               //Jahr 2008
               addvar,var33,-39448
            endif
         endif
      endif
   endif

That is it.

Wichtel

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 550
Re: Hammerskin Disappears in 2008
« Reply #3 on: January 24, 2008, 03:17:11 PM »
Sorry for the delay, here is the correct code.

In Region 2 Mainpage

Code: [Select]

if,var,var16,,<,38353
//Jahr 2004
addvar,var16,-37988
else
if,var,var16,,<,38718
//Jahr 2005
addvar,var16,-38353
else
if,var,var16,,<,39083
//Jahr 2006
addvar,var16,-38718
else
if,var,var16,,<,39448
//Jahr 2007
addvar,var16,-39083
else

if,var,var16,,<,39508
//Jahr 2008 Jan.+Febr.
addvar,var16,-39448
else
if,var,var16,,<,39814
//Jahr 2008 Restjahr
addvar,var16,-39449
else
//Jahr 2009
addvar,var16,-39814
endif
endif
endif
endif
endif
endif

In Region 5, 9 and 10

Code: [Select]

if,var,var33,,<,38355
//Jahr 2004
addvar,var33,-37977
else
if,var,var33,,<,38719
//Jahr 2005
addvar,var33,-38348
else
if,var,var33,,<,39083
//Jahr 2006
addvar,var33,-38712
else
if,var,var33,,<,39447
            //Jahr 2007
            addvar,var33,-39076
else
if,var,var33,,<,39811
//Jahr 2008
addvar,var33,-39440
else
//Jahr 2009
addvar,var33,-39804
endif
endif
endif
endif
endif

So you have to update 4 Regions. You can use this Update for QVGA and VGA Skins. Take a look on the var33 or var 16 in this example, you must use the var from your skin (that's important) otherwise you get a malfunction in your skin.

With this Update the Hammerskin works into the year 2009.


Good work mfigrs  :approve:
« Last Edit: January 24, 2008, 03:22:23 PM by Wichtel »

dgmele

  • TodayPlus User
  • **
  • Posts: 65
    • http://www.homestead.com/dgmele
Re: Hammerskin Disappears in 2008
« Reply #4 on: October 24, 2008, 06:12:53 PM »
Shouldn't the following section be updated to 2008/2009 also?

//====================================
//HEADING FOR NEWS (RSS) TICKER
//====================================

calcvar,var59,firstoutlookday


Also, the numbers from mfigrs differ from those of Wichtel. Which are correct??

It would be good to know the formula for adding years so that those of us who want to continue using this skin do not have to burden others. For "firsoutlookday" it looks as if all one has to do is add/subtract 365 (except for leap year?) for the year; but what about the formula for the calendar week?
« Last Edit: October 31, 2008, 02:34:06 PM by dgmele »