Changes

4,075 bytes added ,  10:45, 7 July 2015
no edit summary
Line 1: Line 1:  
{{TNGmod
 
{{TNGmod
| mod_name        = Access panel
+
| mod_name        = Public Access Control
 
| 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=45 Access_panel_mod_v10.1.1.Beta11.zip]
+
| download_link   = for {{Tv1012}}[https://xerxx.se/modSupport/click/click.php?id=9 Public_access_control_mod_v10.1.2.0.zip]<hr/>for {{Tv1011}}{{Tv1010}}[https://xerxx.se/modSupport/click/click.php?id=8 Public_access_control_mod_v10.1.0.0.zip]]
| download_stats = [http://ccount.ojay.de/index.php?action=stats&id=45 Access panel v10.1.1.Beta11]
+
| download_stats = [https://xerxx.se/modSupport/click/index.php?action=stats&groupid=3 Public Access Control v10.x]
 
| mod_author      = [[User:XerxX|Erik Hoppe]]
 
| mod_author      = [[User:XerxX|Erik Hoppe]]
| mod_url        = [[Access panel]] (this page)
+
| mod_url        = [[Public Access Control]] (this page)
| mod_support    = [https://xerxx.se/modSupport/index.php?mod=8 My Mod Support]
+
| mod_support    = [https://xerxx.se/modSupport/index.php?mod=12 My Mod Support]
| mod_contact    = [https://xerxx.se/modSupport/index.php?mod=8 My Mod Support]
+
| mod_contact    = [https://xerxx.se/modSupport/index.php?mod=12 My Mod Support]
| mod_version   = 10.1.1.Beta11
+
| mod_version     = 10.1.0.0 for TNG v10.1.0 - 10.1.1<br/>10.1.2.0 for TNG v10.1.2(b)
| min_TNG_ver    = 10.1.1
+
| min_TNG_ver    = 10.1.0
| max_TNG_ver    = 10.1.1
+
| max_TNG_ver    = 10.1.2
 
| TNG_file_list  = See [[Access_panel#TNG_Modules_Impacted|TNG Modules Impacted]]
 
| TNG_file_list  = See [[Access_panel#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__
 
|}
 
|}
== LATEST VERSION ==
  −
  −
<span style="color: #FF00FF"><big>'''The latest beta version is Beta #11'''</big></span>
  −
         
== Preface ==
 
== Preface ==
   −
This is a compilation of my mods [[AccessRestriction]] and [[AccessRestriction_More]], made for TNG v10.1.1.
+
These mods was formerly known as '''Access Panel Beta...''' and is a compilation of my mods [[AccessRestriction]] and [[AccessRestriction_More]], made 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.
      +
<span style="color: Red"><big>These mods make all the above mods obsolete for use with TNG '''v10'''</big></span><br/><span style="color: #FF00FF"><big>They '''shall be uninstalled and removed''' from your '''mods''' folder before installing this mod.</big></span>
       
== Purpose of the mod ==
 
== Purpose of the mod ==
   −
Introduces a panel in '''Set Up >> 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.
+
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 affected: A selection will re-direct to the ''Log In page''.
 
  −
 
  −
== 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.
+
This mod enjoys the company of my [[Collapsible_Standard_Events]] mod or [[User:Jefr58|Jeff Robison's]] [[Show/Hide_Standard_Events]] mod. (Se below: "Visualization...")
       
== Developer ==
 
== Developer ==
   −
This mod was developed by [[User:XerxX|Erik Hoppe]]
+
This mod was developed by Erik Hoppe.<br/>A list of all my mods is found at [[User:XerxX|my user page]]
       
== Credits ==
 
== Credits ==
   −
My sincere '''Thank You''' to [[User:Henny|Henny Savenije]] for his wonderful patience and thorough testing of this mod.<br/>'''Martin Pannier''' is also helping/testing a lot, pointing me to important details.
+
My sincere '''Thank You''' to [[User:Henny|Henny Savenije]] for his wonderful patience, suggestions and testing of this mod.<br/>'''And likewise''' to [[User:bauschaffender|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 helped with the final tests for v10.0.0.0.<br/>Without you and your constant encouragement, this mod would not be in its current state!
       
== Reported Successes / Failures with other mods ==
 
== Reported Successes / Failures with other mods ==
   −
Please add to this list and/or report [https://xerxx.se/modSupport/index.php?mod=8 by this Mod Support link], thank you.
+
Please add to this list and/or report [https://xerxx.se/modSupport/index.php?mod=12 by this Mod Support link], thank you.
 
   
{| border="1" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
 
{| border="1" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
 
|-
 
|-
Line 68: Line 54:  
! By
 
! By
 
! Version
 
! Version
! Installed Before<br/>Access p. mod
+
! Installed '''Before'''<br/>Public Access<br/>control mod
! Installed After<br/>Access p. mod
+
! Installed '''After'''<br/>Public Access<br/> control mod
 +
! Test in<br/>TNG v10.1.1 +<br/>PAC v10.1.0.0
 +
! Test in<br/>TNG v10.1.2b +<br/>PAC v10.1.2.0
 
! Note
 
! Note
 
|-
 
|-
Line 77: Line 65:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|
 
|
 
|-
 
|-
Line 84: Line 74:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|
 
|
 
|-
 
|-
Line 89: Line 81:  
| [[User:Ozigirl|Janice Nation]] et al
 
| [[User:Ozigirl|Janice Nation]] et al
 
| v10.1.0.3d
 
| v10.1.0.3d
| Success [[User:XerxX|E Hoppe]]*
+
| Success [[User:XerxX|E Hoppe]]
| Success [[User:XerxX|E Hoppe]]*
+
| Success [[User:XerxX|E Hoppe]]
| Only Installed mod
+
| Y
 +
| Y
 +
| Only Installed mod (not tables)
 
|-
 
|-
 
| [[Collapse_Family_Children]]
 
| [[Collapse_Family_Children]]
Line 98: Line 92:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|
 
|
 
|-
 
|-
Line 105: Line 101:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|
 
|
 +
|-
 +
| [[Drop_Down_Menu_Tooltip]]
 +
| [[User:Jefr58|Jeff Robison]]
 +
| v10.0.3.1
 +
| (Failure) [[User:XerxX|E Hoppe]]
 +
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 +
| (Depends on made Edits?)
 
|-
 
|-
 
| [[Family_Chart_Mod]]
 
| [[Family_Chart_Mod]]
Line 112: Line 119:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|  
 
|  
 
|-
 
|-
Line 119: Line 128:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|  
 
|  
 
|-
 
|-
Line 126: Line 137:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|  
 
|  
 
|-
 
|-
Line 133: Line 146:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|  
 
|  
 +
|-
 +
| rowspan="2" valign="top"|[[Media_Preview_Fixed]]
 +
| rowspan="2" valign="top"|[[User:Jefr58|Jeff Robison]]
 +
| valign="top"|v9.2.2.2
 +
| valign="top"|'''Failure''' [[User:XerxX|E Hoppe]]
 +
| valign="top"|Success [[User:XerxX|E Hoppe]]
 +
| valign="top"|Y
 +
| valign="top"|No
 +
| Conflicts with [[Mobile_Media]]<br/>'''See v10.1.0.3'''<br/>(9.2.2.2b not tested)
 +
|-
 +
| v10.1.0.3
 +
| Success [[User:XerxX|E Hoppe]] *
 +
| Success [[User:XerxX|E Hoppe]] *
 +
| Y
 +
| Y
 +
| (Public version?)
 
|-
 
|-
 
| [[Mobile_Media]]
 
| [[Mobile_Media]]
 
| [[User:Ken Roy|Ken Roy]]
 
| [[User:Ken Roy|Ken Roy]]
 
| v10.1.1.4
 
| v10.1.1.4
| '''Failure''' [[User:XerxX|E Hoppe]]*
+
| '''Failure''' [[User:XerxX|E Hoppe]]
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
|  
+
| Y
 +
| No
 +
| Obsolete for TNG v10.1.2
 
|-
 
|-
| [[Mobile_Site_Enhancements]]
+
| rowspan="2" valign="top"|[[Mobile_Site_Enhancements]]
| [[User:Ken Roy|Ken Roy]]
+
| rowspan="2" valign="top"|[[User:Ken Roy|Ken Roy]]
 
| v10.1.0.3
 
| v10.1.0.3
| '''Failure''' [[User:XerxX|E Hoppe]]*
+
| '''Failure''' [[User:XerxX|E Hoppe]]
 +
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| No
 +
| Not used in TNG v > 10.1.1
 +
|-
 +
| v10.1.2.4
 +
| '''Failure''' [[User:XerxX|E Hoppe]]
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
|  
+
| No
 +
| Y
 +
| Not used in TNG v < 10.1.2
 
|-
 
|-
 
| [[Mobile_Site_No_Previews]]
 
| [[Mobile_Site_No_Previews]]
Line 154: Line 196:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
|  
+
| Y
 +
| No
 +
| Obsolete for TNG v10.1.2
 
|-
 
|-
 
| [[Mobile_Site_No_Slideshow]]
 
| [[Mobile_Site_No_Slideshow]]
Line 161: Line 205:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
|  
+
| Y
 +
| No
 +
| Obsolete for TNG v10.1.2
 
|-
 
|-
 
| [[Person_Map]] mobile_ind_page_person_map
 
| [[Person_Map]] mobile_ind_page_person_map
Line 168: Line 214:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|  
 
|  
 
|-
 
|-
Line 175: Line 223:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|  
 
|  
 
|-
 
|-
Line 182: Line 232:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|
 
|
 
|-
 
|-
Line 189: Line 241:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|  
 
|  
 
|-
 
|-
Line 196: Line 250:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|  
 
|  
 
|-
 
|-
Line 203: Line 259:  
| Success [[User:XerxX|E Hoppe]]
 
| Success [[User:XerxX|E Hoppe]]
 
| Success [[User:XerxX|E Hoppe]]
 
| Success [[User:XerxX|E Hoppe]]
| Inst. f. single Test only.
+
| Y
 +
| Y
 +
| Inst. f. single test only.
 
|-
 
|-
 
| [[TextPlus_Charts]]
 
| [[TextPlus_Charts]]
Line 210: Line 268:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|
 
|
 
|-
 
|-
Line 217: Line 277:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|  
 
|  
   
|-
 
|-
 
| My own mods (f v10.1.1) [[User:XerxX|listed at my User page]]
 
| My own mods (f v10.1.1) [[User:XerxX|listed at my User page]]
Line 225: Line 286:  
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 
| Success [[User:XerxX|E Hoppe]]*
 +
| Y
 +
| Y
 
|  
 
|  
 
|-
 
|-
 
|}
 
|}
*) All mods I report are installed and run together in a TNG v10.1.1 system.
+
  *) These mods are installed and run together.
      Line 235: Line 298:  
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.
 
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.
   −
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/>
+
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/>
If the ''Access'' panel is not installed, there is no difference.
+
 
 +
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.<br/>'''[[Media:AccessPanelInnermenus.txt.zip|All four innermenus in a zipped .txt file]]'''
+
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]]'''
      Line 245: Line 309:  
* Media displayed by other mods may not be protected, depending on how the mod displays the media.
 
* 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
 
* Media displayed at ''index.php'' (f.ex. a ''Random'' or ''Featured Photo'') may not be protected
* Most Wanted '''will''' show media and ''suggest.php'' '''will''' open if the link on Most Wanted page is clicked.
+
* 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.<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.
 
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.
   Line 253: Line 318:  
== Requirements ==
 
== Requirements ==
   −
{{TNG 10.1.1}}
+
{{TNG 10.1.0|and after}}
 +
 
 
* 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''' and/or '''AccessRestriction More''' mods, you must first
+
* If you have installed '''AccessRestriction, AccessRestriction More''' and/or '''Access Panel''' 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 both be uninstalled so the [[Access panel]] mod can be installed.<br/>They can be re-installed after installing the Access panel mod.
+
* 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.
**[[Mobile Media]]  
+
**[[Media Preview Fixed]] (v9)
 +
**[[Mobile Media]] (for PAC v10.1.0.0)
 
**[[Mobile Site Enhancements]]
 
**[[Mobile Site Enhancements]]
   Line 271: Line 338:  
== Installation ==
 
== Installation ==
   −
# Click on the download link, shown in the summary in the upper  right corner of the page.
+
# Click on the download link for your TNG version, 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 Access panel mod
+
# Re-install any mods that you had to uninstall in order to be able to install the Public Access Control mod
      Line 282: Line 349:  
* Try using the [[Mod_Manager_-_Installing_Config_Files#Remove_Mod_Steps|Mod Manager Remove]] capability
 
* Try using the [[Mod_Manager_-_Installing_Config_Files#Remove_Mod_Steps|Mod Manager Remove]] capability
 
* Replace all affected files with the copies you made before the installation.
 
* Replace all affected files with the copies you made before the installation.
* Contact me through [https://xerxx.se/modSupport/index.php?mod=8 My Mod Support]
+
* Contact me through [https://xerxx.se/modSupport/index.php?mod=12 My Mod Support]
       
== After Installation ==
 
== After Installation ==
   −
Go to '''Admin >> Setup >> General Settings''' to find the '''Public Access''' panel.<br/>Set the public view to your liking and click the ''Save'' button.
+
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.
       
== Complete Description of Settings ==
 
== 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 ==  
   −
'''Note:''' A few texts are still hard-coded in English. Will be variables.
+
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 the English language custom text.<br />There are 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/>
+
'''English custom text For Reference Only!'''<br />
   −
'''English custom text For Reference Only!'''<br />
   
<pre>
 
<pre>
   Line 320: Line 386:  
$text['textBookmark'] = "Bookmark";
 
$text['textBookmark'] = "Bookmark";
 
$text['textLogin'] = "Log in";
 
$text['textLogin'] = "Log in";
 +
$text['textCemeteryMap'] = "Cemetery map";
    
$text['xerxxProtectPanel'] = "Public Access";
 
$text['xerxxProtectPanel'] = "Public Access";
Line 352: Line 419:  
$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.
         
== Uninstalling the mod ==
 
== 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 both be uninstalled so the [[Access panel]] mod can be uninstalled.<br/>They can be re-installed after uninstalling the Access panel 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.
**[[Mobile Media]]  
+
**[[Media Preview Fixed]] (v9)
 +
**[[Mobile Media]] (for PAC v10.1.0.0)
 
**[[Mobile Site Enhancements]]
 
**[[Mobile Site Enhancements]]
    
If  you want to completely '''Remove''' (uninstall) this mod and all its tables, you should  
 
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 '''Uninstall''' button to uninstall the mod and then
 
# Click the '''Delete''' button to delete the config file from the mods folder.
 
# Click the '''Delete''' button to delete the config file from the mods folder.
# <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.
+
 
 +
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.
       
== Revision History ==
 
== Revision History ==
 +
 +
{| border="1" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
 +
|-
 +
! Version
 +
! Date
 +
! Description
 +
|-
 +
| V10.1.0.0<br/>V10.1.2.0
 +
| 7 July 2015
 +
| Introduction.<br/>After a lot of help and suggestions from [[User:bauschaffender|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.
 +
|}
 +
 +
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 402: Line 486:  
'''[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 '''Access''' panel after mod installation: No restrictions are set
Line 415: Line 499:  
|[[File:indMedia1LI67.png]]
 
|[[File:indMedia1LI67.png]]
 
|valign="top"|[[File:individualBottomNLI67.png]]
 
|valign="top"|[[File:individualBottomNLI67.png]]
 +
|}
 +
 +
{| 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:accessFindMenu.png]]
 +
| valign="top"|[[File:accessMediaMenu.png]]
 +
| valign="top"|[[File:accessInfoMenu.png]]
 +
|}
 +
 +
{| 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 will not be collapsible if only icons and "Log in" are to be shown.<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
 +
|-
 +
|valign="top"|[[File:access_collaps.png]]
 +
|valign="top"|[[File:access_collaps_NLI.png]]<br/>As the '''Born''' event is not collapsible, the icons and "Log in" text are shown.<br/>As the '''Christened''' event is set to ''Collapsible'' but was only going to show the icons and "Log in" text, only the data is displayed and the event is not collapsible.<br/>(This great idea was suggested to me by ... ''I have lost the mail!'' Sorry...)
 
|}
 
|}
   Line 421: Line 525:     
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"
 
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 
|-
 
|-
Line 441: Line 546:     
== TNG Modules Impacted ==
 
== 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>.
 
'''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>.
Line 491: Line 595:       −
The custom texts will be added to these files, which should also be backed up prior to installing this mod:
+
The custom texts will be added to these files, which should also be backed up prior to installing this mod:<br />
 
* 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/cust_text.php - if present
 
* languages/German-UTF8/cust_text.php - if present
 
* languages/German-UTF8/cust_text.php - if present
Line 500: Line 608:       −
These images will be copied to your (root) img folder:
+
These images will be copied to your (root) img folder:<br />
 
* xerxxNonotes.png
 
* xerxxNonotes.png
 
* xerxxNoalbums.png
 
* xerxxNoalbums.png
Line 555: Line 663:  
[[Category:verticalchart.php mods]]
 
[[Category:verticalchart.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 German mods]]
 
[[Category:cust_text.php Swedish mods]]
 
[[Category:cust_text.php Swedish mods]]
'''Experienced'''
1,572

edits