Search found 465 matches

by DavidNewton
07 Nov 2016 12:23
Forum: Plugin Technical Support & Development
Topic: Adding 'avatars' to individuals
Replies: 29
Views: 15140

Re: Adding 'avatars' to individuals

Thanks Mike I just came across that mistake when doing some deeper testing. Unfortunately I have very few individuals with more than one media record attached so that error slipped past me. It should read == as opposed to ~=. There is also another error in that loop as I have mismatched the index: O...
by DavidNewton
07 Nov 2016 08:51
Forum: Plugin Technical Support & Development
Topic: Adding 'avatars' to individuals
Replies: 29
Views: 15140

Re: Adding 'avatars' to individuals

A final version, I hope, or at least until another problem arises.
Attach Avatars Revisited.fh_lua
(4.82 KiB) Downloaded 187 times
by DavidNewton
06 Nov 2016 19:10
Forum: Plugin Technical Support & Development
Topic: Adding 'avatars' to individuals
Replies: 29
Views: 15140

Re: Adding 'avatars' to individuals

One of the joys, and problems, with FH is that you can do a great many things that you shouldn't be able to do. Earlier when I was thinking about this I added a Spouse family link to my grandson's record and he has no children and no spouse. Of course I cheated a bit by adding it via the All tab. He...
by DavidNewton
06 Nov 2016 16:08
Forum: Plugin Technical Support & Development
Topic: Adding 'avatars' to individuals
Replies: 29
Views: 15140

Re: Adding 'avatars' to individuals

Mike My main aim in using the avatars with a plus was to give a visual indication in the focus window as to which children had more relatives to see if selected, It occurs to me after this discussion that I failed to allow for the possibility of children and no spouses, My reading of the FH help fil...
by DavidNewton
06 Nov 2016 15:27
Forum: Plugin Technical Support & Development
Topic: Adding 'avatars' to individuals
Replies: 29
Views: 15140

Re: Adding 'avatars' to individuals

Mike I checked this out with a simple query and using ~SPOU[<20] (and I do mean twenty) in all the families in my file (maximum of 3 spouses) this picked out the last spouse BUT I have no families of the type you mentioned. So I constructed one and annoyingly it then returned a blank. I guess I will...
by DavidNewton
06 Nov 2016 13:26
Forum: Plugin Technical Support & Development
Topic: Adding 'avatars' to individuals
Replies: 29
Views: 15140

Re: Adding 'avatars' to individuals

As I said yesterday, your use of fhGetItemText(pi,'~.~SPOU[<2]>') is unsatisfactory. I believe the objective is to return an empty string when the Indiviudal has no partner/spouse in any Family, and return a text string if there is a partner/spouse in at least one Family. In your code, if there is ...
by DavidNewton
06 Nov 2016 12:22
Forum: Plugin Technical Support & Development
Topic: Adding 'avatars' to individuals
Replies: 29
Views: 15140

Re: Adding 'avatars' to individuals

There was an error in the revisited plugin in the order of pointers in the IsAncestorOf function call. I'm posting a corrected version.

David
Attach Avatars Revisited.fh_lua
(4.66 KiB) Downloaded 232 times
by DavidNewton
06 Nov 2016 11:42
Forum: Plugin Technical Support & Development
Topic: Adding 'avatars' to individuals
Replies: 29
Views: 15140

Re: Adding 'avatars' to individuals

Mike I understand what you are saying about the ~SPOU shortcut and there is an ambiguity in the help file. I interpreted it that in the case of an individual this index would point to the spouse family number. In the Individuals record list I usually have the two columns for ~SPOU[1] and ~SPOU[2] an...
by DavidNewton
06 Nov 2016 11:20
Forum: Plugin Technical Support & Development
Topic: Adding 'avatars' to individuals
Replies: 29
Views: 15140

Re: Adding 'avatars' to individuals

Hi Mike

I have been working on the plugin this morning so have only just read your last post. I am attaching the version that I now have, which seems to work OK, but who knows?

David

I have detached the plugin as there was an error, see later post.
by DavidNewton
06 Nov 2016 09:01
Forum: Plugin Technical Support & Development
Topic: Adding 'avatars' to individuals
Replies: 29
Views: 15140

Re: Adding 'avatars' to individuals

Hi Mike Not being that familiar with the ~SPOU shortcut I had looked it up in the help file. In the context of a family record it returns the first spouse in the family. In the context of an individual it returns the spouse of the individual (if there is one) in their first spouse family record. The...
by DavidNewton
05 Nov 2016 20:19
Forum: Plugin Technical Support & Development
Topic: Adding 'avatars' to individuals
Replies: 29
Views: 15140

Re: Adding 'avatars' to individuals

I will have a closer look at this tomorrow. You are right about the trec matching, I have made this error in the past and I have resolved it (in the past) by making sure all the strings are the same length - padding them out with zeroes at the front. The problem I was trying to resolve with the spou...
by DavidNewton
05 Nov 2016 16:02
Forum: Plugin Technical Support & Development
Topic: Adding 'avatars' to individuals
Replies: 29
Views: 15140

Re: Adding 'avatars' to individuals

I have been trying to make this run more efficiently by doing the calculations of gender etc as I need them and in doing so I realised that I had the priority order of avatars wrong. So I am going to rewrite that section. For the moment I am going to leave the media records as they are since that wi...
by DavidNewton
05 Nov 2016 14:21
Forum: Plugin Technical Support & Development
Topic: Adding 'avatars' to individuals
Replies: 29
Views: 15140

Re: Adding 'avatars' to individuals

Mike thank you for the comments. I'm not sure where the odd text  is as I cannot see it in my copy in FH. I agree about the avatar media records, it would be nice if they were automatically picked up and I tried various ways of doing it but in the end I decided for me it was simpler to add the re...
by DavidNewton
05 Nov 2016 12:23
Forum: Plugin Technical Support & Development
Topic: Adding 'avatars' to individuals
Replies: 29
Views: 15140

Adding 'avatars' to individuals

I do not use diagrams, I just can't seem to navigate them properly, so I don't have access to all the decorative options. As a small step I add avatars to the individuals in my tree which give a very rough classification of status: male or female, with spouse or without, directly related or indirect...
by DavidNewton
25 Oct 2016 17:57
Forum: General Usage
Topic: Media Window List Pane
Replies: 4
Views: 3178

Re: Media Window List Pane

Well here's an interesting thing. I set the Media Workspace preference to Do not allow the re-use of open windows. Open a media window and get the narrow list I mentioned earlier. Immediately open a second Media window and the list width goes up to about 50 characters, more than 3 times as big and q...
by DavidNewton
25 Oct 2016 14:00
Forum: General Usage
Topic: End of Line Marker
Replies: 21
Views: 12580

Re: End of Line Marker

Another thing you could do in the opposite direction for a bit of fun, when you cannot find an individual's ancestors , is to add 'Brick Wall' media to their record such as
Brick Wall.jpg
Brick Wall.jpg (19.07 KiB) Viewed 12568 times
David
by DavidNewton
24 Oct 2016 15:47
Forum: General Usage
Topic: Assigning a fact to multiple individuals
Replies: 86
Views: 27311

Re: Assigning a fact to multiple individuals

Have you any other 'goodies' hidden away! Jim I think that most of us who use Family Historian and dabble (and I use the word with accuracy in my case) with Lua have a load of single purpose plugins often specifically adapted to our own way of doing things and hence not really suitable for public c...
by DavidNewton
24 Oct 2016 14:35
Forum: General Usage
Topic: Assigning a fact to multiple individuals
Replies: 86
Views: 27311

Re: Assigning a fact to multiple individuals

Thanks for the comments Mike and Jim. As I implied this was an interim effort and the logic was following the OP's request, namely choose a fact (already entered I assumed) mark it in some way (I choose [*] but it would be a simple matter to ask for an input for the marker if [*] is unsuitable) and ...
by DavidNewton
24 Oct 2016 13:16
Forum: General Usage
Topic: Assigning a fact to multiple individuals
Replies: 86
Views: 27311

Re: Assigning a fact to multiple individuals

I've written a quick and dirty plug-in which may help until someone writes a more sophisticated one. The plugin requires that the individual who gets the fact first to be selected and the fact itself marked by the presence of the text '[*]' at the beginning of the note field, which will be removed b...
by DavidNewton
23 Oct 2016 19:48
Forum: General Usage
Topic: Media Window List Pane
Replies: 4
Views: 3178

Re: Media Window List Pane

Yes Mike I have tried that but it doesn't stick, eevn if I simply close and re-open the media window. I use the media window a lot and I am pretty sure it did not behave like this until recently which is why I thought that I had accidentally changed a setting which brought it on. It's not major, I j...
by DavidNewton
23 Oct 2016 10:42
Forum: General Usage
Topic: Media Window List Pane
Replies: 4
Views: 3178

Media Window List Pane

When I open the View All Media window the list pane is just wide enough to show the first 15 characters of the media name and then the rest of the window is the thumbnail gallery (and sometimes a property box if I set it to show). There is a setting to show List Pane only in the media menu but it is...
by DavidNewton
16 Oct 2016 09:15
Forum: General Usage
Topic: Military History for Property Box Tab
Replies: 10
Views: 6390

Re: Military History for Property Box Tab

My father joined the Navy pre-WW2 and was killed in action. I obtained his service record which is informative in a skimpy way with lots of dates and abbreviations. I found it difficult deciding how to enter the information. In the end I decided, like Adrian Bruce, to write my own narrative, however...
by DavidNewton
12 Oct 2016 16:20
Forum: General Usage
Topic: Floreat
Replies: 10
Views: 6758

Re: Floreat

Although not an answer to your original question the phrase 'John of Ashe' suggests to me that he might be a known historical figure. A quick Google throws up a couple of possibilities: John Stretch of Ashe http://www.historyofparliamentonline.org/volume/1386-1421/member/stretch-john-1418 who might ...
by DavidNewton
12 Oct 2016 14:25
Forum: General Usage
Topic: i want the program to open up on the person i am currently working on and not always the root person.
Replies: 4
Views: 3878

Re: i want the program to open up on the person i am currently working on and not always the root person.

An alternative solution (and I am sure that there are issues with it otherwise why do anything else) is to hibernate the computer instead of shutting down, But do not exit Family Historian before hibernating. Of course this method restores everything that you have open at the time of hibernation. Da...
by DavidNewton
10 Oct 2016 07:09
Forum: General Usage
Topic: Focus Window display of Spouses of children & siblings
Replies: 34
Views: 19031

Re: Focus Window display of Spouses of children & siblings

Sorry, I misinterpreted "turn the focus window off completely" as "remove".

David