My favorites | Sign in
Project Logo
                
Search
for
Parameters  
The parameters used in an WebLoginPE call.

&lang

All of the language strings in WebLoginPE are stored in a file in /webloginpe/lang/ (default is en.php). You can help translate en.php if you are multi-lingual.

As an example, if you used the French translation, you would call it like this...

[!WebLoginPE? &lang=`fr`!]

&type

WebLoginPE currently has six basic functions that determines what it can do when you call it in a page in MODx. They are...

[!WebLoginPE? &type=`users`!] 

&regType

There are two different types of registration...

[!WebLoginPE? &type=`register` &regType=`verify`!] 

&regRequired

This parameter allows you to specify what inputs are required for registration. The attributes you choose must be filled out, else an error message will appear and notify the user of the field(s) that is/are not properly filled out.

If you use verify/confirm form field, such as their password, add...

.confirm

to the end of the field you want to verify/confirm.

<input type="password" name="password" />
<input type="password" name="password.confirm" />
[!WebLoginPE? &type=`register` &regRequired=`email,username,fullname,password,formcode,tos`!]

&customTable, &customFields

By default, a table is created in your MODx database to store the user's data under the name web_user_attributes_extended, but you can override this functionality with the customTable parameter.

customFields is used for all the non-default attributes, such as their instant messaging accounts. This parameter can accept an unlimited amount of attributes.

[!WebLoginPE? &customTable=`my_web_users` &customFields=`website,aim,msn,city,address1`!] 

&prefixTable

By default, WebLoginPE will auto-append the MODx table prefix specified when you installed the script when looking for data in the database. If you already created your own table which does not use the default MODx table prefix, and you specified it in &customTable, you can set this parameter to 0 (default is 1).

[!WebLoginPE? &customTable=`a_table_i_created` &prefixTable=`0`!] 

Sign in to add a comment
Hosted by Google Code