plainblack.com
Username Password
search
Bookmark and Share
Subscribe

Group Add Macro

^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. The third parameter allows you to specify the name of a template in the Macro/GroupAdd namespace to replace the default template.

NOTE: All these conditions must be met for the link to be displayed:

  • User must be logged in.
  • User must not already belong to the group.
  • The group must exist.
  • The group must be set up to allow auto adds.

This Macro may not be nested inside other Macros.

These variables are available in the template:

 

group.url The URL with the action to add the user to the group. group.text The supplied text string for the user to click on.

Keywords: macro

Search | Most Popular | Recent Changes | Wiki Home
© 2018 Plain Black Corporation | All Rights Reserved