SSAB Merox AB
Paddex
61380 Oxelösund

Logga in

Om cookies

Webmasterns hörna

Hjälp: User Macros

These macros have to do with users and logins.

^a; or ^a(); - My Account Link
A link to your account information. In addition you can change the link text by creating a macro like this ^a("Account Info");.

NOTES: You can also use the special case ^a(linkonly); to return only the URL to the account page and nothing more. Also, the .myAccountLink style sheet class is tied to this macro.

^AdminText();
Displays a small text message to a user who is in admin mode. Example: ^AdminText("You are in admin mode!");

^AdminToggle; or ^AdminToggle();
Places a link on the page which is only visible to content managers and adminstrators. The link toggles on/off admin mode. You can optionally specify other messages to display like this: ^AdminToggle("Edit On","Edit Off");

^CanEditText();
Display a message to a user that can edit the current page.

Example: ^CanEditText(^AdminToggle;);

^EditableToggle; or ^EditableToggle();
Exactly the same as AdminToggle, except that the toggle is only displayed if the user has the rights to edit the current page.

^GroupAdd();
Using this macro you can allow users to add themselves to a group. The first parameter is the name of the group this user should be added to. The second parameter is a text string for the user to click on to add themselves to this group.

NOTE: If the user is not logged in, or or already belongs to the group, or the group is not set to allow auto adds, then no link will be displayed.

^GroupDelete();
Using this macro you can allow users to delete themselves from a group. The first parameter is the name of the group this user should be deleted from. The second parameter is a text string for the user to click on to delete themselves from this group.

NOTE: If the user is not logged in or the user does not belong to the group, or the group is not set to allow auto deletes, then no link will be displayed.

^GroupText();
Displays a small text message to the user if they belong to the specified group. And you can specify an alternate message to those who are not in the group.

Example: ^GroupText("Visitors","You need an account to do anything cool on this site!","We value our registered users!");

^L; or ^L(); - Login Box
A small login form. You can also configure this macro. You can set the width of the login box like this ^L(20);. You can also set the message displayed after the user is logged in like this ^L(20,Hi ^a(^@;);. Click %here% if you wanna log out!)

NOTE: The .loginBox style sheet class is tied to this macro.

^LoginToggle; or ^LoginToggle();
Displays a "Login" or "Logout" message depending upon whether the user is logged in or not. You can optionally specify other labels like this: ^LoginToggle("Click here to log in.","Click here to log out.");. You can also use the special case ^LoginToggle(linkonly); to return only the URL with no label.

^@; - Username
The username of the currently logged in user.

^#; - User ID
The user id of the currently logged in user.

Se vidare:

Ändrad: 2 december 2008

Hyttsten