Protecting Template Data

From TMMwiki
Jump to: navigation, search
Skins & Templates Admin
Smarty Plugins
Editing Skins
Creating Skins
Switching Skins
Affiliate Stats Template
Affiliate Support Template
Affiliate Login Template
custom errors.php
Template Array Variable
Detailed Stats
NATS Variables
Dialer Statistics
Affiliate Signup
Post URL Variables
Member Usernames & Passwords
Output An Affiliate's Last Paid Date
Custom Program and Campaign Selection Pages
Username Recommendations
Password Retrieval
Post-Biller Templates
Geo-Target Join Options
Template Caching
Random Usernames and Passwords
Base Templates
Protecting Template Data
Mail Reseller Signup Template Variable Names
Smarty print array
News Section Templating
Affiliate Signup Email
Getting The NATSCode
Checking for Usernames on All Sites
Adding Stats to Affiliate Pages
Affiliate Join Page Linkcodes

NATS's five custom access options let you enable or disable parts of your administrator. You can use these options in templates yourself to enable or disable parts of your site. The value, "NO", is stored in the Smarty variables $usr_access.custom1 through $user_access.custom5 if the current admin shouldn't have access to this part of the site.


To hide part of a template to administrators without access to Admin Custom 1, edit the template, admin_reports_surfer_details and put the following code around the data to hide:

{if $usr_access.custom1 != 'NO'}
[Information to hide]