Login Mod

From TNG_Wiki
Revision as of 10:15, 19 November 2009 by Rdmorss (talk | contribs)
Jump to navigation Jump to search

Once you select Require Login, all users are required to log in. However, you can work around this somewhat by creating a guest account with something like username: guest, password: guest. You can place some text on the front page and/or login.php page that gives them the guest login information. Then assign user guest to your public tree.

For example, you could place the following in login.php about line 55:

<table width="316" border="1">

  <tr>

    <td width="306"><p class="style1"><strong>For Guest access enter</strong>:</p>

    <p style="margin-bottom: 0;">USERNAME = guest </p>

    <p style="margin-top: 0; margin-bottom: 0;">PASSWORD = guest </p>

    <p style="margin-top: 0; margin-bottom: 0;"><em><span class="style2">The guest account has 
access to tree but not documents and photos. For full access, please  select Register for a User 
Account on menu to the left. </span></em><span class="style4">I've had to limit access due to 
problems with guest users.</span> </p></td>

  </tr>

</table>


Also, you can save guests the trouble of typing in the username and password by pre-filling the login form fields in login.php:

Replace

<input type="text" name="tngusername" size="20" />

With

<input type="text" name="tngusername" size="20" value="guest" />

AND

Replace

<input type="password" name="tngpassword" size="20" />

With

<input type="password" name="tngpassword" size="20" value="guest" />

Working example: Morss Family Genealogy


TNG User sites using this mod

  • Please add TNG site that you have found that utilize this modification

Site List