TodayPlus for the Pocket PC Forums > HammerSkin

Hammerskin Disappears in 2008

(1/1)

Wichtel:
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:
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:
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:
Sorry for the delay, here is the correct code.

In Region 2 Mainpage


--- Code: ---
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

--- End code ---

In Region 5, 9 and 10


--- Code: ---
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

--- End code ---

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:

dgmele:
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?

Navigation

[0] Message Index

Go to full version