upavadi / TngApi

Current Version, 3.3.3 released on 29 July 2022. The TngApi plugin for Wordpress is a stand-alone plugin. It integrates smoothly with TNG to display genealogy data in Wordpress pages
http://www.upavadi.net
0 stars 2 forks source link

TngApi Plugin for Wordpress

Download

You can find the latest stable version (3.3.3) in the releases section

License

The code is licenced under the MIT licence

Introduction

The TngApi plugin for Wordpress is a stand-alone plugin. It integrates smoothly with TNG ( The Next Generation of Genealogy Sitebuilding ) to display genealogy data in Wordpress pages.

The plugin has several useful features:

What’s New in TngApi Version 3

This plugin does not:

Requirements

Change Log

Installation

This plugin assumes that:

Setup

You will need the connection settings for your TNG Database handy.
If you are not sure, you can see them in config.php, in your tng directory.
After installing the plugin you can find the settings page in the Wordpress>Admin Panel>settings>TngApi.
Here you'll need to specify:

Select Remove User Submitted data if you are upgrading or permanently removing TngApi plug-in.

Shortcodes

There are a number of useful shortcodes for you to play with. You can find them all in the plug-in>upavadi>shortcodes directory.

1 [upavadi_pages_familysearch]Shortcode used on a page to display results of Name-Search Widget.
2 [upavadi_pages_familyuser] Family page for Person
3 [upavadi_pages_familyform] Update details of Persons Family
4 [upavadi_pages_addfamilyform] Add Details of Spouse, children and notes
5 [upavadi_pages_personnotes] Add Notes for Person
6 [upavadi_pages_birthdays] Birthdays Report
7 [upavadi_pages_manniversaries] Marriage Anniversaries Report
8 [upavadi_pages_danniversaries] Death Anniversaries Report
9 [upavadi_pages_submit-image] Upload Image
10 [upavadi_pages_userfamilysheet] Display Pending Submissions submitted by the logged in user.

Custom Shortcodes

By placing the directory outside the plugin, your custom shortcodes would not be overwritten on any future updates.

Wordpress Pages

1 search To enable search widget, Family Search, to display data. Page can also be used for search Required for the widget
2 family To enable search widget, Family Search, to display data. Page can also be used for search Required for the widget
3 thank-you Submission Acknowledge Page. Displays Thank you message and details of changes submitted by the user Required
4 events An events page to display reports of birthdays, anniversaries and death anniversaries for the month. Give it an appropriate name.I have named this page, events. Optional
5 images An image upload page. Give it an appropriate name. Optional

The family page may be populated with 5 shortcodes using the TAB shortcode.

Advantage of placing these shortcodes is that all 5 shortcodes are synchronized to the logged in user and same personID.

There are 3 shortcodes for displaying events for the current month. Place these 3 shortcodes on one page, using tabs.

Upload User Images

Upload a Profile Image

Profile image upload is included in the family page. Here the user does not need to enter any information. The profile image is saved with PersonID. An Email is generated to the Administrator on upload.

Submitting Changes in Family Page

Once the User has submitted changes, a thank-you page is displayed which will show changes submitted by the user.

Approve User Submissions

Caveat: In my last test with TNG V12, the updates worked but I am not comfortable ( and not that experienced ) with the way I have to update the TNG database. I expect it would work with V13 as there are no changes to the tables that would impact on this routine. But I have not tested the update process.
Please have look at TNG Submits>Please Read, in worpress Dashboard for fuller explanation.

Event Reports

There are 3 reports which can be placed in a Wordpress page. If you would like to display these reports, create a page for the templates. There are three shortcodes for Birthdays, Marriage Anniversaries and Death Anniversaries. Each shortcode has Month and year selector. By placing these shortcodes in one page, month selection would apply to all 3 templates.