Template Switch

From TNG_Wiki
Jump to: navigation, search
Restricted 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 Restricted
Caution If you are having trouble downloading with the Google Chrome browser, try another browser Caution


Template Switch
Summary Enables Template Switching on TNG User Pages.
Validation
Mod Updated 07 Nov 2020
Download link template_switch_v13.0.0.0.zip
‎for
TNG 13.0

template_switch_v12.3.0.0.zip
‎for
TNG 12.3.0

Download stats
Author(s) Ron Krzmarzick
Homepage Roots & Relatives Remembered
Mod Support TNG Community Forums
Contact Developer
Latest Mod 13.0.0.0 for TNG 13.0 , 12.3 for TNG 12.3
Min TNG V 13.0
Max TNG V 13.0.1
Files modified
Related Mods
Notes


Purpose of the Mod

Template Switch 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 (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.

Known Issue

On some sites the mod installs OK, but selecting a template is ineffective. Until this is fixed, a possible workaround is to install the error reporting Prolog_Mod, which, for reasons unknown, resolves the issue.

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.

Edit Options

Usage can be restricted by session type:

  • admin user only = 1
  • registered users only = 2
  • open access = 3
  • Default = 2

Languages

English

TNG Modules Impacted

The following TNG files are modified.
genlib.php, begin.php
Note that no template files are modified.

Installation

  • Unzip the received file directly in your mods folder, usually 'mods', sub directory of your TNG installation or root folder.
  • Use Mod Manager to Install the Mod

Known Mod Conflicts

None at release.

In Event of a Problem

Use Mod Manager to Uninstall the mod.

Visualization of this mod

Illustration of Template Switch select box position in footer.
Template switch1.jpg
Illustration of template drop list.
Template switch2.jpg

Sites using this mod

If you download and install this mod, please add your TNG site to the table below:
If you have any problems, private message me on the forum.

URL User Note Mod-Version TNG-Version User-language
Roots & Relatives Remembered Ron Krzmarzick Mod's Developer v13.0.0.0 v13.0.1 EN,CS,DE