Difference between revisions of "User Variables"

From TMM Wiki
Jump to navigationJump to search
m
 
 
Line 3: Line 3:
 
}}
 
}}
  
CARMA user variables let you add variables to the current user's profile
+
[[CARMA]] allows the usage of custom user variables. This allows you to add variables to the current [[Ct#Member|member's]] profile, allowing you to store details for use in templates later on.
that you use in templates later. You create a user variable by having
 
the user load a URL containing the following code:
 
  
* uvar[variable]=value
+
To create a user variable, simply have a [[Ct#Member|member]] load a URL that contains the following code at the end:
  
Replace ''variable'' and ''value'' with the variable's name and value.
+
<pre>uvar[variable]=value</pre>
  
CARMA's default View Gallery and View Picture templates use user
+
Replace ''variable'' in the above example with your chosen variable's name, and ''value'' in the above example with your chosen variable's value.
variables to store the [[Member|member's]] thumbnail and picture size
+
 
preferences.
+
[[CARMA]] can use stored user variables in a variety of areas. For example, the default View Gallery (''show_gal'') and View Picture (''view_pic'') templates can use custom user variables to store the [[Ct#Member|member's]] thumbnail and picture size preferences.

Latest revision as of 14:58, 1 October 2010

CARMA
Templates Admin
Members Area Templates
Tour Templates
Member Favorites
Smarty Loops
Smarty Caching
Smarty print array
Base Templates
User Variables
Rating System

CARMA allows the usage of custom user variables. This allows you to add variables to the current member's profile, allowing you to store details for use in templates later on.

To create a user variable, simply have a member load a URL that contains the following code at the end:

uvar[variable]=value

Replace variable in the above example with your chosen variable's name, and value in the above example with your chosen variable's value.

CARMA can use stored user variables in a variety of areas. For example, the default View Gallery (show_gal) and View Picture (view_pic) templates can use custom user variables to store the member's thumbnail and picture size preferences.