Jump to content
TNG Community

Any takers for these mods?


mkoche

Recommended Posts

Thanks to everyone who gave me guidance and tested out these mods.  By my calculation, there is not a big demand for any of them but some interest in a few.  I am ready to put the Info Harvester up (now renamed to research tools) and I may tinker a bit and put the job display up as well.  There was slight interest in the boolean search addition and almost none on the may relate mod.  So these will not go up.  (9 Mar)

-- Original Message -

Recently, I have put up five or six mods, many of which I have had for a couple of years but never took the time to make them clean enough to share with others.  I have more but I have decided that I am polluting a filled up set of mods and that I should cease and desist.  That said, I just wanted to see if anyone thinks I should put any of these up.

1. Info Harvester  -  researchtools.zip

This mod adds a popup with information on the surname (from the surname.db site), a google search on the person, or a geni search on the person (it slows things down slightly because it has to check to see if a record exists and embeds the page on the individual page). Sample:

Surname database

Screen Shot 2019-03-03 at 11.07.01 AM.png

Google search:

Screen Shot 2019-03-03 at 11.10.06 AM.png

2. May Relate:

In this mod, I have used a custom event to show people who might relate to the individual.  All I need to do is enter a string of ids when entering an event (called Relate) separated by a comma … i.e. I123, i456,… the mod then translates these into links and names, as such:

Screen Shot 2019-03-03 at 11.14.05 AM.png

3. My search caps

Added booleans to the search dropdown.  Look at the last two.  The first hunts for all caps names.  Last Name also has this option.  (This goes with my "Show Issues" mod.  The second adds a "does not contain" for cutting out records that have, say "family" or something else in them. Screen Shot 2019-03-03 at 11.17.00 AM.png

4. Heading Display Jobs Facts.  display_jobs_facts_v12.0.0.2.cfg.zip version 2

This mod takes from the custom events (Occupation) to add the person's job or an interesting fact into the Heading.  Of course, if you haven't been adding occupations to custom events... no use. It looks like this:

Screen Shot 2019-03-03 at 5.53.30 PM.png

Any thoughts or interest?

Cheers!

Scott

Each mod is attached below.

7 Mar

Info Harvester - Version 2

  • Now the internet tree search can be a changed to a site that you like.   Process requires you to get the url and edit it. And then paste into the corresponding field in mod options.
  • Dimension editing is changed. Editing the width edits the width of the popup boxes for the Tree and Internet popup only. I know that the surname popup should be customizable some day. Editing the amount on the top and left to cutoff is just for the internet tree this helps to fix the top and bottom margins if you use a custom tree.
  • Put tooltips back on request.  They are editable in the appropriate custom text (cust_text.php) file in your language directory. (Full list is below).
  • Took off the website check for the online tree... Should reduce loading time a little and allow for the custom trees.
  • Here are the language customizations:
$text['surname'] = "Surname";
$text['internet'] = "Internet";
$text['onlinetree'] = "Online Tree";
$text['opennewtab'] = "Open in New Tab";
$text['morerestrict'] = "More restrictive search";
$text['addspouse'] = "Add in spouses' surnames";
$text['addmother'] = "Add in mother's surname";
$text['surnamesearch'] = "About this surname";
$text['treesearch'] = "Search an online tree for this person";
$text['internetsearch'] = "Do an internet search for this person";

 

7 Mar

Surnamedb went offline today. This meant that any website using this mod experienced long delays or even failure.  It was a good lesson and I have amended the mod accordingly

* I took out the tests that were preceding the download of the website.  This should double the speed (maybe more) and mean that any website that goes down will not slow anything until a popup is chosen.

* Wikipedia is now the surname server.  It is not as pretty nor does it have as many surnames.  But it is a whole lot more reliable.

* I added in a fourth option - familysearch.org.  This will search first name, surname, place of birth (or baptism) and a range that is 10 years before the birth or baptism date and 10 years after.  A record that lacks these things will just search for whatever is present.  Familysearch requires login.  If you are already logged in, all goes well.  If you are not, it pops up with the login screen in a new window.  But After you log in, you can go back and work from your website.

6 Mar

1) Update of Heading Display Jobs Facts - now called Display Jobs and Facts - thanks to Ken Roy for helping to locate the conflicts with other mods and figure out an approach to simplify format for display with other mods.

2) Updated Info Harvester to remove link from the text, make a less restrictive search for google (removed the quotes from around an individual's name and to, this is experimental, switch search engines if the language of the tng site is not English: For non English - it uses geneanet for the online trees, For French - it also uses geneanet for the sunrame search but wikipedia in the user language for all other surname searches (not French, not English). I really could use suggestions about favorite searches in English and not in English.  I wanted to make this so you could just put in your favorite search engine but for the genealogy ones they all use a different logic.  Google is easily replaceable if anyone has strong feelings on this. I also fiddled with formatting of the search icon menu.  It should look better.

Finally - new capabilities

- A link appears after you open a search to open it in a new tab.  Note this is restricted. It will only open the first page in a new tab, so if you go deeper it will not work. However, you or the loser can always right clink on a link to open in a new page. 

- I gave the searches a bit more information, more than one first name, etc.

- The internet search page now has a handy menu.  The search starts out broad...the names of your person and the a few words from their birth or baptismal place.  You can click on restrictive search to search for the full name in quotes, or spouses search to add in the last name of spouses  or mom's search to add in the mother's maiden name.  This was all I could think of from my general use of searches.  If you can think of more, let me know.

- The surname and internet tree searches change to geneanet if your language is not English at the moment.  There are issues with this.  We are still hunting for a better alternative.

- All text is editable in whatever cust_text file you use. Here are the strings

$text['surname'] = "Surname";
$text['internet'] = "Internet";
$text['onlinetree'] = "Online Tree";
$text['opennewtab'] = "Open in New Tab";
$text['morerestrict'] = "More restrictive search";
$text['addspouse'] = "Add in spouses' surnames";
$text['addmother'] = "Add in mother's surname";

What is NOT here is the ability to change the search engines in the options (only to show or not show them).  My central issue with this is finding good alternatives and the second issue is that most online family trees have their own architecture for searching.  Geneanet was a score because it is almost identical to Geni.  But a login service won't work-- such as familysearch.  I am using wikipedia for non English and French speakers... This may not be terribly useful.

Super thanks to Ron, Ken and Katryne who have kept me groaning by finding issues over the last few days.  I console myself with the fact that it is a better mod because of it.

5 Mar

1) Update of Info Harvest changes the install location to avoid conflict with a mod.  Changes icons and adds text. Allows user to edit size of window and placement of the website inside in the mod. Cleans up some internally conflicting code. It also removes the author line for testing purposes on earlier than tng 12 versions.

2 Update of Heading Display Jobs Facts. Fiddled with placement and format if Signature Display mod is installed. 

 

may_relate_V12.0.0.3.cfg.zip

 

my_search_caps.cfg.zip

 

 

Link to comment
Share on other sites

  • Replies 139
  • Created
  • Last Reply

Top Posters In This Topic

  • mkoche

    50

  • tngrlkrz

    34

  • Ken Roy

    26

  • Katryne

    21

Top Posters In This Topic

Posted Images

Hello !

I think I'd like to try the bunch of them. I am little less interested in the search modifier option. But Info Harvester would be my favorite, provided the links to the documentation basis can be configured for French speakers.

Link to comment
Share on other sites

4. Add Profession to Heading Display

Alright thanks for the post and the private messages.  I guess the best way to proceed is just to post the mods here for testing.  If they work for folks, then I will put them up in the mods section. 

Here is the first.  I have expanded it a little and renamed it to "Heading Display Jobs & Facts."  It will take up two custom events from a person's record and display them in the header, either after the line with the name or the line with the dates.  User options are on the mod. You can choose the placement and the names of the fields to include.  Give the event tag that you are using to show a person's jobs (I think OCCU is the standard but you can use whatever event you like.  And if you want to show interesting facts about the person, either create an event for interesting facts or use the field in which you already record this. 

Result will be something like this:

NAME OF PERSON

Gender and years

PROFESSION - Interesting fact if they have one

Let me know what you think.

 

 

heading_display_jobs_facts.cfg.zip

Link to comment
Share on other sites

3) All Caps and Does Not Contain Search Modifiers

This  adds the criteria to search ALL CAPS and does not contain.  All caps sort of goes with my other mods - Direct Line Search and Show Issues but I imagine it could be useful if you capitalize for other reasons.  Does not contain simply allows to exclude records that have certain words or strings.  I use it to cut out classes of records. I have noticed that the ALL CAPS does not always work but it seems largely reliable. 

 

 

my_search_caps.cfg.zip

Link to comment
Share on other sites

1) The Info Harvester

So, the question about language on the infoharvester is great.  I did a little work to break its strong affinity for English but there  does not seem to be a centralized multilingual database for surnames.  Simple translation is confusing (Google attempts to translate the proper nouns)... so if you change the language, it will default to a wikipedia page in that language that may or may not help as a starting point.  Needs a better solution.  I changed the google to follow the language.  And I could find nothing to do with the Geni.

I also made it so that you can choose which searches you want available (edit options in the mod) as well as the language.

A word of caution for anyone who tries it out.  This mod will check to see if a website exists before it displays the search icons (in the far right corner).  SOME hosts do not allow this kind of search.  I suspect it might cause an error if this is the case.  Uninstall the mod.  I don't think you can use it.

For anyone brave enough to test, I really don't have the format down for the graphics or even good files  (remember you do need to have the folder infoharvest in your mod folder).  Suggestions?

UPDATE: Fixed issues identified by Ron (hopefully) but there are likely more. And by the way, I know the surname graphic is ugly and in English.  If anyone is a graphic icon whizz, it could really use a lovely icon that would communicate the idea of surname without having to be in 70 languages.  I am really trying to keep the installation looking clean. And the current icon set needs some loving care.

 

 

 

 

info_harvester.zip

Link to comment
Share on other sites

You know that might just have the answer to the language issue.  I'll see if it offers any insight.  Surnamedb is good for surname origins... but it is in English.  Luckily google does not seem to be an issue. Geni is another with a language deficit.

 

 

Link to comment
Share on other sites

2) May Relate to

Alright, here is the final one.  Note that the language string can be changed in the mod options.  Even where you want it to stay in English, you may want to customize for your own site.  You must create a custom event in which to store a string of possible relatives.  Call it what you like, the default tag is 'Relate" and it can be changed in the options.

Of all of these this is the one I have used the least.  But there are many places in my notes where I pass a link to parents, siblings or folks that I think might be related.  This field is meant to facilitate this both for someone looking at the data and for researchers. 

may_relate_V12.0.0.3.cfg.zip

 

Link to comment
Share on other sites

Super Bien!  The plugin requires no language strings. But your help in finding multilingual information sources would be greatly appreciated.  Perhaps we could just do a few.  I know there is a good French equivalent to geni (or worldconnect or wikitree). Right now I prefer graphic icons for the page to text (it is just lighter, even though I do not have the formatting correct) but I wonder if there is an icon that could mean surname to everyone ... Tng already has surname in multilanguages that could be used if I abandon the icons and use text instead.

The surname description link is more problematic.  I have only found surnamedb, ancestry and wikipedia that give histories of surnames.  But Wikipedia has very few (its translation engine is interesting), ancestry I avoid always.

I think we could start putting up tons of surnames on wikipedia, in appropriate languages, but that is a bigger project than my humble little mod.

 

 

Link to comment
Share on other sites

5 hours ago, mkoche said:

I also made it so that you can choose which searches you want available (edit options in the mod) as well as the language.

Hi Scott,

Did brief testing of the Infoharvest mod, specifically the google search option, and set the parameters to not use the other two.  All three were still active, so it appears the edit option parameters are not working as is.  The placement of the three options on the person page header is OK, and as you mentioned, the graphics (icons) are not displaying.   The existence of the folder infoharvest didn't seem to make a difference.  The actual google search pops up nicely, and seems very handy indeed.

Will do more testing of the google option and report back here.

One other observation.  The quotes placed around the name are, for me, causing fewer search results in the URL then w/o them.

Update: looks like a test variable ($testa) is still in the code; once removed, the edit option work!

Link to comment
Share on other sites

Ken - you are a dynamo.  I suspect the icons are working for me but I need to replace a more generic tng mod folder.  The $testa variable really?  Say more.

Link to comment
Share on other sites

Thanks again Ron.  I believe I dealt with both issues.  Employed a more correct url for the graphics files.  And you DONT want to take the testa variable out.  It is what keeps the icons from showing up if there is no record on the surnamedb site or the geni site so that there is not a lot of useless pages to click.  But you were exactly right, I had used an or rather than an and operator and that was messing it up. 

I imagine there are more issues.  I had to cut out the whole section that linked to my own blog and make it customizable before I shared it.

The old version is replaced in my message above. 

Cheers,

Scott

 

Link to comment
Share on other sites

Hi Scott,

Observations in testing the info_harvest mod:

Edit option parms work great with the version of infoharvest you posted.

As to the google search, I found, on my screen, the popup width a bit narrow (750px), so when I fiddled with this following the ‘$googler’ section, which has these defaults:

$xwidth = "900px";  
$xtop = "-200px";
$xleft = "-53px";

It had no effect, but when I changed what looked like the next surnamedb section (width 750px), following “$fratext = "http://www.surnamedb.com/Surname/$lnksur";”    I got the width of 1000px I wanted.  Is that perhaps expected?

As I noted earlier, at least for me, I found removing the double quotes in this line give my better and more results.

$googler = 'https://www.google.com/search?igu=1&q="' . $lnkfir . '+' . $lnksur . '"+' . $first_word . '+' . $last_word . '&hl=' . $ihlang . '&lr=lang_' . $ihlang;

Lastly, within a popup, I found it best when clicking a link to request the browser to open in a new tab, since otherwise, (in chrome), I sometimes get rather strange results with text on a transparent background, seeing the TNG person page beneath the popup text.

A great mod. I really like having this quick link unobtrusively sitting rightmost  in the header, to the left of the ‘bookmark’ icon&text.  

BTW.. I didn’t get an icon,..just ‘google em’.  I think instead of $tngdomain, maybe something with $cms['tngpath']} is needed, but I couldn't figure out the right syntax in this line:

        $extext .= "<b><img src='" . $tngdomain . "mods/infoharvest/google.png' width='10' style='position:relative;margin-left:8px;'' title='Google'></b>";

Ron

Link to comment
Share on other sites

Really useful. I didn't like the settings on the google page. Your tinkering is a great help to improve. 

Odd that there is still an icon problem.  I need to address. 

Do you know a way to make an iframe link open in a new window?  I searched fruitlessly but maybe not persistently for a solution to this?

i also wanted to add a link to quickly add the site into a source citation.  But the iframe page seems to be protected unless on the same domain.  There is a way to trick the browser...but apparently it keeps evolving as the webmasters get wise to it.

Link to comment
Share on other sites

19 minutes ago, manofmull said:

line 5: %author tag is unknown

Michael,

Of course you know, just to test the mods,  you could just delete those author lines which are only supported by TNG12 and Mod Mgr 12.  You're on TNG 11.x , right?

Ron

Link to comment
Share on other sites

Scott,

If you use tags that are only supported in TNG v12, then your .cfg files should contain a v12.0.0. identifier so user know the mod s not supported on less than TNG v12

Ron's reply to Michael might be valid if the code locations do not depend on TNG version.

Link to comment
Share on other sites

Ken -

Good to know.  Thanks.

This was a mod I created way back on my version 11.  I had no idea the identifiers were used in this way. 

Live and learn.

Cheers,

Scott

 

 

Link to comment
Share on other sites

Scott,

As expected your Heading Display Jobs & Facts mod conflicts with other mods that use the function tng_DrawHeading as an anchor.

You might take a look at the Signature Display mod and see if you can save your changes in the extensions folder and use the same technique that the Signature Display mod does to implement your changes.

Mod conflicts with the CountAncestorsDescendants mod because line 48 includes a global that has been modified.   You might also be able to verify against the following line like the Signature Display mod does to insert your your code

I have not looked extensively on how you could eliminate your conflicts since I am fight mod issues myself with PHP 7.2

Link to comment
Share on other sites

Scott,

You Info Harvester mod conflicts with the Living Color Mod, so ill not install either.

Ron,

If you are testing this mods, you need to test against  a system that contains all your mods, since your mod listing shows that you also use Rick's Living Color Mod

Link to comment
Share on other sites

Scott,

A bit of humor in regards name origins  When I was living in Ohio in the mid 70s before I really got involved in genealogy I bought a Famous Roy's in history which showed Rob Roy on the list - turns out the Rob Roy is a MacGregor  😁

Link to comment
Share on other sites

46 minutes ago, Ken Roy said:

Scott,

You Info Harvester mod conflicts with the Living Color Mod, so ill not install either.

Ron,

If you are testing this mods, you need to test against  a system that contains all your mods, since your mod listing shows that you also use Rick's Living Color Mod

Ken,  Yes I have been testing with all my mods installed, on TNG 11.1.2 and 12.1b, and yes, I saw that conflict and resolved it quickly but, sorry, I forgot to post the solution here and to Scott, since it was was easy to fix.  I merely changed this location:

%location:%
$indmedia = getMedia($row,"I");
$indalbums = getAlbums($row,"I");

%end:%
%insert:after%

to this:

%location:%
$indalbums = getAlbums($row,"I");
%end:%
%insert:after%

Living color then was fine.

I was actively working with the mod I was interested in , the info_harvest, google option, and helping resolve the edit options and icon display.  This mod works fine with my other 74 mods installed, except for the living color mod, as fixed above.  All of the code for info_harvest is in one primary location in getperson.  

I shoud point out that the  Research_Link_Mod has a dropdown 'googleweb' option which produces similar results for the google search, but Scott's mod does it quicker and cleaner, IMHO.

Ron

Link to comment
Share on other sites

Michael,

OK, sorry.  Essentially, in Scott's mod cfg file, these are the lines that were changed:

lines 11-15

%location:%
$indmedia = getMedia($row,"I");
$indalbums = getAlbums($row,"I");
%end:%
%insert:after%

to

lines 11-15

%location:%
$indalbums = getAlbums($row,"I");
%end:%
%insert:after%

Living Color mod was placing code after cfg line 12.  Info_harvest was inserting after line 13 essentially, and 12 wasn't needed in info_harvest mod's location to find that line, so cfg line 12 was dropped and all was good with both mods.

Hope that helps.

Ron

 

 

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...