TNG Templates 24567 Mod

steven
Posts: 133
Joined: Sun Oct 01, 2017 3:08 pm

TNG Templates 24567 Mod

Post by steven »

TNG templates 2, 4, 5, 6, and 7 present page content inside tables. This makes the header expand off the screen to the right if page content overflows horizontally. Additionally scroll mod will not scroll these templates horizontally. If you are not using one of these templates do not install the mod.

The mod modifies the templates so page content is loaded inside a div instead of a table. This separates the page header from page content allowing the header to stay on the page when content overflows. The two new files copied to each template are smtopmenu.php and smfooter.php. The mod also adds a few classes to the existing templatestyle.css file for each template.

When the mod is first installed, pages will remain the same until the Custom Header and Custom Footer are changed.
To use the new files go to TNG admin. Select Setup -> General Settings -> Site Design and Definition

Change topmenu.php to smtopmenu.php
Change footer.php to smfooter.php

Each header/footer combination are sets so if you change one and not the other the header or footer may not appear.

This is template 2 when a wide chart is displayed:

Image

This is template 2 after installing the mod and changing the topmenu and footer file names.

Image

This is template 6 when a wide chart is displayed:

Image

 
This is template 6 after installing the mod and changing the topmenu and footer file names.

Image


for TNG v14.0.3
TNG WIKI download link

Revisions:
25 Nov 2023 - Removed script in template 4 to align divs
templates_24567_mod_v14.0.3.1a.zip


If you are unhappy with the results, simply reverse the installation procedure and delete the mod.
 
You do not have the required permissions to view the files attached to this post.