Page 2 of 2

Re: Adding 'avatars' to individuals

Posted: 08 Nov 2016 10:17
by tatewise
David, there is a much simpler way to insert your Avatar as the first Media item.
InsertAvatar(...) adequately copes with an Avatar already in first position.
This is the way to insert a new Avatar into the first Media position :-
  1. Use fhCreateItem(...) to create the new Avatar in last position.
  2. Use fhMoveItemBefore(...) to move it before the 1st [1] item.
I think this will even cope with no existing Media, so your code just before calling InsertAvatar(...) is not needed.
QED

Focus Window Overview
Just for completeness , especially for others who may be following this thread, here is my take on David's objectives.
The Avatars are intended to provide various status indicators for each Individual.
However, the Focus Window offers almost all those indicators, and often multiple simultaneous indicators :-
  • Brick Wall: Very obvious in the Focus Window that an Individual has no parents.
  • Unspecified Gender: Only possible for Individual with no Spouse or Children so must be a Child or Focus person and their Sex is clearly shown.
  • Direct Line Ancestor: Any direct line Child is marked with a blue arrow so the parents & grandparents above must all be direct line ancestors.
  • Male/Female Inlaw/Relative With/Without Spouse: Click on the Descendants tab to see whether Children have Spouses or further Children.
  • Spouses of Relatives: Usually evident in the Focus Window.
  • Outside Relationship Pool: Not in Focus Window, but can add to Property Box Caption using Pool =RelationPool() to show the Pool number.

Re: Adding 'avatars' to individuals

Posted: 08 Nov 2016 12:34
by DavidNewton
Thanks Mike

Why didn't you make this post immediately? My objectives were fairly clearly stated in the opening post and it would have saved a lot of effort. However, on the plus side, since this is the Plugin Discussions forum I have found it illuminating.

David

Re: Adding 'avatars' to individuals

Posted: 08 Nov 2016 12:47
by tatewise
Sorry David, since you have been using FH for 2.5 years, I assumed you were conversant with the Focus Window status features.
Especially since you posted in Plugin Discussions, I assumed you wanted extra status indicators.
If you had asked a more general question about discovering the status of Individuals then we would not have explored the Plugin route.
However, I find it is quite common for users to ask about a perceived solution, rather that ask about their primary objectives. Usually I spot that, and dig below the solution to the objectives, but this time you fooled me.

Re: Adding 'avatars' to individuals

Posted: 08 Nov 2016 14:27
by LornaCraig
Without wishing to prolong the discussion unduly, I have a quick comment.
Mike, although the Focus window shows clearly if an individual has no parents I think David intends the 'Brick Wall' to indicate that he has tried, and failed, to find ancestors. So the avatar does add something useful. See End of Line Marker (14284)

Re: Adding 'avatars' to individuals

Posted: 08 Nov 2016 14:49
by tatewise
Lorna, that was my first thought, but David's Plugin simply checks for no Parents to apply that Brick Wall avatar. Any manual adjustment to that is another discussion.