Remonter

Enlever l'option de télécharger des CSV
 

Dans TNG 9 on peut télécharger le résultat des rapports en format CSV. Cette procédure permet d'enlever cette option selon le Wiki TNG de http://tng.lythgoes.net/wiki/index.php?title=CSV_Reports_for_Admin_only

 

Voici un résumé de la procédure au cas où.

Introduction

TNG V9 adds a button on the Reports page that when clicked will generate a comma separated value (CSV) report file. There are no options provided to control whether this button is available or not.

Purpose of Mod

This mod was created to remove the Comma-delimited CSV Report button except to those who have the Administrator privilege. Note that the administrator privilege is not limited only to the TNG Administrator, but includes those with Editor roles.

This mod was developed based on the email reply provided by Robert Collingwood on the tnguser2 list on how to suppress the button.

Mod Developer

Ken Roy based on the email reply provided by Robert Collingwood

Installation

  1. Download the mod from the Mod Summary in the upper right hand corner
  2. Extract the downloaded zip file in your mods folder, or upload the extracted file to your mods folder
  3. Install the mod using the Mod Manager install capability

Visualization

TNG V9 distributed software shows, which after installing this mod, will only be shown to those with admin privileges

 

CSV Reports for Admin only
Summary Removes the CSV Reports except for the TNG Administrator
Download link csv_reports_admin_v9.0.0.0.zip
Author(s) Ken Roy
Mod Support TNG Forums
Latest Mod V9.0.0.0 for TNG V9
Min TNG V 9.0.0
Max TNG V 9.0.0
Files modified showreport.php
Related Mods Suppress csvReport Mod

 

Voici la procédure.   

%name:CSV Reports for Admin only%
%version:V9.0.0.0%
%description:This mod removes the Create CSV report option for regular users of the site and allows it for the Administrator only.<br /><br />Mod Develop is Ken Roy. <br /><br />%

%target:showreport.php%

%location:%
                 echo "<p>{$text['matches']} $offsetplus {$text['to']} $numrowsplus {$text['of']} $totrows &nbsp; <a href=\"{$showreport_url}reportID=$reportID&csv=1\" target=\"_blank\" class=\"snlink\">&raquo; {$text['csv']}</a></p>";
%end:%
%replace:%
                echo "<p>{$text['matches']} $offsetplus {$text['to']} $numrowsplus {$text['of']} $totrows &nbsp;";
                if ($allow_admin)
                          echo "<a href=\"{$showreport_url}reportID=$reportID&csv=1\" target=\"_blank\" class=\"snlink\">&raquo; {$text['csv']}</a>";
                echo "</p>";
%end:%

Merci Ken.

 

 

Au besoin Cliques ici pour m'envoyer un courriel.

Dernière modification : 11 janvier 2017.