This version was created for those that either use template switching or periodically change templates. The default scroll mod configuration file applies the same settings regardless of the template used. This version allows customizing scroll mod options for each template separately.
--- Installing Scroll Mod TS ---
When scroll mod is first installed, scroll_mod_v15.0.0.3.cfg is the default configuration file. To use this custom version uninstall the scroll_mod_v15.0.0.3.cfg version file. Copy the scroll_mod_ts_v15.0.0.3.cfg file from the scroll mod support folder to the mods folder and proceed with a normal installation. If you want to clean up the mod listing, delete the scroll_mod_v15.0.0.3.cfg from the mods folder. DO NOT delete any cfg files from the scroll mod support folder. The support folder contains both cfg file versions so you can later switch to either version by copying the desired version back to the mods folder.After installing Scroll Mod TS, REFRESH the page (Windows Ctrl+F5 | Mac command+R) to reload the style sheets (css files). Otherwise the buttons will be large and in the wrong position.
Mod options operate the same way in both cfg files except this version stores settings in each template folder. To change options for another template make that template active.
After the mod is installed the status will indicate Installed [Options] followed by the active template number.
To make a template active goto Admin >> Setup >> Template Settings. Select the template you want to modify and then select Save and Exit.
Return to mod manager and select the Scroll Mod Options. Then change the scroll behavior, distance and/or position of the scroll buttons, if needed.
Button color, size and shape can be customized for each template by editing each template's mytngstyle.css file. Refer to the scrollpage-info.css file in the mod support folder for class elements to modify.
Custom and GWT templates can be added by modifying three sections of the scroll_mod_ts_v15.0.0.3.cfg file as follows:
When adding templates, keep the template numbers in order sequentially to make searching easier.
First, edit the *** Configuration Files for each Template *** section
Place the code below after the last line in this section and before the *** End of Configuration Files for each Template *** line.%copyfile2:@scrollmod_v15.0.0.1/scroll_template_config.php:templates/templateX/scroll_template_config.php%
Second, edit the *** Search for current template *** Section
Place the code below after the last line in this section and before the *** End of Search for current template *** line.
************************
%textexists:templateX
$templatenum = "X"
%end:%
Third, edit the ****Scroll Mod Template Configurations *** section
Place the code below after the last line in this section and before the *** End Scroll Mod Template Configurations *** line.
************ Template X ************
%label:templateX%
%target:templates/templateX/scroll_template_config.php%
%fileoptional:%
%goto:configuration%
***********************************
If a template's configuration file is missing, a warning message will appear on TNG pages at the lower part of the display when that template is active.
When editing mod options, the template number is displayed in the right column of mod manager. If you are using a custom template and the template number does not appear,
uninstall the mod and add the required template lines in the cfg file as shown in the instructions above.
UPGRADING THE MOD: Code for custom or GWT templates must be added to the scroll_mod_ts_v15.0.0.3.cfg file before installing the mod.
To completely remove the mod, select uninstall. If the scroll mod folder remains, manually delete the folder. Go to the TNG root folder and manually delete the scrollconfig.php file.