Jump to content
TNG Community

Age automaticly calculated pr event


ZuluFX

Recommended Posts

  • Replies 245
  • Created
  • Last Reply

Top Posters In This Topic

  • Michel KIRSCH

    81

  • tngrlkrz

    33

  • RickM

    33

  • Rob Severijns

    32

Michel you are going to call me all sorts of names.  I installed mod with no problems, went to add my sites to the site list and deleted the site list.  Hopefully, you have a backup. 

 

 

Link to comment
Share on other sites

3 minutes ago, Rob Roy said:

Michel you are going to call me all sorts of names.  I installed mod with no problems, went to add my sites to the site list and deleted the site list.  Hopefully, you have a backup. 

 

 

All Sorts of Names!!! Bugger!!!!!! 😁

I think that can be sorted.. Thank God for backups..

hahahahahahaha

The Wiki page looks ok Rob, try again Good Sir..

Edited by RickM
Looks ok Rob
Link to comment
Share on other sites

Great work (as always) Michel.   Thanks for adding the display option '3' for age being  (Age xx) which now matches the rest of my site age displays (e.g. name header, children, spouses, and other pages).  BTW....the parameter default for display in the cfg  is set at '4', yet only 3 options.  Had you been thinking of yet another? 😉

Link to comment
Share on other sites

Michel KIRSCH
44 minutes ago, tngrlkrz said:

the parameter default for display in the cfg  is set at '4',

Ach! Scheisse !

This was a test. I forgot to reset the default value before posting the Mod...

If value is not in (1..3) the default value 1 is set...

Will post an new version. But don't load this will be for the future uploaders...

Link to comment
Share on other sites

Michel KIRSCH
48 minutes ago, tngrlkrz said:

the parameter default for display in the cfg  is set at '4

It's fixed !

Thanks "Big Eye" Ron !

Link to comment
Share on other sites

Michel KIRSCH
43 minutes ago, Rob Roy said:

I sent them to Michel.  I think I didn't save so it reverted. 

It's Done, Rob.

Michel

Link to comment
Share on other sites

Michel KIRSCH
2 hours ago, Rob Roy said:

Michel you are going to call me all sorts of names

Never, Rob. Never...

Link to comment
Share on other sites

1 hour ago, Michel KIRSCH said:

It's fixed !

Thanks "Big Eye" Ron !

Well done Mr 'Big Eye' Ron!

Well Done Michel.. Always on top of things..

Link to comment
Share on other sites

Michel KIRSCH

A new version 1a is (already) published.

When changing parameters, the mod can display as "partially installed"

It is the answer to the problems encoutered by Rob the sailor et Rob the not sailor.

When modifying a parameter, it was modified once in personlib.php and twice in the cfg file...

Michel

 

Link to comment
Share on other sites

2 hours ago, Michel KIRSCH said:

When changing parameters, the mod can display as "partially installed"

You know, I had that happen to me a couple times and just put it off to some install mess I created, so I did a 'cleanup', I think.  Thanks also putting an explanation (below) within the cfg file. It makes total sense to me now knowing how Mod Manager processes parameter changes after installation.

            //version 1a : because mod manager change all occurrences of the parameter when changed, the parameters name must be unique (from the inline code variables) !

Thanks for the enlightenment!
 

 

 

Link to comment
Share on other sites

Michel KIRSCH

More explanation :

in the cfg file :

$aae_aftfact = 1;     // displays age after the fact
....
if ($aae_aftfact == 0 && $aae_beffact == 0 && $aae_aftdate == 0 && $aae_2lines == 0)
  $aae_aftfact = 1; // Set display after fact as default

When changing $aae_aftfact from 1 to 0, in the edit option of the Mod, the 2 occurences in the cfg file are modified ==> $aae_aftfact = 0;

While in personlib.php, only the line with the parameter is modified...
and the mod is considered as "partially installed".

This is annoying, but there is more serious: the logic is changed in the cfg file.
So after a Clean Up and a reinstall of the Mod, the code doesn't work properly anymore! 😮

Michel

 

 

Link to comment
Share on other sites

2 hours ago, Michel KIRSCH said:

When changing parameters, the mod can display as "partially installed"

Editing options should not cause a partially installed mod.

Having stated that, some of Bart Degryse's mod that updated the TNG configuration files required that the cfg file be update if you made a change using the TNG Admin > Setup dialogs. 

Link to comment
Share on other sites

19 minutes ago, Michel KIRSCH said:

after a Clean Up and a reinstall of the Mod, the code doesn't work properly anymore

I followed you and understand the need for parameter vs. code and the requirement for uniqueness...but didn't realize the mod manager is left  with an inability to 'cleanup'.

 

Link to comment
Share on other sites

That is because Edit Options cannot be coded the way Michel coded his mod where changing on option impacts the other options.  The options can have more and true and false or 0 and 1.  The Edit Options should be coded for how you want the display to work

(6) $displayAS =
1  => displays : (45 years) => this is the default case
2  => displays : (45 years old)
3  => displays : (Age 45)
Link to comment
Share on other sites

Rob Severijns

An honorable title it is Rob.

Eventhough I've never been a sailor I did travel the world and do have some sailorsblood running through my vanes..

My grandfather via my mothers side was a skipper and his forfathers before him were sailors.

Two of my forfathers drowned at sea. One during a storm in Kattegat, close to Danmark, and the other in the Spanish Sea.

Both were married to the same woman. She lost two of her husbands within a year after their marriage leaving her a widow twice with 2 children of two different fathers.

Life can be harsh.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...