The default scroll mod cfg file uses the same settings for all templates. Scroll Mod TS is a custom version that uses separate configuration settings for each template.

--- Installing Scroll Mod TS ---

Uninstall the scroll_mod_v15.0.0.1.cfg file, if it is installed, and move the file to the mods/scrollmod_v15.0.0.1 folder.
This prevents having to upload the file again should you decide to use that version again.
Then copy the scroll_mod_ts_v15.0.0.1.cfg file to the mods folder. Proceed with a normal installation.

After installing Scroll Mod TS, REFRESH (Windows Ctrl+F5 | Mac command+R) the page to reload the style sheets (css files). Otherwise the buttons may be large and/or in the wrong position.

Mod options operate the same way in both cfg files except this version stores settings in each template. To change options for another template make that template active.
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 TS Options. Then change the position of the scroll buttons, if needed.


Custom and GWT templates can be added by modifying three sections of the scroll_mod_ts_v15.0.0.1.cfg file as follows:

When adding templates, keeping template numbers in order sequentially makes searching easier.

First, edit the *** Configuration Files for each Template *** section

Place the code below after the last line in this section. Change X to the template number to be added.

%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. Change X, in two places, to the template number to be added.

************************
%textexists:templateX
$templatenum = "X"
%end:%




Third, edit the ****Scroll Mod Template Configurations *** section

Place the code below after the last line in this section. Change X, in four places, to the template number to be added.

************ Template X ************
%label:templateX%
%target:templates/templateX/scroll_template_config.php%
%fileoptional:%
// Vertical scroll distance
%parameter:$uv:90%
%range:10:100%
%desc:<span style="font-size:1.5em;"><b>TEMPLATE X</span><br/><br/>
<b>Vertical Scroll Distance:<br/>
Values are percent of display height.</b><br/>
Valid range 10 to 100<br/>
Default: (90)<br/>%
%end:%

// Horizontal scroll distance
%parameter:$uh:90%
%range:10:100%
%desc:<b>Horizontal Scroll Distance:<br/>
Values are percent of page width.</b><br/>
Valid range 10 to 100<br/>
Default: (90)<br/>%
%end:%

// Vertical scroll button position
%parameter:$button_bottom:100%
%range:0:1000%
%desc:<b>Vertical Button Position:<br/>
Values are in pixels</b><br/>
Valid range 0 to 1000<br/>
Default: (0)<br/>%
%end:%

// Horizontal scroll button position
%parameter:$button_right:0%
%range:0:500%
%desc:<b>Horizontal Button Position:<b><br/>
Values are in pixels</b><br/>
Valid range 0 to 500<br/>
Default: (0)<br/>%
%end:%

// Responsive Horizontal button position
%parameter:$responsive:false%
%choices:true,false%
%desc:<b>Position buttons using display width:</b><br/>
Yes: true<br/>
No: false<br/>
Default: (false)<br/>%
%end:%

// Scroll charts and select files
%parameter:$select_files:false%
%choices:true,false%
%desc:<b>Scroll Charts and Select Pages:<br/>
Limit scrolling to files listed in the $scroll_select array</b><br/>
Yes: true<br/>
No: false<br/>
Default: (false)<br/><br/>
Edit the scrollconfig.php in the TNG folder to add or remove files<br/>%
%end:%

// Hide scroll buttons on home page
%parameter:$nohomepage:0%
%choices:true,false%
%desc:<b>Hide Scroll Buttons on Home Page:</b><br/>
Yes: true<br/>
No: false<br/>
Default: (false)<br/>%
%end:%
%goto:end%
*************************************




If a template's configuration file is missing, a warning message will appear on the lower part of the display when that template is active.

Scroll Mod Information

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.