This article details the basic configuration of OpenCrypt's Personal Page Redirection system, which enables a user to see their own personal page when logging in to a specific member's area.
Enabling Personal Page Redirection
Personal Page Redirection must be configured in two places, the global settings regarding file types are available in the 'Configuration -> System Settings -> Central Configuration' section of the OpenCrypt Administration Panel.
The 'Uniqe Personal Directory/File' option allows you to choose whether each member is given their own directory, or a file within the specified member's area. If 'No' is entered, the user will get their own directory in the member's area. If a directory name is entered, then a file will be created for each user in the location specified, with the default file extension. Some examples are listed below:
Set to No - Each member would get their own directory, for example www.opencrypt.com/members/myuser/ This is the most secure method, other members are prevented from accessing each others members directories with .htaccess protection.
Set to newdirectory - Each member would get their own file in the www.opencrypt.com/members/newdirectory/ directory. If HTML file extension is set to HTML, this would be www.opencrypt.com/members/newdirectory/myuser.html. This method is less secure as users may guess each others static HTML/PHP files. Please note, you may set HTML file extension to PHP if you wish to use PHP scripts for each user.
Once the Central Configuration is set correctly, Personal Page Redirection must be enabled in the specific member's areas requiring it. To do this, you will need to add or modify an existing member's area in the 'Configuration -> General Settings -> Member's Area Manager' section of the OpenCrypt Administration Panel.
Once you have opened or created a new member's area, simply tick the 'Enable Personal Page Redirection' checkbox at the bottom of the Modify/Add screen.
Configuring Templates for Personal Pages
Once personal page redirection is enabled, templates will need to be defined for each member's area that requires a personal page. This template must be defined in the 'System Settings -> Templates and Styles' section of the Administration Panel, or uploaded to the correct templates directory via FTP.
To create a new Personal Page template, select the 'Create New Template' option from the menu, once the editor is loaded, select 'Personal Page' as the template type, enter the language code, and for the template filename, ensure that the template is named per<mem area id>, so for a member's area ID of 3, per3.tmpl
You may use any standard HTML (and PHP if using PHP files) in each template, and in addition, all of the OpenCrypt variables are available to you.
As an example, the following code in a template would welcome the user, and display their account details using the logger.cgi include.
<p>Hello %username%,<br />|
Your registered email address is: %email%</p>
<p>You entered the following data in our additional field: %field1%</p>