Template Switch
![]() |
Downloads of Template Switch are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account | ![]() |
![]() |
If you have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox | ![]() |
TemplateSwitch | |||||
---|---|---|---|---|---|
Summary | Enables Template Switching on TNG User Pages. | ||||
Validation | |||||
Mod Updated | 05 Feb 2025 | ||||
Download link | For
For
For
For
| ||||
Download stats | |||||
Author(s) | Ron Krzmarzick | ||||
Homepage | Roots & Relatives Remembered | ||||
Mod Support | TNG Community Forums | ||||
Contact Developer | TNG Community Forums | ||||
Latest Mod | 15.0.0.1 for TNG 15.0, 14.0.0.0 for TNG 14.0, 13.0.0.1 for TNG 13.0, 12.3.0.1 for TNG 12.3 | ||||
Min TNG V | 12.3 | ||||
Max TNG V | 15+ | ||||
Files modified | genlib.php begin.php | ||||
Related Mods | |||||
Notes |
Purpose of the mod
This TNG modification adds template switching capability to all TNG pages. This mod has been used by the author to switch templates on any page while testing mods with TNG's templates (TNG14 has 21, TNG 13 has 20, TNG 12.3 has 18). It could also be used to offer multiple templates to users. It permits changing templates quickly without having to go to the Admin:Setup:Template Setting page. The template selection button is centered at the top of the footer. In lieu of a full preview, color aids are added to the template drop list if you forget the template number but remember a template's primary color.
Developer
This mod was developed by Ron Krzmarzick. Basic idea and help from Jan B. Hansson in 2016.
Requirements
- A working TNG installation.
- A backup of all affected files (see the list in the summary to the right)
- An installed current version of the Mod Manager.
Revision History
Mod Version | TNG Version | Date | Contents |
---|---|---|---|
15.0.0.1 | 15 | 05 Feb 2025 | Updated for TNG15 |
14.0.0.0 | 14 | 07 Nov 2022 | Updated for TNG14, template 224 now template 21 |
13.0.0.1 | 13 | 17 Mar 2021 | Fix Session Start issue .. thanks to Brent Hemphill |
12.3.0.1 | 12.3 | 07 Nov 2020 | Template Switcher, initial release |
Conflicts and Issues
No known conflicts.
Installation
- Uninstall and delete previous version of this mod (if installed)
- Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
- Extract the file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
- Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.
In the event of a problem
- Try using the Mod Manager Remove capability.
- Copy the backup of the affected files back to your TNG directory.
- Retry installing mod.
- Contact us through the TNG Community Forums.
Uninstalling the mod
If you want to completely Remove (uninstall) this mod and any tables if created, you should
- click the Uninstall button to uninstall the mod
- click the Delete button to delete the config file from the mods folder.
Upgrade
- Uninstall and eventually Delete the current Mod.
- Proceed as for an installation with the new Mod.
Mod Requirements
In Admin:Setup, set Enable Template Selection = 'Yes'
Note:The mod assumes all the default TNG templates are installed and all associated template folders are present. If not, modify the form options to match your installed tempplate folders in the _template_select.php module found in the mod support folder. Selecting a template which doesn't exist can result in a session restart being required. The mod does not alter the setting in Admin:Setup:Templates, but when the session is logged off, will return to that default template. The TNG admin_setup.php is the only Admin page that will not be affected by a template switch.
The only difference in the mod version 12.3.0.0 is the template droplist has 18 templates configured instead of 20.
version 14.0.0.0 will switch between all of TNG's 21 templates.
Edit Options
Usage can be restricted by session type:
- admin user only = 1
- registered users only = 2
- open access = 3
- Default = 2
Visualization
The following screen captures show the changes made by the mod:
Illustration of Template Switch select box position in footer. |
![]() |
Illustration of template drop list. |
![]() |
Sites using this mod
If you download and install this mod, please add your TNG site to the table below:
URL | User | Note | Mod-Version | TNG-Version | User-language | |
---|---|---|---|---|---|---|
Roots & Relatives Remembered | Ron Krzmarzick | Mod's Developer | 15.0.0.1 |
|
EN,CS,DE | |
Treichel-Familie.de | Andreas Treichel | Public & Private | 15.0.0.1 |
|
DE,EN,FR,ES,PL | |
LookingBackwards - All Our Relations | Ashleigh Mitchell | Public | 13.0.0.1 | 13.0.4.4 | EN | |
MOTYER & BENJAMIN Family Genealogy (Bermuda branches) | John Mark Motyer | Public site | See here | See here | EN |