PDFjs Viewer Mod: Unterschied zwischen den Versionen

 
(38 dazwischenliegende Versionen von 14 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
{{restricted}}
+
{{restricted}}{{TNGmod
{{TNGmod
+
| mod_name        = {{PAGENAME}}
| mod_name        = PDFjs Viewer Mod
 
 
| mod_summary    = Change the PDF viewer from the default to PDFjs
 
| mod_summary    = Change the PDF viewer from the default to PDFjs
 
| mod_validation  =  
 
| mod_validation  =  
 
| mod_last_update = 02 Jan 2022
 
| mod_last_update = 02 Jan 2022
| download_link  = [http://www.wiese-schneckloth.com/genealogy/ccount/click.php?id=34&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} PDFjs Viewer Mod v13.1.1.2]{{Tv1311}}
+
| download_link  = For{{Tv140}}{{Tv1311}}<br />[http://www.wiese-schneckloth.com/genealogy/ccount/click.php?id=34&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} PDFjs Viewer Mod v13.1.1.2]<hr style="clear: both;"/>For{{Tv130}}<br />[http://www.wiese-schneckloth.com/genealogy/ccount/click.php?id=30&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} PDFjs Viewer Mod v13.0.0.1]
<br />[http://www.wiese-schneckloth.com/genealogy/ccount/click.php?id=30&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} PDFjs Viewer Mod v13.0.0.1]{{Tv130}}
 
 
| download_stats  = [http://www.wiese-schneckloth.com/genealogy/ccount/index.php?action=stats&groupid=9 See download statistics]
 
| download_stats  = [http://www.wiese-schneckloth.com/genealogy/ccount/index.php?action=stats&groupid=9 See download statistics]
 
| mod_author      = Martin Pannier<br />Brent Hemphill
 
| mod_author      = Martin Pannier<br />Brent Hemphill
| mod_url        = [[PDFjs Viewer Mod]] (This page)
+
| mod_url        = '''{{PAGENAME}}''' (This page)
| mod_support    = [http://tng.community/ TNG Community Forums]
+
| mod_support    = [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums]
| mod_contact    =
+
| mod_contact    = [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums]
 
| mod_version    = 13.1.1.2
 
| mod_version    = 13.1.1.2
 
| min_TNG_ver    = 13.0.0
 
| min_TNG_ver    = 13.0.0
| max_TNG_ver    = 13.1.1
+
| max_TNG_ver    = 14.0.0
 
| TNG_file_list  = showmedialib.php
 
| TNG_file_list  = showmedialib.php
 
| related_mods    =  
 
| related_mods    =  
 
| notes          = Requires the pdfjs folder to be placed in the TNG root folder.
 
| notes          = Requires the pdfjs folder to be placed in the TNG root folder.
}}
+
}}{| style="margin-right:0.5 em;" align="right"  
{| style="margin-right:0.5 em;" align="right"  
 
 
| __TOC__
 
| __TOC__
 
|}
 
|}
 
 
  
 
== Purpose of the mod ==
 
== Purpose of the mod ==
Zeile 40: Zeile 35:
 
Dutch language strings by Rob Severijns.
 
Dutch language strings by Rob Severijns.
  
 +
==Requirements==
 +
* A working TNG installation.
 +
* A backup of all affected files (see the list in the summary in the upper right corner of the page)
 +
* An installed current version of the [[Mod Manager]].
  
 
==Revision History==
 
==Revision History==
{| border="1" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
+
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 
|-
 
|-
! Version
+
! Mod Version
 +
! TNG Version
 
! Date
 
! Date
 
! Contents
 
! Contents
|-
+
 
 +
|- style="vertical-align:top;"
 
| 13.1.1.2
 
| 13.1.1.2
 +
| 13.1.1
 
| 02 Jan 2022
 
| 02 Jan 2022
|Update for TNG 13.1.1 compatibility. Dutch language strings by Rob Severijns.
+
|Update for TNG 13.1.1 compatibility.<br />Dutch language strings by Rob Severijns.
|-
+
 
 +
|- style="vertical-align:top;"
 
| 13.0.0.1
 
| 13.0.0.1
| 16 Sept 2021
+
| 13.0
|Fix issues when the path to the media is in the root or other unexpected paths. Add an option to allow for enabling the viewer all the time or only when in mobile mode.
+
| 16 Sep 2021
|-
+
|Fix issues when the path to the media is in the root or other unexpected paths.<br/>Add an option to allow for enabling the viewer all the time or only when in mobile mode.
 +
 
 +
|- style="vertical-align:top;"
 
| 13.0.0.0
 
| 13.0.0.0
 +
| 13.0
 
| 26 May 2021
 
| 26 May 2021
 
|initial release
 
|initial release
 
|}
 
|}
  
==Requirements==
+
== Conflicts and Issues==  
 +
No known conflicts.
  
* A working TNG installation.
+
==Installation==
* A backup of your TNG showmedialib.php file.
+
# Uninstall and delete previous version of this mod (if installed)
 
+
# Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
==Automated Installation==
+
# ***Extract the '''pdfjs folder''' to your '''TNG root''' folder.***
 
+
# Extract the .cfg file from the downloaded zip file into the '''mods''' folder or FTP the extracted file to your mods folder.
# Download the appropriate mod configuration package as identified in the upper right status box. 
+
# Follow the normal automated installation for Mod Manager, as shown in the example [[Mod Manager - Installing Config Files]] to install the mod.
# Extract and copy the cfg file in the zip to your '''mods''' folder.
 
# ***Extract and copy the '''pdfjs folder''' to your '''TNG root''' folder.***
 
# Follow the normal automated installation for [[Mod Manager]] mods, as shown in the example [[Mod Manager - Installing Config Files]].
 
  
 +
== In the event of a problem ==
 +
* Try using the [[Mod_Manager_-_Installing_Config_Files#Remove_Mod_Steps|Mod Manager Remove]] capability
 +
* Copy the backup of the affected files back to your TNG  directory
 +
* Contact us through the [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums].
  
== Side effects ==
+
== Uninstalling the mod ==
 +
If  you want to completely '''Remove''' (uninstall) this mod and all its tables, you should
 +
# click the '''Uninstall''' button to uninstall the mod
 +
# click the '''Delete''' button to delete the config file from the mods folder.
  
# As with most source code modifications, these changes will likely be overwritten during your next TNG revision upgrade and will need to be re-implemented. (Using the [[Mod Manager]] greatly simplifies this process).
+
== Upgrade ==
 +
*Uninstall and eventually Delete the current Mod.
 +
*Proceed as for an installation with the new Mod.
  
 +
== cust_text.php ==
  
 
+
The following custom text entries need to be created in your language, if you do not use English or Dutch for TNG Admin
=== cust_text.php ===
 
 
 
The following custom text entries need to be created in your language, if you do not use English for TNG Admin
 
  
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
Zeile 88: Zeile 99:
 
$admtext['mobile_only'] = "Mobile only";
 
$admtext['mobile_only'] = "Mobile only";
 
</syntaxhighlight>
 
</syntaxhighlight>
 
  
 
==Customizations==
 
==Customizations==
Zeile 102: Zeile 112:
 
The above buttons may be changed by using [http://www.wiese-schneckloth.com/genealogy/ccount/click.php?id=31&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} PDFjs Viewer Mod Hide Buttons v13.0.0.1] and removing any buttons from the cfg that you do not wish to be hidden from the user.  You only need this mod if you want to hide some of the default viewer buttons listed above.
 
The above buttons may be changed by using [http://www.wiese-schneckloth.com/genealogy/ccount/click.php?id=31&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} PDFjs Viewer Mod Hide Buttons v13.0.0.1] and removing any buttons from the cfg that you do not wish to be hidden from the user.  You only need this mod if you want to hide some of the default viewer buttons listed above.
  
 +
==Sites using this mod==
 +
If you download and install this mod, please add your TNG site to the table below:
  
 
+
{| border="0" cellspacing="1" cellpadding="2" class="wikitable" width="100%"
==In the event of a problem with your TNG site==
 
 
 
* Try using the [[Mod_Manager_-_Installing_Config_Files#Remove_Mod_Steps|Mod Manager Remove]] capability
 
* copy your backup showmedialib.php file to your base TNG directory
 
** all should be well now
 
 
 
== Sites using this mod ==
 
Please add your TNG site to the list if you utilize this modification!
 
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 
 
|-
 
|-
 
! URL
 
! URL
Zeile 120: Zeile 123:
 
! TNG-Version
 
! TNG-Version
 
! User-language
 
! User-language
|-
+
 
|
+
|- style="vertical-align:top;"
 
| [[User:Bhemph|Brent Hemphill]]
 
| [[User:Bhemph|Brent Hemphill]]
 
| Private Site/localhost
 
| Private Site/localhost
Zeile 127: Zeile 130:
 
| 13.1.1
 
| 13.1.1
 
| EN
 
| EN
|-
+
 
| [https://thebrownfamilytree.info The Brown Family]
+
|- style="vertical-align:top;"
 +
| [https://thebrownfamilytree.online The Brown Family]
 
| [[User:Slowjim|James Brown]]
 
| [[User:Slowjim|James Brown]]
 
| Beta tester
 
| Beta tester
| 13.0.0.0
+
| 13.1.1.2
| 13.0.3
+
| 13.1.2
 +
| EN
 +
 
 +
|- style="vertical-align:top;"
 +
| [https://alineofmalkins.com/ A Line of Malkins in NZ]
 +
| [[User:RickM|Rick Malkin]]
 +
| Private
 +
| 13.1.1.2
 +
| 13.1.1
 
| EN
 
| EN
 +
 +
|- style="vertical-align:top;"
 +
| [https://www.severijns.family/Severijns The Severijns / Timmer Familytree]
 +
| Rob Severijns
 +
| Public / Private
 +
| 13.1.1.2
 +
| 14.0.4
 +
| NL, EN
 +
 +
|- style="vertical-align:top;"
 +
|[https://sejarah-thumann.online/index.php Sejarah Thümann]
 +
|[[User:Jeffrey.thumann|Jeffrey Thümann]]
 +
|Public
 +
|13.0.0.1
 +
|13.0.3
 +
|NL,EN
 +
 +
|- style="vertical-align:top;"
 +
|[https://genealogie.helweg.me/ Helwegs Ahnen]
 +
|[https://tng.lythgoes.net/wiki/index.php/User:Helwega Andreas Helweg]
 +
|Public
 +
|13.0.0.1
 +
|13.1
 +
|DE,EN,NL,DA
 +
 +
|- style="vertical-align:top;"
 +
|Jones Localhost
 +
|Michael T. Jones
 +
|Private
 +
|13.1.1.2
 +
|13.1.2
 +
|EN
 +
 +
|- style="vertical-align:top;"
 +
|[https://arenknapp.se/tng/index.php Vår Familjehistoria]
 +
|[https://tng.lythgoes.net/wiki/index.php/User:Larsa52 Lars Arén]
 +
|Public
 +
|13.1.1.2
 +
|14:0.4
 +
|SE,EN,DE
 +
 +
|- style="vertical-align:top;"
 +
|[https://botebygden.se/index.php Botebygden Community Research]
 +
|[[User:Larsa52|Lars Arén]]
 +
|Public
 +
|13.1.1.2
 +
|13.1.2
 +
|SE
 +
 +
|- style="vertical-align:top;"
 +
|[https://www.sherylaperry.com Discovering My Ancestors]
 +
|[[User:shylper|Sheryl Perry]]
 +
|Public
 +
|13.1.1.2
 +
|14.0
 +
|EN
 
|-
 
|-
| [https://severijns.family/ Genealogy of a Dutch East-Indies Family]
+
|[https://slekt.solem.info Solem Genealogy]
| Rob Severijns
+
|[[User:JTS|Jan-Thore Solem]]
| Private
+
|Private
| 13.0.0.1
+
|13​.1​.1​.2
| 13.1
+
|14.0.2
| NL/EN
+
|EN, NO
 +
 
 +
|- style="vertical-align:top;"
 +
| [https://www.genealogywings.com/ MOTYER Family Genealogy]
 +
| [[User:JMM|John Mark Motyer]]
 +
| Public
 +
| [https://www.genealogywings.com/jmm_pages/My-TNG-mods.php See here]
 +
| [https://www.genealogywings.com/jmm_pages/My-TNG-mods.php See here]
 +
| EN
 
|-
 
|-
 +
|[https://sorrellnotes.com Sorrell Notes Genealogy]
 +
|[[User:JP Ford|Joel Ford]]
 +
|Public
 +
|13​.1​.1​.2
 +
|14.0.3
 +
|EN
 
|}
 
|}
  
 +
 +
[[Category:Mods for TNG v14]]
 
[[Category:Mods for TNG v13]]
 
[[Category:Mods for TNG v13]]
 +
 +
[[Category:showmedialib.php mods]]
 +
[[Category:admin_genconfig.php mods]]
 +
[[Category:admin_updateconfig.php mods]]
 +
[[Category:ajx_tnginstall.php mods]]
 +
 +
[[Category:admintext.php English mods]]
 +
[[Category:admintext.php Dutch mods]]

Aktuelle Version vom 3. März 2024, 14:13 Uhr

Restricted Downloads of PDFjs Viewer Mod 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 have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox


Caution


PDFjs Viewer Mod
Summary Change the PDF viewer from the default to PDFjs
Validation
Mod Updated 02 Jan 2022
Download link For
TNG 14.0
TNG 13.1.1

PDFjs Viewer Mod v13.1.1.2
For
TNG 13.0

PDFjs Viewer Mod v13.0.0.1
Download stats See download statistics
Author(s) Martin Pannier
Brent Hemphill
Homepage PDFjs Viewer Mod (This page)
Mod Support TNG Community Forums
Contact Developer TNG Community Forums
Latest Mod 13.1.1.2
Min TNG V 13.0.0
Max TNG V 14.0.0
Files modified
showmedialib.php
Related Mods
Notes
Requires the pdfjs folder to be placed in the TNG root folder.

Purpose of the mod

This TNG modification changes the default PDF viewer from the browser default to PDFjs. The push to change the default viewer was driven by the need to be able to view multiple pages, or scroll down a page in Android and iOS phone and tablet devices.

  • This change allows mobile and tablet devices to view PDF files in a viewer that uses page viewing and other PDF options that are not necessarily available with the default browser option.
  • This change also allows for some customization of button options for those administrators wishing to control the PDF viewing options with the customization listed below.

Developer

The PDF Viewer Mod was originally developed by Martin Pannier.
The PDFjs Viewer Mod was created from the original PDF Viewer Mod to work in TNG 13 with a newer version of PDFjs by Brent Hemphill.
Jim Brown did beta testing to check the functionality under additional setup configurations. Dutch language strings by Rob Severijns.

Requirements

  • A working TNG installation.
  • A backup of all affected files (see the list in the summary in the upper right corner of the page)
  • An installed current version of the Mod Manager.

Revision History

Mod Version TNG Version Date Contents
13.1.1.2 13.1.1 02 Jan 2022 Update for TNG 13.1.1 compatibility.
Dutch language strings by Rob Severijns.
13.0.0.1 13.0 16 Sep 2021 Fix issues when the path to the media is in the root or other unexpected paths.
Add an option to allow for enabling the viewer all the time or only when in mobile mode.
13.0.0.0 13.0 26 May 2021 initial release

Conflicts and Issues

No known conflicts.

Installation

  1. Uninstall and delete previous version of this mod (if installed)
  2. Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
  3. ***Extract the pdfjs folder to your TNG root folder.***
  4. Extract the .cfg file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
  5. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.

In the event of a problem

Uninstalling the mod

If you want to completely Remove (uninstall) this mod and all its tables, you should

  1. click the Uninstall button to uninstall the mod
  2. click the Delete button to delete the config file from the mods folder.

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new Mod.

cust_text.php

The following custom text entries need to be created in your language, if you do not use English or Dutch for TNG Admin

		$admtext['pdfjs_viewer'] = "Enable pdfjs Viewer";
		$admtext['mobile_only'] = "Mobile only";

Customizations

Under Administration >> Setup >> Configuration >> General Settings >> Media >> Enable pdfjs viewer there is the option to enable PDFjs as the viewer only for mobile mode, or always.

Although the default buttons in the viewer generally work well, some buttons may be customized to be hidden

  • Open
  • Download
  • Print
  • Bookmark

The above buttons may be changed by using PDFjs Viewer Mod Hide Buttons v13.0.0.1 and removing any buttons from the cfg that you do not wish to be hidden from the user. You only need this mod if you want to hide some of the default viewer buttons listed above.

Sites using this mod

If you download and install this mod, please add your TNG site to the table below:

URL User Note Mod-Version TNG-Version User-language
Brent Hemphill Private Site/localhost 13.1.1.2 13.1.1 EN
The Brown Family James Brown Beta tester 13.1.1.2 13.1.2 EN
A Line of Malkins in NZ Rick Malkin Private 13.1.1.2 13.1.1 EN
The Severijns / Timmer Familytree Rob Severijns Public / Private 13.1.1.2 14.0.4 NL, EN
Sejarah Thümann Jeffrey Thümann Public 13.0.0.1 13.0.3 NL,EN
Helwegs Ahnen Andreas Helweg Public 13.0.0.1 13.1 DE,EN,NL,DA
Jones Localhost Michael T. Jones Private 13.1.1.2 13.1.2 EN
Vår Familjehistoria Lars Arén Public 13.1.1.2 14:0.4 SE,EN,DE
Botebygden Community Research Lars Arén Public 13.1.1.2 13.1.2 SE
Discovering My Ancestors Sheryl Perry Public 13.1.1.2 14.0 EN
Solem Genealogy Jan-Thore Solem Private 13​.1​.1​.2 14.0.2 EN, NO
MOTYER Family Genealogy John Mark Motyer Public See here See here EN
Sorrell Notes Genealogy Joel Ford Public 13​.1​.1​.2 14.0.3 EN