You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jacob G edited this page Jan 3, 2016
·
3 revisions
Header links will be stored in the "header_links" config entry, in the following format:
Most basic element is <link>
Content of the tag is the text
If the "notranslate" attribute is not present, the text will be interpreted as a language key, otherwise it will be shown verbatim
It will be prefixed by the base URL the "path" attribute is used, but not if the "url" attribute is used instead
Variables:
$username$ = username
$reghash$ = registration hash used as an anti-bot measure (the stuff that goes after /register)
To determine which users an link shows up for, use the "perm" attribute, and it uses the following format:
List each user group attribute a user must have separated by spaces ("valid" means logged in, everything else is the g_ format from the database)
Use ~ to mean NOT
All listed permissions must be true, not just one
Example: "valid" means user must be logged in, "~valid" means the user is NOT logged in, "g_user_list g_edit_posts" means the user must be able to view the user list AND edit posts, and "g_mod_privs ~g_admin_privs" means the user must be a moderator AND NOT an administrator