1. Create a new file and name it admin_example.php (You can change "example" to whatever you want, ensure the file name starts with "admin_")
2. Open up admin_example.php and add the following code:
- Code: Select all
<?php
$page = 'admin_example';
include 'admin_header.php';
include 'admin_footer.php';
?>
+ $page = 'admin_example'; - This links the PHP file with the TPL file.
3. Create a new file and name it admin_example.tpl (You can change "example" to whatever you want)
4. Open up admin_example.tpl and add the following code:
- Code: Select all
{include file='admin_header.tpl'}
some code that admins will see
{include file='admin_footer.tpl'}
5. Upload admin_example.php to the "admin" directory and admin_example.tpl to the "templates" directory.
6. You can access this file by going to: http://www.domain.com/admin/admin_example.php
+ Replace www.domain.com with your real domain name.

SocialEngineBASE