Lockbox Page Information

Overview
You can easily add pages to any lockbox via the admin CP. Pages can contain any data and that data is only accessible to members. Note that if you are linking to external content, this will NOT be protected by the lockbox login system. Also, portal ONLY pages, contain no member data.
Adding Page Content
Use the built in WYSIWYG editor to add page content and format the content. If you are adding text information then this will be all you need to add member content.
Custom Templates
Using custom templates can add a lot of flexibility if you want to add PHP code or use third party code. Add custom templates as details on the add page docs page. If you are an advanced user you should protect external links in your code so they are not accessible on public forums. Some third party plugins can offer this protection.
Static Lockbox Variables
Static variables can be used as detailed here.

To access a static variable in your member pages, you can do either of the following:

1 Use the variable name in braces in your page content area.


Click the 'Lockbox Variables' link beneath a page textarea to view available variables.

2 Use variables directly in custom templates using the following object:

$this->VARIABLES

To see all available values do the following in your custom template .tpl.php file.

<?php
echo '<pre>' . print_r($this->VARIABLES, true) . '</pre>';
?>
Note that certain values may not appear if admin is logged in.
Dynamic Lockbox Variables
Dynamic variables can be used as detailed here.

Dynamic variables are used the same way as static variables, the only difference is they are used to call custom functions/methods.
Custom Template Objects
Custom templates offer greater flexibility as default data it always passed to these files. The following can be used in ALL custom template .tpl.php files which can help you structure your member data. If 'Scope' is ALL, data is available in all .tpl.php templates by default.
Type Name Scope Information
Array SETTINGS ALL Access any value from the settings table.

Example: $this->SETTINGS['website']
Object DB ALL Database class. Example: $this->DB->db_query('..').

See 'control/classes/class.db.php'.
Arrays TXT1 through to TXT8 and TXT30 ALL Language variables from $pblang1 to $pblang8 and $lng_30_portal.

Examples: $this->TXT1[0]; $this->TXT30[1];
Object PROC ALL Processor class. See 'control/classes/class.processor.php'.
Object PLDCT ALL Platform/mobile detection class.

Example: $this->PLDCT->isMobile();
String MASTER Members If admin is logged in, value is 'yes', otherwise, 'no'.
String PACKAGE_DETAILS Members Package detail string

Example: $this->PACKAGE_DETAILS
Object MEMBER Members Member object for logged in member.

Example: $this->MEMBER->name
Object BOX Members Lockbox object for logged in member.

Example: $this->BOX->name
Object PACKAGE Members Package object for logged in member.

Example: $this->PACKAGE->name
Array MEMBER_ONLY_PAGES Members Array of member only pages available to logged in member.
Array LOCKBOX_PAGES Members Array of all lockbox member pages available under existing member lockbox.
Array VARIABLES Members Lockbox variables available to logged in member.

Example: $this->VARIABLES['varname'];

All objects/arrays can be viewed as per the 'pre' code tag example above. You should always check that the variable/object you are accessing is available to prevent undefined/fatal errors.
PHP Code
As well as the above objects/arrays, standard PHP code can be used in any custom template .tpl.php file.
Restrict to Members
Pages can be restricted to members if you want to create a page only viewable for a certain member. More info here.
Feedback Requests
Something you would like to see available? Let me know via the support options.