* Adding 'avatars' to individuals

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
User avatar
tatewise
Megastar
Posts: 27084
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Adding 'avatars' to individuals

Post by tatewise » 08 Nov 2016 10:17

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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
DavidNewton
Superstar
Posts: 462
Joined: 25 Mar 2014 11:46
Family Historian: V7

Re: Adding 'avatars' to individuals

Post by DavidNewton » 08 Nov 2016 12:34

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

User avatar
tatewise
Megastar
Posts: 27084
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Adding 'avatars' to individuals

Post by tatewise » 08 Nov 2016 12:47

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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
LornaCraig
Megastar
Posts: 2996
Joined: 11 Jan 2005 17:36
Family Historian: V7
Location: Oxfordshire, UK

Re: Adding 'avatars' to individuals

Post by LornaCraig » 08 Nov 2016 14:27

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)
Lorna

User avatar
tatewise
Megastar
Posts: 27084
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Adding 'avatars' to individuals

Post by tatewise » 08 Nov 2016 14:49

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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply