Difference between revisions of "Public Access Control"

From TNG_Wiki
Jump to navigation Jump to search
(Display change)
 
(181 intermediate revisions by 31 users not shown)
Line 1: Line 1:
{{TNGmod
+
{{V12_cust_text}}{{TNGmod
| mod_name        = Access panel
+
| mod_name        = {{PAGENAME}}
 
| mod_summary    = Introduces a panel in <i>General Settings</i> to restrict public access to selected parts of your TNG system.
 
| mod_summary    = Introduces a panel in <i>General Settings</i> to restrict public access to selected parts of your TNG system.
 
| mod_validation  = The mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]
 
| mod_validation  = The mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]
| download_link = for {{Tv1011}}[http://ccount.ojay.de/click.php?id=43 Access_panel_mod_v10.1.1.Beta8.zip]
+
| mod_last_update = 22 Oct 2023
| download_stats = [http://ccount.ojay.de/index.php?action=stats&id=43 Access panel v10.1.1.Beta8]
+
| download_link   = For{{Tv1403}}[[Media:Public_Access_Control_v14.0.3.3.zip|Public_Access_Control_v14.0.3.3.zip]]<hr/>For{{Tv1401}}[[Media:Public_Access_Control_v14.0.1.0.zip|Public_Access_Control_v14.0.1.0.zip]]<hr/>For{{Tv140}}[[Media:Public_Access_Control_v14.0.0.0.zip|Public_Access_Control_v14.0.0.0.zip]]<hr/>For{{Tv1310}}[[Media:Public_Access_Control_v13.1.0.0.zip|Public_Access_Control_v13.1.0.0.zip]]<hr/>For{{Tv1304}}[https://xerxx.se/click3/click.php?id=38&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Public_Access_Control_v13.0.4.0.zip]<hr/>For{{Tv130}}[https://xerxx.se/click3/click.php?id=37&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Public_Access_Control_v13.0.0.4.zip]<hr/>For{{Tv1230}}[[Media:public_access_control_v12.3.0.3c.zip|public_access_control_v12.3.0.3c.zip]]<hr />For{{Tv1210}}[[Media:public_access_control_v12.1.0.2.zip|public_access_control_v12.1.0.2.zip]]<hr />For{{Tv120}}[https://xerxx.se/click3/click.php?id=36&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Public_access_control_mod_v12.0.0.1.zip]<hr/>For{{Tv1111}}[https://xerxx.se/click3/click.php?id=35&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Public_access_control_mod_v11.1.1.3b.zip]<hr/>For{{Tv110}}[https://xerxx.se/click3/click.php?id=34&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Public_access_control_mod_v11.0.0.3b.zip]<hr/>For{{Tv1012}}[https://xerxx.se/click3/click.php?id=33&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} Public_access_control_mod_v10.1.2.3.zip]
| mod_author      = [[User:XerxX|Erik Hoppe]]
+
<!-- for {{Tv1011}}{{Tv1010}} OBSOLETE! Cannot be downloaded!<hr/>for {{Tv1003}} OBSOLETE! Cannot be downloaded!<hr/>for {{Tv1002}}{{Tv1001}}{{Tv100}} OBSOLETE! Cannot be downloaded! -->
| mod_url        = [[Access panel]] (this page)
+
| download_stats = [https://xerxx.se/click3/index.php?action=stats&groupid=15 Public Access Control prior to TNG v14]
| mod_support    = [https://xerxx.se/modSupport/index.php?mod=8 My Mod Support]
+
| mod_author      = [[User:XerxX|Erik Hoppe]]<br>[[User:jrueger|Jeff Rueger]] now updates the CFG file so that it can be installed on new versions of TNG
| mod_contact    = [https://xerxx.se/modSupport/index.php?mod=8 My Mod Support]
+
| mod_url        = '''{{PAGENAME}}''' (This page)
|  mod_version    = 10.1.1.Beta8
+
| mod_support    = [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums:  TNG Specific - Code Discussion - Addons]
| min_TNG_ver    = 10.1.1
+
| mod_contact    =  
| max_TNG_ver    = 10.1.1
+
| mod_version    = 14.0.3.3 for TNG 14.0.3<br/>14.0.0.0 for TNG 14.0<br/>13.1.0.0 for TNG 13.1.0<br/>13.0.4.0 for TNG 13.0.4 and PHP 8.0<br/>13.0.0.4 for TNG 13.0<br/>12.3.0.3b for TNG 12.3<br/>12.1.0.2 for TNG 12.1<br/>12.0.0.1 for TNG v12.0<br/>11.1.1.3b for TNG v11.1.1<br/>11.0.0.3b for TNG v11.0.x<br />10.0.0.3 for TNG v10.0.0 - 10.0.2<br/>10.0.3.3 for TNG v10.0.3<br/>10.1.0.3 for TNG v10.1.0 - 10.1.1<br/>10.1.2.3 for TNG v10.1.2 - 10.1.3
| TNG_file_list  = See [[Access_panel#TNG_Modules_Impacted|TNG Modules Impacted]]
+
| min_TNG_ver    = 10.0.0
 +
| max_TNG_ver    = 14.0.3
 +
| TNG_file_list  = See [[Public_Access_Control#TNG_Modules_Impacted|TNG Modules Impacted]]
 
| related_mods    = [[Restrict_Access_mod]],<br/>[[Media_Privacy_Mod]],<br/>[[Restrict_Image_Preview]]<br/>all by Graham Chamberlain
 
| related_mods    = [[Restrict_Access_mod]],<br/>[[Media_Privacy_Mod]],<br/>[[Restrict_Image_Preview]]<br/>all by Graham Chamberlain
 
| notes          = Author of '''[https://xerxx.se/tcb TNG Colouring Book]'''<br/>Mods by me: [[User:XerxX|At my user page]].
 
| notes          = Author of '''[https://xerxx.se/tcb TNG Colouring Book]'''<br/>Mods by me: [[User:XerxX|At my user page]].
}}
+
}}{| style="margin-right:0.5 em;" align="right"  
{| style="margin-right:0.5 em;" align="right"  
 
 
| __TOC__
 
| __TOC__
 
|}
 
|}
 
== Preface ==
 
== Preface ==
  
This is a compilation of my mods [[AccessRestriction]] and [[AccessRestriction_More]], made for TNG v10.1.1.
+
These mods were formerly known as '''Access Panel Beta...''' and are a compilation of my mods [[AccessRestriction]] and [[AccessRestriction_More]], done for TNG v10.
 
 
<span style="color: Red">This mod makes both the mods obsolete for use with TNG '''v10.1.1'''</span><br/>They '''must be uninstalled and removed''' from your '''mods''' folder before installing this mod.
 
 
 
As this mod doesn't make any database calls it '''may''' be possible to use it in earlier TNG versions.<br/>Please report if you try it.
 
 
 
  
 +
These mods make all the above mods obsolete for use with TNG '''v10'''.
 +
<!-- <span style="color: Red"><big>'''PLEASE NOTE''' that mod v10.0.0.2 is not tested live.</big></span> '''Report wanted!''' -->
  
 
== Purpose of the mod ==
 
== Purpose of the mod ==
 +
Introduces a panel in '''Administration &gt;&gt; Setup &gt;&gt; General Settings:''' The '''''Public Access''''' panel, where you can select which parts of your TNG system that you want to hide from the ''Public Guests'' (or require a login), while keeping permissions and restrictions for your logged in users intact.<br/>Corresponding Drop-Down menu items will also be protected while '''static menus''' will not be visually affected but a selection will re-direct to the ''Log In page''.
  
Introduces a panel in '''Set Up >> General Settings:''' The '''''Access''''' panel where you can select which parts of your TNG system that you want to hide from the ''Public Guests'' or require a login, while keeping permissions and restrictions for your logged in users intact.
+
This mod enjoys the company of my [[Collapsible_Standard_Events]] mod or [[User:Jefr58|Jeff Robison's]] [[Show/Hide_Standard_Events]] mod. (See [[Public_Access_Control#Edit_option:_Collapsible_Standard_Events|Edit Option]] below)
 
 
 
 
== Why &quot;Beta&quot;? ==
 
 
 
The main purpose of posting this version of the mod is that I hope to have reports of '''failure''' and '''successes''' when it is used with other mods.
 
 
 
This mod makes lots of changes throughout your TNG system and there will, inevitably I think, be conflicts with other mods.<br/>If I'm alerted of those mods I will try to modify the code to suit them too (and/or talk to the mod maker).
 
 
 
I would also like to know if you have success or failure installing the mod in a TNG v10.'''0'''.x environment.
 
 
 
  
 
== Developer ==
 
== Developer ==
 +
This mod was developed by Erik Hoppe.<br/>See '''Mod Support''' in the data box top right.<br/>(A list of all my mods is found at [[User:XerxX|my user page]])
  
This mod was developed by [[User:XerxX|Erik Hoppe]]
+
This mod is being maintained by [[User:jrueger|Jeff Rueger]] who is updating the CFG file so that it can be installed on new versions of TNG (currently updated for TNG v14.0).  No new functionality is being added.  Support from Jeff Rueger is limited to the CFG file updates.
  
 +
TNG v12.1 was updated by [[User:JPB|Jürgen P. Bourdeaux]], [[User:Tngrlkrz|Ron Krzmarzick]], [[User:Bhemph|Brent Hemphill]] who resolved the issue with Show Photo in single row change in TNG 12.1 and resolved the conflict with [[Mobile Site Enhancements]]), and [[User:KenRoy|Ken Roy]] who resolved the conflict with [[Regroup Person Profile]])
  
 
== Credits ==
 
== Credits ==
 +
My sincere '''Thank You''' to [[User:Henny|Henny Savenije]] for his wonderful patience, suggestions and testing of this mod.<br/>'''And likewise''' to Martin Pannier who has been helping and testing '''a lot''' as well as pointing me to important details and giving great suggestions.<br/>''Jay Wilpolt'' also suggested and helped '''a lot''', especially with the tests for v10.0.3.0.<br/>Without you three and your constant encouragement, this mod would not be in its current state!<br>Thank You!
  
My sincere '''Thank You''' to [[User:Henny|Henny Savenije]] for his wonderful patience and thorough testing of this mod.
+
== Un-Protect The &quot;Contact Us&quot; Link ==
 
+
If you protect the '''Suggest tab''' and have a link &quot;Contact us&quot; at your index.php page with this text:<br/>
 
+
''If you have any questions or comments about the information on this site, please '''<u>contact us</u>'''. We look forward to hearing from you.''<br/>
== Reported Successes / Failures with other mods ==
+
it's useless as clicking the link opens the Log-in page.<br/>
 
+
It's however possible to open the Suggest page from the Mostwanted page because of a parameter in the URL.<br/>
Please add to this list and/or report [https://xerxx.se/modSupport/index.php?mod=8 by this Mod Support link], thank you.
+
You can use the same parameter for the &quot;Contact us&quot; link:<br/><br/>
 +
Look in '''languages/''' ''your language'' '''/text.php''' for the variable
 +
<pre>
 +
$text['contactus_long']
 +
</pre>
 +
and copy all of it to your  '''languages/''' ''your language'' '''/cust_text.php'''<br/>
 +
In the copy, find this part:
 +
<pre>
 +
<a href=\"suggest.php\">
 +
</pre>
 +
and between the '''php''' and the '''\''' you add:
 +
<pre>
 +
&amp;amp;xpTpart=mostwanted
 +
</pre>
 +
so it looks like this:
 +
<pre>
 +
<a href=\"suggest.php&amp;amp;xpTpart=mostwanted\">
 +
</pre>
 +
The whole thing should look like this - in your language of course:
 +
<pre>
 +
$text['contactus_long'] = "If you have any questions or comments about the information on this site, please <span class=\"emphasis\"><a href=\"suggest.php&amp;amp;xpTpart=mostwanted\">contact us</a></span>. We look forward to hearing from you.";
 +
</pre>
 +
Do the same for each language you support at your site.
  
 +
== Mod Conflicts ==
 +
'''NOTE''' that this table only shows reports for mods installed with some remark, under P.A.C. mod versions '''<span style="color: Red">10.1.0.2</span>''' and '''<span style="color: Red">10.1.2.2</span>'''.<br/>Other mod versions may show similar or different results.<br/>
 +
'''Many more mods have been tested without remarks.'''<br/>
 +
Please add to this list, thank you.
 
{| border="1" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
 
{| border="1" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
 
|-
 
|-
Line 62: Line 80:
 
! By
 
! By
 
! Version
 
! Version
! Installed Before<br/>Access p. mod
+
! Test in<br/>TNG v10.1.1 +<br/>PAC v<span style="color: Red">10.1.0.2</span>
! Installed After<br/>Access p. mod
+
! Test in<br/>TNG v10.1.2 +<br/>PAC v<span style="color: Red">10.1.2.2</span>
 +
! Installed <span style="color: Red">'''Before'''</span><br/>Public Access<br/>control mod
 +
! Installed <span style="color: Red">'''After'''</span><br/>Public Access<br/> control mod
 +
! Same<br/>res f.<br/><span style="color: Red">'''TNG v11.0.0'''</span><br/>+ PAC v<span style="color: Red">11.0.0.0</span>
 
! Note
 
! Note
 
|-
 
|-
| [[Ancestor_map]]
+
| [[Drop_Down_Menu_Tooltip]]
| R&eacute;al Charlebois et al
 
| v10.1.0.1
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
|
 
|-
 
| [[Ancestor_map]] Add 4 placelevels
 
| R&eacute;al Charlebois et al
 
| v10.1.0.0
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
|
 
|-
 
| [[Census_Plus_International]]
 
| [[User:Ozigirl|Janice Nation]] et al
 
| v10.1.0.3d
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Only Installed mod
 
|-
 
| [[Count_Descendants]]
 
| [[User:Robinrichm|Robin Richmond]]
 
| v10.1.0.6
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
|
 
|-
 
| [[Family_Chart_Mod]]
 
| [[User:Chris_Moss|Chris Moss]]
 
| v10.1.0.3a
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
|
 
|-
 
| [[Family_Preview_Mod]]
 
 
| [[User:Jefr58|Jeff Robison]]
 
| [[User:Jefr58|Jeff Robison]]
| v10.1.0.2c
+
| v10.0.3.1
| Success [[User:XerxX|E Hoppe]]*
+
| Y
| Success [[User:XerxX|E Hoppe]]*
+
| Y
|  
+
| (Failure?) [[User:XerxX|EH]]
 +
| Success [[User:XerxX|EH]]
 +
| '''Yes'''
 +
| (Depends on made Edits?)
 
|-
 
|-
| [[Google_Maps_-_More_Place_Levels_Mod]] Add 4 placelevels
+
| rowspan="2" valign="top"|[[Media_Preview_Fixed]]
| [[User:TheKiwi|Roger Moffat]]
+
| rowspan="2" valign="top"|[[User:Jefr58|Jeff Robison]]
| v10.1.0.1
+
| valign="top"|v9.2.2.2
| Success [[User:XerxX|E Hoppe]]*
+
| valign="top"|Y
| Success [[User:XerxX|E Hoppe]]*
+
| valign="top"|'''No'''
|  
+
| valign="top"|'''Failure''' [[User:XerxX|EH]]
 +
| valign="top"|Success [[User:XerxX|EH]]
 +
| n/a
 +
| Conflicts with [[Mobile_Media]]<br/>Not used in TNG v > 10.1.1
 
|-
 
|-
| [[Life_Dates_Mod]]
+
| v10.1.2.0
| [[User:HiTowerUK|Roger Mitchell]]
+
| No
| v10.0.3.0
+
| Y
| Success [[User:XerxX|E Hoppe]]*
+
| Success [[User:XerxX|EH]]
| Success [[User:XerxX|E Hoppe]]*
+
| Success [[User:XerxX|EH]]
|  
+
| '''Yes'''
 +
| Not used in TNG v < 10.1.2
 
|-
 
|-
 
| [[Mobile_Media]]
 
| [[Mobile_Media]]
| Ken Roy
+
| [[User:Ken Roy|Ken Roy]]
| v10.1.0.2a
+
| v10.1.1.4
| Success [[User:XerxX|E Hoppe]]*
+
| Y
| Success [[User:XerxX|E Hoppe]]*
+
| '''No'''
|  
+
| '''Failure''' [[User:XerxX|EH]]
 +
| Success [[User:XerxX|EH]]
 +
| n/a
 +
| Obsolete for TNG v10.1.2
 
|-
 
|-
| [[Mobile_Site_Enhancements]]
+
| rowspan="5" valign="top"|[[Mobile_Site_Enhancements]]
| Ken Roy
+
| rowspan="5" valign="top"|[[User:Ken Roy|Ken Roy]]
| v10.1.0.2a
+
| v10.1.0.3
| '''Failure''' [[User:XerxX|E Hoppe]]*
+
| Y
| Success [[User:XerxX|E Hoppe]]*
+
| '''No'''
|  
+
| '''Failure''' [[User:XerxX|EH]]
 +
| Success [[User:XerxX|EH]]
 +
| n/a
 +
| Not used in TNG v > 10.1.1
 
|-
 
|-
| [[Mobile_Site_No_Previews]]
+
| v10.1.2.4
| Ken Roy
+
| No
| v10.1.0.2a
+
| '''Yes'''
| Success [[User:XerxX|E Hoppe]]*
+
| '''Failure''' [[User:XerxX|EH]]
| Success [[User:XerxX|E Hoppe]]*
+
| Success [[User:XerxX|EH]]
|  
+
| n/a
 +
| Not used in TNG v < 10.1.2
 
|-
 
|-
| [[Person_Map]] mobile_ind_page_person_map
+
| v11.0.0.1
| [[User:Roebie|Bart 'Roebie' Degryse]]
+
| No
| v10.1.0.2a
+
| No
| Success [[User:XerxX|E Hoppe]]*
+
| '''Failure''' [[User:XerxX|EH]]
| Success [[User:XerxX|E Hoppe]]*
+
| Success [[User:XerxX|EH]]
|  
+
| colspan="2" align="left"|'''Yes''' (Only tested in TNG v11-environm.)
 
|-
 
|-
| [[Responsive_Tables]]
+
| v12.1.0.4a
| Ken Roy
+
| No
| v10.1.0.2a
+
| No
| Success [[User:XerxX|E Hoppe]]*
+
| '''Failure''' [[User:JPB|JPB]]
| Success [[User:XerxX|E Hoppe]]*
+
| Success [[User:JPB|JPB]]
|
+
| colspan="2" align="left"|'''TNG V12.1''' alpha versions of mod
 
|-
 
|-
| [[Responsive_Tables]] Browsesource
+
| v12.1.0.5a
| Ken Roy
+
| No
| v10.1.0.2a
+
| No
| Success [[User:XerxX|E Hoppe]]*
+
| Success [[User:KenRoy|Ken Roy]]
| Success [[User:XerxX|E Hoppe]]*
+
| Success [[User:KenRoy|Ken Roy]]
|  
+
| colspan="2" align="left"|'''TNG V12.1''' latest versions of both mods
 
|-
 
|-
| [[Responsive_Tables]] No Slideshow
+
| [[Restrict_Image_Preview]]
| Ken Roy
+
| [[User:Hiraeth|Graham Chamberlain]]
| v10.1.0.1
+
| v10.1.2.4
| Success [[User:XerxX|E Hoppe]]*
+
| colspan="2"|<span style="color: Red">'''TNG 10.1.3''' + '''PAC 10.1.2.2b'''</span>
| Success [[User:XerxX|E Hoppe]]*
+
| '''Failure''' CL
|  
+
| Success CL
 +
| '''Yes'''
 +
| Thanks to Chris Lloyd for reporting
 
|-
 
|-
| [[TextPlus_Charts]]
+
| '''NEW: ''[[Forum for TNG]]'''''
| [[User:Robinrichm|Robin Richmond]]
+
| [[User:XerxX|Erik Hoppe]]
| v10.1.0.10a
+
| All versions
| Success [[User:XerxX|E Hoppe]]*
+
| colspan="2"|All versions
| Success [[User:XerxX|E Hoppe]]*
+
| '''Failure''' MC
|
+
| Success MC
+
| '''Yes'''
 +
| Thanks to Marc Chubbuck for reporting
 
|-
 
|-
| My own mods (f v10.1.1) [[User:XerxX|listed at my User page]]
+
| '''NEW: ''[[NearD Support]]'''''
| [[User:XerxX|Erik Hoppe]]
+
| [[User:wrherndon|Bill Herndon]]
| Misc.
+
| v12.0.0.3
| Success [[User:XerxX|E Hoppe]]*
+
| colspan="2"|Not applicable
| Success [[User:XerxX|E Hoppe]]*
+
| '''Failure''' BH
|  
+
| '''Failure''' BH
 +
| '''Yes'''
 +
| Reported by Bill Herndon
 
|-
 
|-
 +
| '''NEW: ''[[Cemetery_Burials_Table]]'''''
 +
| [[User:Robinrichm|Robin Richmond]]
 +
| v13.0.0.16
 +
| colspan="2"|Not applicable
 +
| '''Failure''' TB
 +
| '''Failure''' TB
 +
| '''N/A'''
 +
| Reported by TBirdUK
 
|}
 
|}
*) All mods I report are installed together.
+
<pre>
 
+
If a mod is "Installed Before" with Failure and "Installed After" with Success,
 +
the mod should be UNinstalled while the Public Access Control mod is installed or uninstalled.
 +
The mod can be re-installed after the Public Access Control mod has been installed or uninstalled.
 +
</pre>
 +
<br />
 +
<big><span style="color:red; background-color:yellow; padding:8px;">'''[[Placesearch-More Info]]''' mod v5e and earlier by Robin Richmond can '''NOT''' be used with PAC!</span> (v5'''f''' can be used)</big>
 +
<br/>
 +
<i><u>The below is added to all involved mods:</u></i><br/>
 +
Of <big><b>my mods</b></big>, some demand a special order to Install and Uninstall. This is one of them.<br/>
 +
Installing / Uninstalling in the wrong order may create chaos at a later stage.<br/>
 +
The mods may signal Okay to Install but nevertheless may not be.<br/>
  
== Mod Makers: Innermenu for Your mods ==
+
<b><big>Order to INSTALL:</big></b><br/>
  
If you add a selection to the '''innermenu''' of any of the scripts ''descend.php, familygroup.php, getperson.php'' or ''pedigree.php'' and it opens a custom page, you can use the code-snippets below in your script to make your '''innermenu''' look the same as in the calling script, wether this mod is installed or not.
+
All mods <b>below</b> the one you want to Install, must first be Uninstalled (if you use them).<br/>
 +
See the Uninstall order below. You can Install them after.<br/>
 +
#[[Maternal And Paternal Lines|Maternal And Paternal Lines]]
 +
#[[Scrollbox mod|Scrollbox]]
 +
#'''Public Access Control'''
 +
#'''''[[Forum for TNG|Forum for TNG]]'''''
 +
#'''''[[Fixed Family Tab|Fixed Family Tab]]'''''
 +
<br/>
  
If an item is hidden from public view in the innermenu of, f.ex, ''descend.php'' it will be displayed at your innermenu and the user will arrive at the '''Log in page'' if it is clicked.<br/>Using the code below will prevent the item to be displayed if the ''Access'' panel is/will be installed and/or the item is/will be hidden.<br/>
+
<b><big>Order to UNINSTALL:</big></b><br/>
If the ''Access'' panel is not installed, there is no difference.
+
All mods <b>above</b> the one you want to Uninstall, must first be Uninstalled (if you use them).<br/>
 +
You can Install them after. See the Install order above.<br/>
  
Only the relevant part of the innermenu is shown and only lines containing '''''$xerxxProtect[]'
+
#'''''[[Fixed Family Tab|Fixed Family Tab]]'''''
 +
#'''''[[Forum for TNG|Forum for TNG]]'''''
 +
#'''Public Access Control'''
 +
#[[Scrollbox mod|Scrollbox]]
 +
#[[Maternal And Paternal Lines|Maternal And Paternal Lines]]
 +
<br/>
 +
<b><big>Example:</big></b><br/>
 +
Suppose you use the ''[[Scrollbox_mod|Scrollbox]]'' and ''Fixed Family Tab'' mods.<br/>
 +
Now you want to install ''[[Maternal And Paternal Lines|Maternal And Paternal Lines]]''.<br/>
 +
As you can see in the ''Install Order'' both the used mods are ''below'' the ''[[Maternal And Paternal Lines|Maternal And Paternal Lines]]'' mod and therefore you must first Uninstall the mods in the Uninstall order:<br/>
 +
First Uninstall the ''Fixed Family Tab'' mod and then the ''[[Scrollbox_mod|Scrollbox]]'' mod.<br/>
 +
Now you can install all three mods in the Install order:<br/>
 +
First you Install ''[[Maternal And Paternal Lines|Maternal And Paternal Lines]]'', second the ''[[Scrollbox_mod|Scrollbox]]'' mod and finally ''Fixed Family Tab''.
  
'''[[Media:AccessPanelInnermenus.txt.zip|All four innermenus in a zipped .txt file]]''''''' are added to the original script.
+
== Mod Makers: Innermenu for Your mods ==
 +
If you add a selection to the '''innermenu''' of any of the scripts ''descend.php, familygroup.php, getperson.php'' or ''pedigree.php'' and it opens a custom page, you can use the code-snippets below in your script to make your '''innermenu''' look the same as in the calling script, whether this mod is installed or not.
  
 +
If an item is hidden from public view in the innermenu of, f.ex, ''descend.php'' it will be displayed at your innermenu and the user will arrive at the '''Log in page'' if it is clicked.<br/>Using the code below will prevent the item to be displayed if the '''Public Access control''' mod is/will be installed and the item is/will be hidden.<br/>
  
== &quot;Associations&quot; are Not protected ==
+
If the '''Public Access control''' mod is not installed, there is no difference.
  
The TNG &quot;event&quot; named '''Associations''' is not protected by this mod.<br/>I have yet to find out what it really is and where, when and why it is displayed.<br/>Quite frankly: I have read some of the Help but I have never used it, not even tried it, yet.
+
Only the relevant part of the innermenu is shown and only lines containing '''''$xerxxProtect[ ]''''' are added to the original script.<br/>'''[[Media:AccessPanelInnermenus.txt.zip|All four innermenus in a zipped .txt file]]'''
  
Do you think this is a vital part that should be included in the panel?
+
== What is Not protected ==
 +
* Media displayed by other mods may not be protected, depending on how the mod displays the media.
 +
* Media displayed at ''index.php'' (f.ex. a ''Random'' or ''Featured Photo'') may not be protected
 +
* The <i>Most Wanted</i> page '''will''' show media and ''suggest.php'' '''will''' open if the link on the <i>Most Wanted</i> page is clicked.
  
 +
The TNG &quot;event&quot; named '''Associations''' is not protected by this mod.
  
 
== Requirements ==
 
== Requirements ==
 +
{{TNG 10.1.0|and after}}
  
{{TNG 10.1.1}}
 
 
* A working TNG installation.
 
* A working TNG installation.
 
* A backup of all affected files (see the list below)
 
* A backup of all affected files (see the list below)
* An installed current version of the [[Mod Manager]] (is already included in TNG v10.1.1)
+
* An installed current version of the [[Mod Manager]] (is already included in TNG v10.x)
 
 
  
 
== Before installation ==
 
== Before installation ==
 
+
* If you have installed '''AccessRestriction, AccessRestriction More''' and/or '''Access Panel''' mods, you must first
* If you have installed '''AccessRestriction''' and/or '''AccessRestriction More''' mods, you must first
 
 
# Uninstall the one(s) you have
 
# Uninstall the one(s) you have
# Remove the '''.cfg file(s)''' and the folder '''AccessRestriction10''' from your mods folder
+
# Remove the '''.cfg file(s)''' and the folder '''AccessRestrictionX''' from your mods folder
 
+
* Check the table above to see if you have to uninstall any of your mods while installing this one.<br/>For example, the following mods must be uninstalled so the [[Public Access Control]] mod can be installed.<br/>They can be re-installed after installing the Public Access Control mod.
 +
**[[Media Preview Fixed]] (v9)
 +
**[[Mobile Media]] (for PAC v10.1.0.0)
 +
**[[Mobile Site Enhancements]]
  
 
== Installation ==
 
== Installation ==
 
+
# Click on the download link for your TNG version, shown in the summary in the upper  right corner of the page.
# Click on the download link, shown in the summary in the upper  right corner of the page.
 
 
# Un-zip the downloaded file and you will find '''a folder: Open it'''.
 
# Un-zip the downloaded file and you will find '''a folder: Open it'''.
# Move/copy/FTP the '''.cfg''' file and the folder named '''AccessPanel_101''' to the  '''mods''' folder of your TNG system.
+
# Move/copy/FTP the '''.cfg''' file and the folder named '''PublicAccessControl_10''' to the  '''mods''' folder of your TNG system.
 
# Follow the normal automated installation for Mod Manager, as shown in the example [[Mod Manager - Installing Config  Files]] to install the mod.
 
# Follow the normal automated installation for Mod Manager, as shown in the example [[Mod Manager - Installing Config  Files]] to install the mod.
 +
# Re-install any mods that you had to uninstall in order to be able to install the Public Access Control mod
 +
 +
== 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].
 +
 +
== Uninstalling the mod ==
 +
* Check the table above to see if you have to uninstall any of your mods while uninstalling this one.<br/>For example, the following mods must be uninstalled so the [[Public Access Control]] mod can be uninstalled.<br/>They can be re-installed after uninstalling the Public Access Control mod.
 +
**[[Media Preview Fixed]] (v9)
 +
**[[Mobile Media]] (for PAC v10.1.0.0)
 +
**[[Mobile Site Enhancements]]
  
 +
If  you want to completely '''Remove''' (uninstall) this mod and all its tables, you should
 +
# Click the '''Uninstall''' button to uninstall the mod and then
 +
# Click the '''Delete''' button to delete the config file from the mods folder.
  
== In the event of a problem ==
+
In all cases: <span style="color: Red">Go to '''Setup >> General Settings''' and click the '''Save''' button</span> to clear the ''config.php'' file from the protection flags.
  
* Try using the [[Mod_Manager_-_Installing_Config_Files#Remove_Mod_Steps|Mod Manager Remove]] capability
+
== Upgrade ==
* Replace all affected files with the copies you made before the installation.
+
*Uninstall and eventually Delete the current Mod.
* Contact me through [https://xerxx.se/modSupport/index.php?mod=8 My Mod Support]
+
*Proceed as for an installation with the new Mod.
  
 +
== Edit option: Collapsible Standard Events ==
 +
{| border="0" cellspacing="5" cellpadding="2" width="900px" class="wikitable"
 +
|-
 +
| colspan="2"|When the '''Public Access Control''' mod is used together with my [[Collapsible Standard Events]] mod or Jeff Robisons [[Show/Hide Standard Events]] mod, collapsible events can optionally be set to NOT collapsible if only icons and "Log in" are to be displayed.<br/>Suppose that '''Notes''' and '''Media''' are protected by this mod, and...<br/>'''Born''' is non-collapsible while '''Christened''' is set to collapsible:
 +
|-
 +
| Logged in view
 +
| Not logged in view '''Default:''' "Christened" = initially collapsed.
 +
|-
 +
| rowspan="5" valign="top"|[[File:access_collaps.png]]
 +
| valign="top"|[[File:Pacmodimg1.png]]
 +
|-
 +
| Not logged in view '''Default:''' "Christened" = user expanded.
 +
|-
 +
| valign="top"|[[File:Pacmodimg2.png]]
 +
|-
 +
| Not logged in view: '''Optional behaviour'''
 +
|-
 +
| rowspan="2" valign="top"|[[File:access_collaps_NLI.png]]<br/>As the '''Christened''' event is set to ''Collapsible'' but was only going to display the icons and "Log in" text, only the data is displayed and the event is not collapsible.
 +
|-
 +
| (My [[No_Notesring]] mod is active; it removes the small ring and increases the space between Notes)
 +
|}
  
 
== After Installation ==
 
== After Installation ==
 +
Go to '''Administration &gt;&gt; Setup &gt;&gt; General Settings''' to find the '''Public Access''' panel.<br/>Set the public view to your liking and click the ''Save'' button.
  
Go to '''Admin >> Setup >> General Settings''' to find the '''Access''' panel.<br/>Set the public view to your liking and click the ''Save'' button.
+
== Complete Description of Settings ==
 
 
'''A complete description of all settings''', including how they interact with your settings in '''Trees''' (''Gedcom'' and ''PDF'' permissions) and '''Site Design and Definition''' (displaying the ''Share, Print'' and ''Bookmark'' icons), is found here: '''[https://xerxx.se/modSupport/accessPanel/index.html Access panel settings]'''
 
  
 +
'''A complete description of all settings''', including how they interact with your settings in '''Trees''' (''Gedcom'' and ''PDF'' permissions) and '''Site Design and Definition''' (displaying the ''Share, Print'' and ''Bookmark'' icons), is found here: '''[https://xerxx.se/modSupport/accessPanel/index.html Public Access Control settings]'''
  
 
== Custom Text Additions ==  
 
== Custom Text Additions ==  
 +
The config file includes the English language custom text.<br />There are Dutch, French, German and Swedish translations if they are present in your TNG system.<br/>For other languages you can modify the config file to add the custom text or manually add to whatever language you like.<br/>
  
'''Note:''' The config file includes only the English language custom text.<br />For other languages you can modify the config file to add the custom text or manually add to whatever language you like.<br/>
+
'''English custom text For Reference Only!'''<br />
(A small preparation for, f.ex, the German language is done: See the last entries)
 
  
'''English custom text For Reference Only!'''<br />
 
 
<pre>
 
<pre>
  
// text.php is not yet read when these are used, so they have to be set
+
$text['textHide'] = "Hide";
$text['hide'] = "Hide";
+
$text['textMedia'] = "Media";
$text['media'] = "Media";
+
$text['textNotes'] = "Notes";
$text['notes'] = "Notes";
+
$text['textRepositories'] = "Repositories";
$text['repositories'] = "Repositories";
+
$text['textSources'] = "Sources";
$text['sources'] = "Sources";
+
$text['textReports'] = "Reports";
$text['reports'] = "Reports";
+
$text['textRelationship'] = "Relationship";
$text['relationship'] = "Relationship";
+
$text['textExtractgedcom'] = "GEDCOM";
$text['extractgedcom'] = "GEDCOM";
+
$text['textSuggest'] = "Suggest";
$text['suggest'] = "Suggest";
+
$text['textAncestors'] = "Ancestors";
$text['ancestors'] = "Ancestors";
+
$text['textDescendants'] = "Descendants";
$text['descendants'] = "Descendants";
+
$text['textTimeline'] = "Timeline";
$text['timeline'] = "Timeline";
+
$text['textShare'] = "Share";
$text['share'] = "Share";
+
$text['textPrint'] = "Print";
$text['print'] = "Print";
+
$text['textBookmark'] = "Bookmark";
$text['bookmark'] = "Bookmark";
+
$text['textLogin'] = "Log in";
$text['login'] = "Log in";
+
$text['textCemeteryMap'] = "Cemetery map";
  
$text['xerxxProtectPanel'] = "Access";
+
$text['xerxxProtectPanel'] = "Public Access";
 
$text['xerxxProtectShow'] = "Show";
 
$text['xerxxProtectShow'] = "Show";
 
$text['xerxxProtectTab'] = "Tab ";
 
$text['xerxxProtectTab'] = "Tab ";
Line 282: Line 366:
 
$text['xerxxProtectTabs'] = "Tabs";
 
$text['xerxxProtectTabs'] = "Tabs";
 
$text['xerxxProtectTSelections'] = "Tab <i>Selections</i>";
 
$text['xerxxProtectTSelections'] = "Tab <i>Selections</i>";
$text['xerxxProtectTSelectionsEnd'] = "<br />when the resp. Tab is <i>shown</i>";
 
 
$text['xerxxProtectAhnentafel'] = "Ahnentafel";
 
$text['xerxxProtectAhnentafel'] = "Ahnentafel";
 
$text['xerxxProtectPDF'] = "PDF";
 
$text['xerxxProtectPDF'] = "PDF";
 
$text['xerxxProtectRegister'] = "Register";
 
$text['xerxxProtectRegister'] = "Register";
  
$text['xerxxProtectHideSet'] = "<u>When &quot;" . $text['hide'] . "&quot; is set:</u> ";
+
$text['xerxxProtectHideSet'] = "<u>When &quot;" . $text['textHide'] . "&quot; is set:</u> ";
$text['xerxxProtectLogInSet'] = "<u>When &quot;" . $text['login'] . "&quot; is set:</u> ";
+
$text['xerxxProtectLogInSet'] = "<u>When &quot;" . $text['textLogin'] . "&quot; is set:</u> ";
 
$text['xerxxProtectShowSet'] = "<u>When &quot;" . $text['xerxxProtectShow'] . "&quot; is set:</u><br />";
 
$text['xerxxProtectShowSet'] = "<u>When &quot;" . $text['xerxxProtectShow'] . "&quot; is set:</u><br />";
 
$text['xerxxProtectExpl1'] = "Will show icon, text and and Log in link.";
 
$text['xerxxProtectExpl1'] = "Will show icon, text and and Log in link.";
Line 304: Line 387:
 
$text['xerxxNoaccountListen'] = "listen to ";
 
$text['xerxxNoaccountListen'] = "listen to ";
 
$text['xerxxNoaccountRead'] = "read ";
 
$text['xerxxNoaccountRead'] = "read ";
$text['xerxxNoaccountDEView'] = "";
+
 
$text['xerxxNoaccountDEListen'] = "";
+
$text['xerxxAPanelAlsoHides'] = "Also hides";
$text['xerxxNoaccountDERead'] = "";
+
$text['xerxxAPanelAll'] = "All:";
 +
$text['xerxxAPanelHideAll'] = "Hide all";
 +
$text['xerxxAPanelProtectAll'] = "Protect all";
 +
$text['xerxxAPanelWLink'] = "For detailed information, see the Wiki page <a href='http://tng.lythgoes.net/wiki/index.php/Public_Access_Control' target='_blank'>Public Access Control</a> (sep. wind.)";
  
 
</pre>
 
</pre>
The last three can be used for the German language, f.ex, and MUST be present in all languages.
+
== Revision History ==
 +
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 +
|-
 +
! Mod Version
 +
! TNG Version
 +
! Date
 +
! Contents
 +
 
 +
|- style="vertical-align:top;"
 +
|14.0.3.3
 +
|14.03
 +
| style="white-space: nowrap;"|22 Oct 2023
 +
|Updated for TNG v14.0.3 - only cfg file updated - no other changes - Jeff Rueger (jrueger)
 +
 
 +
|- style="vertical-align:top;"
 +
|-
 +
|14.0.1.0
 +
|14.0.1
 +
| style="white-space: nowrap;"|11 Feb 2023
 +
|Updated for TNG v14.0.1 - only cfg file updated - no other changes - Ron Krzmarzick (Tngrlkz)
  
 +
|- style="vertical-align:top;"
 +
|-
 +
|14.0.0.0
 +
|14.0
 +
| style="white-space: nowrap;"|09 Jan 2023
 +
|Updated for TNG v14.0 - only cfg file updated - no other changes - Jeff Rueger (jrueger)
  
== Uninstalling the mod ==
+
|- style="vertical-align:top;"
 +
|13.1.0.0
 +
|13.1
 +
| style="white-space: nowrap;"|06 Nov 2021
 +
|Updated for TNG v13.1 - only cfg file updated - no other changes - Jeff Rueger (jrueger)
 +
 
 +
|- style="vertical-align:top;"
 +
| 13.0.4.0
 +
| 13.04
 +
| style="white-space: nowrap;"|22 Jun 2021
 +
| Updated for TNG v13.0.4 and PHP v8.0 by forum user jrueger (some more PHP v8.0 by E Hoppe)
 +
 
 +
|- style="vertical-align:top;"
 +
| 13.0.0.4
 +
| 13.0
 +
| style="white-space: nowrap;"|29 Nov 2020
 +
| Resolves conflicts with Robin Richmond's mods
 +
* [[Cemetery Map and Images]] v13.0.0.1b and later (in showmap.php)
 +
* [[Placesearch-More Info]] v13.0.0.5f and later (in placesearch.php)
 +
* [[Regroup Person Profile]] v13.0.0.19e and later (in getperson.php)
 +
 
 +
|- style="vertical-align:top;"
 +
| 13.0.0.3c
 +
| 13.0
 +
| style="white-space: nowrap;"|22 Sep 2020
 +
| Updated for TNG v13.0
 +
 
 +
|- style="vertical-align:top;"
 +
| 12.3.0.3c
 +
| 12.3
 +
| style="white-space: nowrap;"|06 May 2020
 +
| Fix a mistake by [[User:Bhemph|Brent Hemphill]].
 +
 
 +
|- style="vertical-align:top;"
 +
| 12.3.0.3b
 +
| 12.3
 +
| style="white-space: nowrap;"|06 May 2020
 +
| Updated for TNG 12.3 conflict with [[Person Media Title]] by [[User:Bhemph|Brent Hemphill]]
 +
 
 +
|- style="vertical-align:top;"
 +
| 12.3.0.3a
 +
| 12.3
 +
| style="white-space: nowrap;"|20 Mar 2020
 +
| Updated for TNG 12.3 by [[User:KenRoy|Ken Roy]] and [[User:Tngrlkrz|Ron Krzmarzick]]
 +
 
 +
|- style="vertical-align:top;"
 +
| 12.1.0.2
 +
| 12.1
 +
| style="white-space: nowrap;"|16 May 2019
 +
| Updated to
 +
* fix issue with '''Show photos on one row''' by [[User:Bhemph|Brent Hemphill]] 
 +
* resolve conflict and install dependency with [[Mobile Site Enhancements]] mod by [[User:Bhemph|Brent Hemphill]]
 +
* resolve conflict with [[Regroup Person Profile]] by [[User:KenRoy|Ken Roy]]
 +
 
 +
|- style="vertical-align:top;"
 +
| style="white-space: nowrap;"|12.1.0.2-alpha-3
 +
| 12.1
 +
| style="white-space: nowrap;"|15 Apr 2019
 +
| Updated for suggest/edit tabs fix by [[User:Tngrlkrz|Ron Krzmarzick]] , code changes only for those tabs, so it still does not support '''Show photos on one row'''.
 +
 
 +
|- style="vertical-align:top;"
 +
| style="white-space: nowrap;"|12.1.0.2-alpha-2
 +
| 12.1
 +
| style="white-space: nowrap;"|24 Mar 2019
 +
| Updated for TNG 12.1 by [[User:KenRoy|Ken Roy]]  to clearly show the conflict with the [[Mobile Site Enhancements]] mod.  No code changes from V12.1.0.2-alpha, so it still does not support '''Show photos on one row'''.
 +
 
 +
|- style="vertical-align:top;"
 +
| style="white-space: nowrap;"|12.1.0.2-alpha
 +
| 12.1
 +
| style="white-space: nowrap;"|18 Mar 2019
 +
| Updated for TNG 12.1 by [[User:JPB|JPB]]  Currently does not support '''Show photos on one row'''.
 +
 
 +
|- style="vertical-align:top;"
 +
| 12.0.0.1
 +
| 12.0
 +
| style="white-space: nowrap;"|07 July 2018
 +
| Corrected error in register.php. Thanks to Hans W for the alert.
 +
 
 +
|- style="vertical-align:top;"
 +
| 12.0.0.0
 +
| 12.0
 +
| style="white-space: nowrap;"|14 May 2018
 +
| New version for TNG 12
 +
 
 +
|- style="vertical-align:top;"
 +
| 11.1.1.3b
 +
| 11.1
 +
| style="white-space: nowrap;"|10 Jun 2017
 +
| French translation was missing a quote. Thanks to Randal Suire for the alert.
 +
 
 +
|- style="vertical-align:top;"
 +
| 11.0.0.3b
 +
| 11.0
 +
| style="white-space: nowrap;"|10 Jun 2017
 +
| French translation was missing a quote. Thanks to Randal Suire for the alert.
 +
 
 +
|- style="vertical-align:top;"
 +
| 11.1.1.3
 +
| 11.1
 +
| style="white-space: nowrap;"|
 +
| v11.0.0.3 doesn't install under TNG v11.1.1 - thanks to Jan Holmberg and Harold Craswell for telling me.<br/>(Kept index 3 from all other versions)<br/>Also added section "Un-protect the 'Contact us' link" to the Wiki - thanks to Ingemand for the inspiration.
 +
 
 +
|- style="vertical-align:top;"
 +
| 11.0.0.3
 +
| 11.0
 +
| style="white-space: nowrap;"|18 Jan 2017
 +
| Did not protect PDF in familychart.php. Thanks to Glenn for the alert.
 +
 
 +
|- style="vertical-align:top;"
 +
| 11.0.02
 +
| 11.0
 +
| style="white-space: nowrap;"|18 Apr 2016
 +
| Due to a change in whatsnew.php (TNG v11) all media was protected also when logged in.<br/>Thanks to Rob S for the alert.
 +
 
 +
|- style="vertical-align:top;"
 +
| 10.0.0.3<br/>10.0.3.3<br/>10.1.0.3<br/>10.1.2.3<br/>11.0.0.1
 +
|
 +
| style="white-space: nowrap;"|29 Mar 2016
 +
| A conflict with [[No_Headstone_Photo_Report]] has been solved.<br/>Thanks to Eilif N. for the alert.
 +
 
 +
|- style="vertical-align:top;"
 +
| 11.0.0.0
 +
| 11.0
 +
| style="white-space: nowrap;"|18 Mar 2016
 +
| Update by Ken Roy for TNG 11.0 - tested by author.
 +
 
 +
|- style="vertical-align:top;"
 +
| 10.0.0.2b<br/>10.0.3.2b<br/>10.1.0.2b<br/>10.1.2.2b
 +
|
 +
| style="white-space: nowrap;"|30 Oct 2015
 +
| The MM-parameters had %end:% tags. Removed.<br/>The WhatsNew page was only protected in the DD menu. NOT protected at all now.<br/>Both noted by M. Pannier. Thanks.
 +
 
 +
|- style="vertical-align:top;"
 +
| 10.0.0.2<br/>10.0.3.2<br/>10.1.0.2<br/>10.1.2.2
 +
|
 +
| style="white-space: nowrap;"|19 Oct 2015
 +
| Protected DD-menu items are now removed from the menus.<br/>If Media is protected, there is no Media DD-menu. See ''Visualization of this mod''.<br/>An error involving multiple Albums when Media is protected, is corrected.
 +
 
 +
|- style="vertical-align:top;"
 +
| 10.0.0.1<br/>10.0.3.1<br/>10.1.0.1<br/>10.1.2.1
 +
|
 +
| style="white-space: nowrap;"|09 Aug 2015
 +
| The behaviour of collapsible standard events is now optional (see [[Public_Access_Control#Edit_option:_Collapsible_Standard_Events|Edit Option]] above)
 +
 
 +
|- style="vertical-align:top;"
 +
| 10.0.3.0
 +
|10.0.3
 +
| style="white-space: nowrap;"|24 Jul 2015
 +
| New release. After extensive testing by ''Jay Wilpolt''.
 +
 
 +
|- style="vertical-align:top;"
 +
| 10.0.0.0
 +
| 10.0
 +
| style="white-space: nowrap;"|24 Jul 2015
 +
| New release. After extensive testing by ''Jay Wilpolt''.
  
If  you want to completely '''Remove''' (uninstall) this mod and all its tables, you should
+
|- style="vertical-align:top;"
# click the '''Remove''' button to uninstall the mod and then
+
| 10.1.2.0
# click the '''Delete''' button to delete the config file from the mods folder.
+
| 10.1.2
# <span style="color: Red">Go to '''Setup >> General Settings''' and click the '''Save''' button</span> to clear the ''config.php'' file from the protection flags.
+
| style="white-space: nowrap;"|07 Jul 2015
 +
| New.<br/>After a lot of help and suggestions from Martin Pannier it looks like this could be worth <i>Production</i> status.<br/>At the same time the name is changed from ''Access Panel'' to '''''Public Access Control'''''.<br/>Dutch and French translations provided by [[User:Henny|Henny Savenije]].<br/>Dropdown menu selections are now protected.
  
 +
|- style="vertical-align:top;"
 +
| 10.1.0.0
 +
| 10.1
 +
| style="white-space: nowrap;"|07 Jul 2015
 +
| New<br/>After a lot of help and suggestions from Martin Pannier it looks like this could be worth <i>Production</i> status.<br/>At the same time the name is changed from ''Access Panel'' to '''''Public Access Control'''''.<br/>Dutch and French translations provided by [[User:Henny|Henny Savenije]].<br/>Dropdown menu selections are now protected.
 +
|}
  
== Revision History ==
+
Access Panel revision history
  
 
{| border="1" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
 
{| border="1" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
Line 327: Line 599:
 
! Date
 
! Date
 
! Description
 
! Description
|-
+
 
| V10.1.1.Beta8
+
|- style="vertical-align:top;"
| 1 June 2015
+
| 10.1.1.Beta11
 +
| 9 Jun 2015
 +
| Added German (thanks Martin Pannier) and Swedish texts.<br/>whatsnew.php does not require log in any more.<br/>headstones.php and showmap.php are now protected (shows icons and Log in link). cemeteries.php will not show the "All Headstones" link. (Martin!)<br/>Panel name is "Public Access" to emphasize that no user rights/restrictions are set there.
 +
 
 +
|- style="vertical-align:top;"
 +
| 10.1.1.Beta9
 +
| 2 Jun 2015
 +
| Did not install after Relationship Display mod, but before. Fixed. Thanks to Martin Pannier for the alert.
 +
 
 +
|- style="vertical-align:top;"
 +
| 10.1.1.Beta8
 +
| 1 Jun 2015
 
| A small change to fit better with ''mobile_site_enhancements'' mod. Other lines make it not possible to install it '''before''' ''Access'' panel.
 
| A small change to fit better with ''mobile_site_enhancements'' mod. Other lines make it not possible to install it '''before''' ''Access'' panel.
|-
+
 
| V10.1.1.Beta7
+
|- style="vertical-align:top;"
 +
| 10.1.1.Beta7
 
| 31 May 2015
 
| 31 May 2015
 
| Introduction.
 
| Introduction.
 
|}
 
|}
 
  
 
== Visualization of this mod ==
 
== Visualization of this mod ==
 
 
'''[https://xerxx.se/modSupport/accessPanel/example.html Click here for screen-shots from a fully protected site]''' and of graphic trees if they should be accessible.
 
'''[https://xerxx.se/modSupport/accessPanel/example.html Click here for screen-shots from a fully protected site]''' and of graphic trees if they should be accessible.
  
{| border="0" cellspacing="5" cellpadding="2" width="750px" class="wikitable"
+
{| border="0" cellspacing="5" cellpadding="2" width="900px" class="wikitable"
 
|-
 
|-
| colspan="2"|The '''Access''' panel after mod installation: No restrictions are set
+
| colspan="2"|The '''Public Access''' panel after mod installation: No restrictions are set
 
|-
 
|-
 
| colspan="2"|[[File:AccessPanel.png]]
 
| colspan="2"|[[File:AccessPanel.png]]
Line 357: Line 639:
 
|}
 
|}
  
 +
{| border="0" cellspacing="5" cellpadding="2" width="900px" class="wikitable"
 +
|-
 +
| colspan="3"|Protected items will also protect the corresponding '''Drop-Down menu items'''<br/>Everything is protected in this example (Public Guest view):
 +
|-
 +
| valign="top"|[[File:Xprotmenus.jpg]]
 +
|}
  
 
== Sites using this mod ==
 
== Sites using this mod ==
 +
If you download and install this mod, please add your TNG site to the table below:
  
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%"
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 
 
|-
 
|-
 
! URL
 
! URL
Line 369: Line 657:
 
! TNG-Version
 
! TNG-Version
 
! User-language
 
! User-language
|-
 
| [https://xerxx.se/getperson.php?personID=I36&amp;tree=tredNr2 Andersson, Hoppe, Sahlin, Thorell]
 
| [[User:XerxX|Erik Hoppe]]
 
| Mod author.
 
| Pre-mod!
 
| 9.1.1!
 
| Swedish, German, English
 
|-
 
|}
 
  
 +
|- style="vertical-align:top;"
 +
| [https://www.treichel-familie.de Treichel-Familie.de]
 +
| [[User:EAndy|Andreas Treichel]]
 +
| Public & Private
 +
| 14​.0​.3​.3
 +
| 14.0.3
 +
| DE,EN,FR,ES,PL
 +
 +
|- style="vertical-align:top;"
 +
| [https://www.jegersberg.com/slekt/getperson.php?personID=I2587&tree=jegersberg Jegersberg.com ]
 +
| [[User:Cfj|C Jegersberg]]
 +
| Public/Private
 +
| 12.0.0.1
 +
| 12.0.2
 +
| NO,EN
 +
 +
|- style="vertical-align:top;"
 +
| [http://www.chubbuckgenealogy.com/ Chubbuck &amp; Ware Genealogy]
 +
| [[User:tngweb|Marc Chubbuck]]
 +
| User &amp; Hosting Provider
 +
| 10.1.2.2
 +
| 11.0.1
 +
| EN
 +
 +
|- style="vertical-align:top;"
 +
| [https://acadianfamily.com/ Our Acadian Family]
 +
| [[User|Randal Suire]]
 +
| Hide media mod fantastic.
 +
| 11.1.1.3b
 +
| 11.1.2
 +
| EN,FR
 +
 +
|- style="vertical-align:top;"
 +
| [http://www.blumensaadt-ingemand.dk www.blumensaadt-ingemand.dk]
 +
| [[User:Ingemand]]
 +
| Great mod
 +
| 11.0.0.2
 +
| 11.0.2
 +
| SE,EN,DE,DK,NO,ES,FR,NL
 +
 +
|- style="vertical-align:top;"
 +
| [http://www.ccggpa.org/cemeteries/index.php Crawford County Genealogy Gateway]
 +
| [[User:Fraber|Frank Bernosky]]
 +
| Public site
 +
| 11.1.1.3
 +
| 11.1.1
 +
| EN
 +
 +
|- style="vertical-align:top;"
 +
| [https://www.craswell.ca/ Your Roots are Showing]
 +
| [[User:crashar|Harold Craswell]]
 +
| Public site
 +
| 11.1.1.3
 +
| 11.1.1
 +
| EN
 +
 +
|- style="vertical-align:top;"
 +
| [http://www.familiestamboom.frl/ Familiestamboom.frl]
 +
| [[User:Renze|Renze Petersohn]]
 +
| Public site
 +
| 11.1.1.3B
 +
| 11.1.2
 +
| EN,DE,NL,FR
 +
 +
|- style="vertical-align:top;"
 +
| [http://geneagraphie.com/ Geneagraphie.com]
 +
| [[User:Henri Textor|Hans Weebers]]
 +
| Public site
 +
| 12.0.0
 +
| 12.0.1beta
 +
| NL,EN,DE,FR
 +
 +
|- style="vertical-align:top;"
 +
| [http://www.colegenealogy.net/ The Cole / Tanner Family Tree]
 +
| [[User:dlcole|David Cole]]
 +
| Public/Private
 +
| [[User:Dlcole|see here]]
 +
| [[User:Dlcole|see here]]
 +
| EN,DE,FR,ES,NL
 +
 +
|- style="vertical-align:top;"
 +
| [https://lloyd-lucas.kiwi.nz Lloyd & Lucas - A Merging of Interests]
 +
| [[User:ChrisLnz|Chris Lloyd]]
 +
| Public site
 +
| 12.0.0.1
 +
| 12.0.1
 +
| EN
 +
 +
|- style="vertical-align:top;"
 +
| [https://bourdeaux.de Genealogische Datenbank]
 +
| [[User:JPB|JPB]]
 +
| Public site
 +
| [[User:JPB|see here]]
 +
| [[User:JPB|see here]]
 +
| DE,EN,FR
 +
 +
|- style="vertical-align:top;"
 +
| [http://jarocinscy.pl/drzewo/index.php Baza danych Rodziny Jarocińskich]
 +
| [[User:Mjaro|Michał Jarociński]]
 +
| non-public site
 +
| 12.3.0.3a
 +
| 12.3, T7
 +
|
 +
 +
|- style="vertical-align:top;"
 +
| [https://ahnenklein.com/ Auf den Spuren meiner Ahnen]
 +
| style="white-space: nowrap;"|[[User:Maikl11|Michael Klein]]
 +
| Public/Private
 +
| 14.0.3.3
 +
| {{Tv1403}}
 +
| EN,DE,FR,ES,NL
 +
 +
|- style="vertical-align:top;"
 +
| [https://scabell.de/ Familienforschung Scabell]
 +
| [[User:Helgaskally|Helga Scabell]]
 +
| Public / Private
 +
| 12.3.0.3c
 +
| 13.0.1
 +
| DE,EN,PT
 +
 +
|- style="vertical-align:top;"
 +
| [https://kattau-cloud.goip.de/tng/ Familenforschung Kattau]
 +
| [[User: Ukattau|Uwe Kattau]]
 +
| Public/Private
 +
| 13.0.0.4
 +
| 13.0.2
 +
| DE
 +
 +
|- style="vertical-align:top;"
 +
| [https://www.hangard.com/tng/ Hangaard Genealogy]
 +
| [[User: Dhangard|David Hangard]]
 +
| Public/Private
 +
| 13.0.4.0
 +
| 13.0.4
 +
| EN,NO
 +
 +
|- style="vertical-align:top;"
 +
|[https://theruegers.ca Dabbling in Genealogy]
 +
|Jeff Rueger
 +
|Public
 +
|14.0.3.3
 +
|14.0.3
 +
|EN
  
== TNG Modules Impacted ==
+
|- style="vertical-align:top;"
 +
| [https://www.craswell.ca/ Your Roots are Showing]
 +
| [[User:crashar|Harold Craswell]]
 +
| Public/Private
 +
| [https://www.craswell.ca/rrmodcompare_report.php?power=basic&cachemethod=3&sb=filename&aformat=full&statushilite=1&b1=0 See Here]
 +
| [https://www.craswell.ca/rrmodcompare_report.php?power=basic&cachemethod=3&sb=filename&aformat=full&statushilite=1&b1=0 See Here]
 +
| EN
  
 +
|- style="vertical-align:top;"
 +
| [https://slekt.solem.info/ Solem Genealogy]
 +
| [[User:JTS|Jan-Thore Solem]]
 +
| Private
 +
| 14.0.1.0
 +
| 14.0.2
 +
| EN,NO
  
'''NOTE:''' The file <span style="color: #FF00FF">'''config.php'''</span> is not midified by the mod but will be affected by the actions of the modified file ''admin_updateconfig.php'',<br/>and <span style="color: #FF00FF">'''should be backed up prior to installing this mod'''</span>.
+
|- style="vertical-align:top;"
 +
| [https://www.ahs3.net/ stone/mott genealogy]
 +
| [[User:Ahs3|Albert Stone]]
 +
| Private
 +
| 14.0.3.3
 +
| {{Tv1404}}
 +
| EN
 +
|}
  
 +
== TNG Modules Impacted ==
 +
'''NOTE:''' The file <span style="color: #FF00FF">'''config.php'''</span> is not modified by the mod but will be affected by the actions of the modified file ''admin_updateconfig.php'',<br/>and <span style="color: #FF00FF">'''should be backed up prior to installing this mod'''</span>.
  
 
The following TNG Modules are modified, and should be backed up prior to installing this mod:<br />
 
The following TNG Modules are modified, and should be backed up prior to installing this mod:<br />
Line 390: Line 834:
 
* admin_updateconfig.php
 
* admin_updateconfig.php
 
* ahnentafel.php
 
* ahnentafel.php
 +
* cemeteries.php
 
* descend.php
 
* descend.php
 
* descendtext.php
 
* descendtext.php
 
* extrastree.php
 
* extrastree.php
 +
* familychart.php
 
* familygroup.php
 
* familygroup.php
 +
* functions.php
 
* genlib.php
 
* genlib.php
 
* getperson.php
 
* getperson.php
 
* globallib.php
 
* globallib.php
 +
* headstones.php
 +
* mostwanted.php
 
* pedbox.php
 
* pedbox.php
 
* pedigree.php
 
* pedigree.php
Line 403: Line 852:
 
* placesearch.php
 
* placesearch.php
 
* register.php
 
* register.php
 +
* showmap.php
 
* verticalchart.php
 
* verticalchart.php
 
+
* whatsnew.php (from v11.0.0.2)
  
 
The following TNG Modules vill only have re-direction code added to the beginning,<br/>and should also be backed up prior to installing this mod:<br />
 
The following TNG Modules vill only have re-direction code added to the beginning,<br/>and should also be backed up prior to installing this mod:<br />
Line 424: Line 874:
 
* suggest.php
 
* suggest.php
 
* timeline.php
 
* timeline.php
* whatsnew.php
 
  
 
+
The custom texts will be added to these files, which should also be backed up prior to installing this mod:<br />
The custom texts will be added to these files, which should also be backed up prior to installing this mod:
 
 
* languages/English/cust_text.php
 
* languages/English/cust_text.php
 
* languages/English-UTF8/cust_text.php
 
* languages/English-UTF8/cust_text.php
 +
* languages/Dutch/cust_text.php - if present
 +
* languages/Dutch-UTF8/cust_text.php - if present
 +
* languages/French/cust_text.php - if present
 +
* languages/French-UTF8/cust_text.php - if present
 +
* languages/German/cust_text.php - if present
 +
* languages/German-UTF8/cust_text.php - if present
 +
* languages/Swedish/cust_text.php - if present
 +
* languages/Swedish-UTF8/cust_text.php - if present
  
 
+
These images will be copied to your (root) img folder:<br />
These images will be copied to your (root) img folder:
 
 
* xerxxNonotes.png
 
* xerxxNonotes.png
 
* xerxxNoalbums.png
 
* xerxxNoalbums.png
Line 444: Line 899:
 
* xerxxNomedia.png
 
* xerxxNomedia.png
  
 
+
[[Category:Mods for TNG v14]]
 +
[[Category:Mods for TNG v13]]
 +
[[Category:Mods for TNG v12]]
 +
[[Category:Mods for TNG v11]]
 
[[Category:Mods for TNG v10]]
 
[[Category:Mods for TNG v10]]
  
Line 456: Line 914:
 
[[Category:browserepos.php mods]]
 
[[Category:browserepos.php mods]]
 
[[Category:browsesources.php mods]]
 
[[Category:browsesources.php mods]]
 +
[[Category:cemeteries.php mods]]
 
[[Category:descend.php mods]]
 
[[Category:descend.php mods]]
 
[[Category:descendtext.php mods]]
 
[[Category:descendtext.php mods]]
 
[[Category:extrastree.php mods]]
 
[[Category:extrastree.php mods]]
 
[[Category:familygroup.php mods]]
 
[[Category:familygroup.php mods]]
 +
[[Category:functions.php mods]]
 
[[Category:gedform.php mods]]
 
[[Category:gedform.php mods]]
 
[[Category:genlib.php mods]]
 
[[Category:genlib.php mods]]
 
[[Category:getperson.php mods]]
 
[[Category:getperson.php mods]]
 
[[Category:globallib.php mods]]
 
[[Category:globallib.php mods]]
 +
[[Category:headstones.php mods]]
 +
[[Category:mostwanted.php mods]]
 
[[Category:pedbox.php mods]]
 
[[Category:pedbox.php mods]]
 
[[Category:pedigree.php mods]]
 
[[Category:pedigree.php mods]]
Line 474: Line 936:
 
[[Category:reports.php mods]]
 
[[Category:reports.php mods]]
 
[[Category:showalbum.php mods]]
 
[[Category:showalbum.php mods]]
 +
[[Category:showmap.php mods]]
 
[[Category:showmedia.php mods]]
 
[[Category:showmedia.php mods]]
 
[[Category:showrepo.php mods]]
 
[[Category:showrepo.php mods]]
Line 482: Line 945:
 
[[Category:verticalchart.php mods]]
 
[[Category:verticalchart.php mods]]
 
[[Category:whatsnew.php mods]]
 
[[Category:whatsnew.php mods]]
 +
 
[[Category:cust_text.php English mods]]
 
[[Category:cust_text.php English mods]]
 +
[[Category:cust_text.php Dutch mods]]
 +
[[Category:cust_text.php French mods]]
 +
[[Category:cust_text.php German mods]]
 +
[[Category:cust_text.php Swedish mods]]

Latest revision as of 21:27, 10 March 2024


Ambox notice.png The latest version of this mod uses the guidelines for TNG v12+ cust_text.php files. If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]

TNG 14.0
TNG 13.0
TNG 12.0


Public Access Control
Summary Introduces a panel in General Settings to restrict public access to selected parts of your TNG system.
Validation The mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 22 Oct 2023
Download link For
TNG 14.0.3
Public_Access_Control_v14.0.3.3.zip
For
TNG 14.0.1
Public_Access_Control_v14.0.1.0.zip
For
TNG 14.0
Public_Access_Control_v14.0.0.0.zip
For
TNG 13.1.0
Public_Access_Control_v13.1.0.0.zip
For
TNG 13.0.4
Public_Access_Control_v13.0.4.0.zip
For
TNG 13.0
Public_Access_Control_v13.0.0.4.zip
For
TNG 12.3.0
public_access_control_v12.3.0.3c.zip
For
TNG 12.1.0
public_access_control_v12.1.0.2.zip
For
TNG 12.0
Public_access_control_mod_v12.0.0.1.zip
For
TNG 11.1.1
Public_access_control_mod_v11.1.1.3b.zip
For
TNG 11.0
Public_access_control_mod_v11.0.0.3b.zip
For
TNG 10.1.2
Public_access_control_mod_v10.1.2.3.zip
Download stats Public Access Control prior to TNG v14
Author(s) Erik Hoppe
Jeff Rueger now updates the CFG file so that it can be installed on new versions of TNG
Homepage Public Access Control (This page)
Mod Support TNG Community Forums: TNG Specific - Code Discussion - Addons
Contact Developer
Latest Mod 14.0.3.3 for TNG 14.0.3
14.0.0.0 for TNG 14.0
13.1.0.0 for TNG 13.1.0
13.0.4.0 for TNG 13.0.4 and PHP 8.0
13.0.0.4 for TNG 13.0
12.3.0.3b for TNG 12.3
12.1.0.2 for TNG 12.1
12.0.0.1 for TNG v12.0
11.1.1.3b for TNG v11.1.1
11.0.0.3b for TNG v11.0.x
10.0.0.3 for TNG v10.0.0 - 10.0.2
10.0.3.3 for TNG v10.0.3
10.1.0.3 for TNG v10.1.0 - 10.1.1
10.1.2.3 for TNG v10.1.2 - 10.1.3
Min TNG V 10.0.0
Max TNG V 14.0.3
Files modified
Related Mods
Notes
Author of TNG Colouring Book
Mods by me: At my user page.

Preface

These mods were formerly known as Access Panel Beta... and are a compilation of my mods AccessRestriction and AccessRestriction_More, done for TNG v10.

These mods make all the above mods obsolete for use with TNG v10.

Purpose of the mod

Introduces a panel in Administration >> Setup >> General Settings: The Public Access panel, where you can select which parts of your TNG system that you want to hide from the Public Guests (or require a login), while keeping permissions and restrictions for your logged in users intact.
Corresponding Drop-Down menu items will also be protected while static menus will not be visually affected but a selection will re-direct to the Log In page.

This mod enjoys the company of my Collapsible_Standard_Events mod or Jeff Robison's Show/Hide_Standard_Events mod. (See Edit Option below)

Developer

This mod was developed by Erik Hoppe.
See Mod Support in the data box top right.
(A list of all my mods is found at my user page)

This mod is being maintained by Jeff Rueger who is updating the CFG file so that it can be installed on new versions of TNG (currently updated for TNG v14.0). No new functionality is being added. Support from Jeff Rueger is limited to the CFG file updates.

TNG v12.1 was updated by Jürgen P. Bourdeaux, Ron Krzmarzick, Brent Hemphill who resolved the issue with Show Photo in single row change in TNG 12.1 and resolved the conflict with Mobile Site Enhancements), and Ken Roy who resolved the conflict with Regroup Person Profile)

Credits

My sincere Thank You to Henny Savenije for his wonderful patience, suggestions and testing of this mod.
And likewise to Martin Pannier who has been helping and testing a lot as well as pointing me to important details and giving great suggestions.
Jay Wilpolt also suggested and helped a lot, especially with the tests for v10.0.3.0.
Without you three and your constant encouragement, this mod would not be in its current state!
Thank You!

Un-Protect The "Contact Us" Link

If you protect the Suggest tab and have a link "Contact us" at your index.php page with this text:
If you have any questions or comments about the information on this site, please contact us. We look forward to hearing from you.
it's useless as clicking the link opens the Log-in page.
It's however possible to open the Suggest page from the Mostwanted page because of a parameter in the URL.
You can use the same parameter for the "Contact us" link:

Look in languages/ your language /text.php for the variable

$text['contactus_long']

and copy all of it to your languages/ your language /cust_text.php
In the copy, find this part:

<a href=\"suggest.php\">

and between the php and the \ you add:

&amp;xpTpart=mostwanted

so it looks like this:

<a href=\"suggest.php&amp;xpTpart=mostwanted\">

The whole thing should look like this - in your language of course:

$text['contactus_long'] = "If you have any questions or comments about the information on this site, please <span class=\"emphasis\"><a href=\"suggest.php&amp;xpTpart=mostwanted\">contact us</a></span>. We look forward to hearing from you.";

Do the same for each language you support at your site.

Mod Conflicts

NOTE that this table only shows reports for mods installed with some remark, under P.A.C. mod versions 10.1.0.2 and 10.1.2.2.
Other mod versions may show similar or different results.
Many more mods have been tested without remarks.
Please add to this list, thank you.

Mod By Version Test in
TNG v10.1.1 +
PAC v10.1.0.2
Test in
TNG v10.1.2 +
PAC v10.1.2.2
Installed Before
Public Access
control mod
Installed After
Public Access
control mod
Same
res f.
TNG v11.0.0
+ PAC v11.0.0.0
Note
Drop_Down_Menu_Tooltip Jeff Robison v10.0.3.1 Y Y (Failure?) EH Success EH Yes (Depends on made Edits?)
Media_Preview_Fixed Jeff Robison v9.2.2.2 Y No Failure EH Success EH n/a Conflicts with Mobile_Media
Not used in TNG v > 10.1.1
v10.1.2.0 No Y Success EH Success EH Yes Not used in TNG v < 10.1.2
Mobile_Media Ken Roy v10.1.1.4 Y No Failure EH Success EH n/a Obsolete for TNG v10.1.2
Mobile_Site_Enhancements Ken Roy v10.1.0.3 Y No Failure EH Success EH n/a Not used in TNG v > 10.1.1
v10.1.2.4 No Yes Failure EH Success EH n/a Not used in TNG v < 10.1.2
v11.0.0.1 No No Failure EH Success EH Yes (Only tested in TNG v11-environm.)
v12.1.0.4a No No Failure JPB Success JPB TNG V12.1 alpha versions of mod
v12.1.0.5a No No Success Ken Roy Success Ken Roy TNG V12.1 latest versions of both mods
Restrict_Image_Preview Graham Chamberlain v10.1.2.4 TNG 10.1.3 + PAC 10.1.2.2b Failure CL Success CL Yes Thanks to Chris Lloyd for reporting
NEW: Forum for TNG Erik Hoppe All versions All versions Failure MC Success MC Yes Thanks to Marc Chubbuck for reporting
NEW: NearD Support Bill Herndon v12.0.0.3 Not applicable Failure BH Failure BH Yes Reported by Bill Herndon
NEW: Cemetery_Burials_Table Robin Richmond v13.0.0.16 Not applicable Failure TB Failure TB N/A Reported by TBirdUK
 If a mod is "Installed Before" with Failure and "Installed After" with Success,
 the mod should be UNinstalled while the Public Access Control mod is installed or uninstalled.
 The mod can be re-installed after the Public Access Control mod has been installed or uninstalled.


Placesearch-More Info mod v5e and earlier by Robin Richmond can NOT be used with PAC! (v5f can be used)
The below is added to all involved mods:
Of my mods, some demand a special order to Install and Uninstall. This is one of them.
Installing / Uninstalling in the wrong order may create chaos at a later stage.
The mods may signal Okay to Install but nevertheless may not be.

Order to INSTALL:

All mods below the one you want to Install, must first be Uninstalled (if you use them).
See the Uninstall order below. You can Install them after.

  1. Maternal And Paternal Lines
  2. Scrollbox
  3. Public Access Control
  4. Forum for TNG
  5. Fixed Family Tab


Order to UNINSTALL:
All mods above the one you want to Uninstall, must first be Uninstalled (if you use them).
You can Install them after. See the Install order above.

  1. Fixed Family Tab
  2. Forum for TNG
  3. Public Access Control
  4. Scrollbox
  5. Maternal And Paternal Lines


Example:
Suppose you use the Scrollbox and Fixed Family Tab mods.
Now you want to install Maternal And Paternal Lines.
As you can see in the Install Order both the used mods are below the Maternal And Paternal Lines mod and therefore you must first Uninstall the mods in the Uninstall order:
First Uninstall the Fixed Family Tab mod and then the Scrollbox mod.
Now you can install all three mods in the Install order:
First you Install Maternal And Paternal Lines, second the Scrollbox mod and finally Fixed Family Tab.

Mod Makers: Innermenu for Your mods

If you add a selection to the innermenu of any of the scripts descend.php, familygroup.php, getperson.php or pedigree.php and it opens a custom page, you can use the code-snippets below in your script to make your innermenu look the same as in the calling script, whether this mod is installed or not.

If an item is hidden from public view in the innermenu of, f.ex, descend.php it will be displayed at your innermenu and the user will arrive at the Log in page if it is clicked.
Using the code below will prevent the item to be displayed if the
Public Access control' mod is/will be installed and the item is/will be hidden.

If the Public Access control mod is not installed, there is no difference.

Only the relevant part of the innermenu is shown and only lines containing $xerxxProtect[ ] are added to the original script.
All four innermenus in a zipped .txt file

What is Not protected

  • Media displayed by other mods may not be protected, depending on how the mod displays the media.
  • Media displayed at index.php (f.ex. a Random or Featured Photo) may not be protected
  • The Most Wanted page will show media and suggest.php will open if the link on the Most Wanted page is clicked.

The TNG "event" named Associations is not protected by this mod.

Requirements

TNG version: 10.1.0
  • A working TNG installation.
  • A backup of all affected files (see the list below)
  • An installed current version of the Mod Manager (is already included in TNG v10.x)

Before installation

  • If you have installed AccessRestriction, AccessRestriction More and/or Access Panel mods, you must first
  1. Uninstall the one(s) you have
  2. Remove the .cfg file(s) and the folder AccessRestrictionX from your mods folder

Installation

  1. Click on the download link for your TNG version, shown in the summary in the upper right corner of the page.
  2. Un-zip the downloaded file and you will find a folder: Open it.
  3. Move/copy/FTP the .cfg file and the folder named PublicAccessControl_10 to the mods folder of your TNG system.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.
  5. Re-install any mods that you had to uninstall in order to be able to install the Public Access Control 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 and then
  2. Click the Delete button to delete the config file from the mods folder.

In all cases: Go to Setup >> General Settings and click the Save button to clear the config.php file from the protection flags.

Upgrade

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

Edit option: Collapsible Standard Events

When the Public Access Control mod is used together with my Collapsible Standard Events mod or Jeff Robisons Show/Hide Standard Events mod, collapsible events can optionally be set to NOT collapsible if only icons and "Log in" are to be displayed.
Suppose that Notes and Media are protected by this mod, and...
Born is non-collapsible while Christened is set to collapsible:
Logged in view Not logged in view Default: "Christened" = initially collapsed.
Access collaps.png Pacmodimg1.png
Not logged in view Default: "Christened" = user expanded.
Pacmodimg2.png
Not logged in view: Optional behaviour
Access collaps NLI.png
As the Christened event is set to Collapsible but was only going to display the icons and "Log in" text, only the data is displayed and the event is not collapsible.
(My No_Notesring mod is active; it removes the small ring and increases the space between Notes)

After Installation

Go to Administration >> Setup >> General Settings to find the Public Access panel.
Set the public view to your liking and click the Save button.

Complete Description of Settings

A complete description of all settings, including how they interact with your settings in Trees (Gedcom and PDF permissions) and Site Design and Definition (displaying the Share, Print and Bookmark icons), is found here: Public Access Control settings

Custom Text Additions

The config file includes the English language custom text.
There are Dutch, French, German and Swedish translations if they are present in your TNG system.
For other languages you can modify the config file to add the custom text or manually add to whatever language you like.

English custom text For Reference Only!


$text['textHide'] = "Hide";
$text['textMedia'] = "Media";
$text['textNotes'] = "Notes";
$text['textRepositories'] = "Repositories";
$text['textSources'] = "Sources";
$text['textReports'] = "Reports";
$text['textRelationship'] = "Relationship";
$text['textExtractgedcom'] = "GEDCOM";
$text['textSuggest'] = "Suggest";
$text['textAncestors'] = "Ancestors";
$text['textDescendants'] = "Descendants";
$text['textTimeline'] = "Timeline";
$text['textShare'] = "Share";
$text['textPrint'] = "Print";
$text['textBookmark'] = "Bookmark";
$text['textLogin'] = "Log in";
$text['textCemeteryMap'] = "Cemetery map";

$text['xerxxProtectPanel'] = "Public Access";
$text['xerxxProtectShow'] = "Show";
$text['xerxxProtectTab'] = "Tab ";
$text['xerxxProtectTextStart'] = "Select ";
$text['xerxxProtectTextEnd'] = " to hide from public view";
$text['xerxxProtectTextFull'] = " and require ";
$text['xerxxProtectData'] = "Data";
$text['xerxxProtectIcons'] = "Icons";
$text['xerxxProtectTabs'] = "Tabs";
$text['xerxxProtectTSelections'] = "Tab <i>Selections</i>";
$text['xerxxProtectAhnentafel'] = "Ahnentafel";
$text['xerxxProtectPDF'] = "PDF";
$text['xerxxProtectRegister'] = "Register";

$text['xerxxProtectHideSet'] = "<u>When "" . $text['textHide'] . "" is set:</u> ";
$text['xerxxProtectLogInSet'] = "<u>When "" . $text['textLogin'] . "" is set:</u> ";
$text['xerxxProtectShowSet'] = "<u>When "" . $text['xerxxProtectShow'] . "" is set:</u><br />";
$text['xerxxProtectExpl1'] = "Will show icon, text and and Log in link.";
$text['xerxxProtectExpl2'] = "PDF printing opt for Tabs <i>Individuial</i><br />and <i>Family</i> are hidden from public view.<br />";
$text['xerxxProtectExpl3'] = "Will only affect Not logged in users.<br />";
$text['xerxxProtectExpl4'] = " permissions for all are set in";
$text['xerxxProtectExpl5'] = "For Logged in users permissions are set in";
$text['xerxxProtectExpl6'] = " Admin >> Trees.<br />";
$text['xerxxProtectExpl7'] = "All";
$text['xerxxProtectExpl8'] = "<br />Admin >> Setup >> General Settings >> Site Design and Definition.<br />";

$text['xerxxLogin'] = " (Log in)";
$text['xerxxNoaccount'] = "You need a user account to ";
$text['xerxxNoaccountView'] = "view ";
$text['xerxxNoaccountListen'] = "listen to ";
$text['xerxxNoaccountRead'] = "read ";

$text['xerxxAPanelAlsoHides'] = "Also hides";
$text['xerxxAPanelAll'] = "All:";
$text['xerxxAPanelHideAll'] = "Hide all";
$text['xerxxAPanelProtectAll'] = "Protect all";
$text['xerxxAPanelWLink'] = "For detailed information, see the Wiki page <a href='http://tng.lythgoes.net/wiki/index.php/Public_Access_Control' target='_blank'>Public Access Control</a> (sep. wind.)";

Revision History

Mod Version TNG Version Date Contents
14.0.3.3 14.03 22 Oct 2023 Updated for TNG v14.0.3 - only cfg file updated - no other changes - Jeff Rueger (jrueger)
14.0.1.0 14.0.1 11 Feb 2023 Updated for TNG v14.0.1 - only cfg file updated - no other changes - Ron Krzmarzick (Tngrlkz)
14.0.0.0 14.0 09 Jan 2023 Updated for TNG v14.0 - only cfg file updated - no other changes - Jeff Rueger (jrueger)
13.1.0.0 13.1 06 Nov 2021 Updated for TNG v13.1 - only cfg file updated - no other changes - Jeff Rueger (jrueger)
13.0.4.0 13.04 22 Jun 2021 Updated for TNG v13.0.4 and PHP v8.0 by forum user jrueger (some more PHP v8.0 by E Hoppe)
13.0.0.4 13.0 29 Nov 2020 Resolves conflicts with Robin Richmond's mods
13.0.0.3c 13.0 22 Sep 2020 Updated for TNG v13.0
12.3.0.3c 12.3 06 May 2020 Fix a mistake by Brent Hemphill.
12.3.0.3b 12.3 06 May 2020 Updated for TNG 12.3 conflict with Person Media Title by Brent Hemphill
12.3.0.3a 12.3 20 Mar 2020 Updated for TNG 12.3 by Ken Roy and Ron Krzmarzick
12.1.0.2 12.1 16 May 2019 Updated to
12.1.0.2-alpha-3 12.1 15 Apr 2019 Updated for suggest/edit tabs fix by Ron Krzmarzick , code changes only for those tabs, so it still does not support Show photos on one row.
12.1.0.2-alpha-2 12.1 24 Mar 2019 Updated for TNG 12.1 by Ken Roy to clearly show the conflict with the Mobile Site Enhancements mod. No code changes from V12.1.0.2-alpha, so it still does not support Show photos on one row.
12.1.0.2-alpha 12.1 18 Mar 2019 Updated for TNG 12.1 by JPB Currently does not support Show photos on one row.
12.0.0.1 12.0 07 July 2018 Corrected error in register.php. Thanks to Hans W for the alert.
12.0.0.0 12.0 14 May 2018 New version for TNG 12
11.1.1.3b 11.1 10 Jun 2017 French translation was missing a quote. Thanks to Randal Suire for the alert.
11.0.0.3b 11.0 10 Jun 2017 French translation was missing a quote. Thanks to Randal Suire for the alert.
11.1.1.3 11.1 v11.0.0.3 doesn't install under TNG v11.1.1 - thanks to Jan Holmberg and Harold Craswell for telling me.
(Kept index 3 from all other versions)
Also added section "Un-protect the 'Contact us' link" to the Wiki - thanks to Ingemand for the inspiration.
11.0.0.3 11.0 18 Jan 2017 Did not protect PDF in familychart.php. Thanks to Glenn for the alert.
11.0.02 11.0 18 Apr 2016 Due to a change in whatsnew.php (TNG v11) all media was protected also when logged in.
Thanks to Rob S for the alert.
10.0.0.3
10.0.3.3
10.1.0.3
10.1.2.3
11.0.0.1
29 Mar 2016 A conflict with No_Headstone_Photo_Report has been solved.
Thanks to Eilif N. for the alert.
11.0.0.0 11.0 18 Mar 2016 Update by Ken Roy for TNG 11.0 - tested by author.
10.0.0.2b
10.0.3.2b
10.1.0.2b
10.1.2.2b
30 Oct 2015 The MM-parameters had %end:% tags. Removed.
The WhatsNew page was only protected in the DD menu. NOT protected at all now.
Both noted by M. Pannier. Thanks.
10.0.0.2
10.0.3.2
10.1.0.2
10.1.2.2
19 Oct 2015 Protected DD-menu items are now removed from the menus.
If Media is protected, there is no Media DD-menu. See Visualization of this mod.
An error involving multiple Albums when Media is protected, is corrected.
10.0.0.1
10.0.3.1
10.1.0.1
10.1.2.1
09 Aug 2015 The behaviour of collapsible standard events is now optional (see Edit Option above)
10.0.3.0 10.0.3 24 Jul 2015 New release. After extensive testing by Jay Wilpolt.
10.0.0.0 10.0 24 Jul 2015 New release. After extensive testing by Jay Wilpolt.
10.1.2.0 10.1.2 07 Jul 2015 New.
After a lot of help and suggestions from Martin Pannier it looks like this could be worth Production status.
At the same time the name is changed from Access Panel to Public Access Control.
Dutch and French translations provided by Henny Savenije.
Dropdown menu selections are now protected.
10.1.0.0 10.1 07 Jul 2015 New
After a lot of help and suggestions from Martin Pannier it looks like this could be worth Production status.
At the same time the name is changed from Access Panel to Public Access Control.
Dutch and French translations provided by Henny Savenije.
Dropdown menu selections are now protected.

Access Panel revision history

Version Date Description
10.1.1.Beta11 9 Jun 2015 Added German (thanks Martin Pannier) and Swedish texts.
whatsnew.php does not require log in any more.
headstones.php and showmap.php are now protected (shows icons and Log in link). cemeteries.php will not show the "All Headstones" link. (Martin!)
Panel name is "Public Access" to emphasize that no user rights/restrictions are set there.
10.1.1.Beta9 2 Jun 2015 Did not install after Relationship Display mod, but before. Fixed. Thanks to Martin Pannier for the alert.
10.1.1.Beta8 1 Jun 2015 A small change to fit better with mobile_site_enhancements mod. Other lines make it not possible to install it before Access panel.
10.1.1.Beta7 31 May 2015 Introduction.

Visualization of this mod

Click here for screen-shots from a fully protected site and of graphic trees if they should be accessible.

The Public Access panel after mod installation: No restrictions are set
AccessPanel.png
The below images show results when Media, Notes and Sources are set to Log in.
Individ's Media section (part), Logged-in view (67%) The same individ's Media section (full), Not logged-in view (67%)
IndMedia1LI67.png IndividualBottomNLI67.png
Protected items will also protect the corresponding Drop-Down menu items
Everything is protected in this example (Public Guest view):
Xprotmenus.jpg

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
Treichel-Familie.de Andreas Treichel Public & Private 14​.0​.3​.3 14.0.3 DE,EN,FR,ES,PL
Jegersberg.com C Jegersberg Public/Private 12.0.0.1 12.0.2 NO,EN
Chubbuck & Ware Genealogy Marc Chubbuck User & Hosting Provider 10.1.2.2 11.0.1 EN
Our Acadian Family Randal Suire Hide media mod fantastic. 11.1.1.3b 11.1.2 EN,FR
www.blumensaadt-ingemand.dk User:Ingemand Great mod 11.0.0.2 11.0.2 SE,EN,DE,DK,NO,ES,FR,NL
Crawford County Genealogy Gateway Frank Bernosky Public site 11.1.1.3 11.1.1 EN
Your Roots are Showing Harold Craswell Public site 11.1.1.3 11.1.1 EN
Familiestamboom.frl Renze Petersohn Public site 11.1.1.3B 11.1.2 EN,DE,NL,FR
Geneagraphie.com Hans Weebers Public site 12.0.0 12.0.1beta NL,EN,DE,FR
The Cole / Tanner Family Tree David Cole Public/Private see here see here EN,DE,FR,ES,NL
Lloyd & Lucas - A Merging of Interests Chris Lloyd Public site 12.0.0.1 12.0.1 EN
Genealogische Datenbank JPB Public site see here see here DE,EN,FR
Baza danych Rodziny Jarocińskich Michał Jarociński non-public site 12.3.0.3a 12.3, T7
Auf den Spuren meiner Ahnen Michael Klein Public/Private 14.0.3.3
TNG 14.0.3
EN,DE,FR,ES,NL
Familienforschung Scabell Helga Scabell Public / Private 12.3.0.3c 13.0.1 DE,EN,PT
Familenforschung Kattau Uwe Kattau Public/Private 13.0.0.4 13.0.2 DE
Hangaard Genealogy David Hangard Public/Private 13.0.4.0 13.0.4 EN,NO
Dabbling in Genealogy Jeff Rueger Public 14.0.3.3 14.0.3 EN
Your Roots are Showing Harold Craswell Public/Private See Here See Here EN
Solem Genealogy Jan-Thore Solem Private 14.0.1.0 14.0.2 EN,NO
stone/mott genealogy Albert Stone Private 14.0.3.3
TNG 14.0.4
EN

TNG Modules Impacted

NOTE: The file config.php is not modified by the mod but will be affected by the actions of the modified file admin_updateconfig.php,
and should be backed up prior to installing this mod.

The following TNG Modules are modified, and should be backed up prior to installing this mod:

  • admin_genconfig.php
  • admin_updateconfig.php
  • ahnentafel.php
  • cemeteries.php
  • descend.php
  • descendtext.php
  • extrastree.php
  • familychart.php
  • familygroup.php
  • functions.php
  • genlib.php
  • getperson.php
  • globallib.php
  • headstones.php
  • mostwanted.php
  • pedbox.php
  • pedigree.php
  • pedigreetext.php
  • personlib.php
  • placesearch.php
  • register.php
  • showmap.php
  • verticalchart.php
  • whatsnew.php (from v11.0.0.2)

The following TNG Modules vill only have re-direction code added to the beginning,
and should also be backed up prior to installing this mod:

  • bookmarks.php
  • browsealbums.php
  • browsemedia.php
  • browsenotes.php
  • browserepos.php
  • browsesources.php
  • gedform.php
  • relateform.php
  • relationship.php
  • reports.php
  • showalbum.php
  • showmedia.php
  • showrepo.php
  • showreport.php
  • showsource.php
  • suggest.php
  • timeline.php

The custom texts will be added to these files, which should also be backed up prior to installing this mod:

  • languages/English/cust_text.php
  • languages/English-UTF8/cust_text.php
  • languages/Dutch/cust_text.php - if present
  • languages/Dutch-UTF8/cust_text.php - if present
  • languages/French/cust_text.php - if present
  • languages/French-UTF8/cust_text.php - if present
  • languages/German/cust_text.php - if present
  • languages/German-UTF8/cust_text.php - if present
  • languages/Swedish/cust_text.php - if present
  • languages/Swedish-UTF8/cust_text.php - if present

These images will be copied to your (root) img folder:

  • xerxxNonotes.png
  • xerxxNoalbums.png
  • xerxxNophotos.png
  • xerxxNodocuments.png
  • xerxxNoheadstones.png
  • xerxxNohistories.png
  • xerxxNorecordings.png
  • xerxxNovideos.png
  • xerxxNocitations.png
  • xerxxNomedia.png