Functions

Adds an author (re-creating them if they already exist - thus it also serves to edit; the reason for this is the fluidity of authors - members are automatically authors even before an author profile is made)

add_author(\ID_TEXT $author, \URLPATH $url, \?MEMBER $forum_handle, \LONG_TEXT $description, \LONG_TEXT $skills, \?SHORT_TEXT $meta_keywords, \?LONG_TEXT $meta_description) 

Parameters

$author

\ID_TEXT

The name of an author

$url

\URLPATH

The URL to the authors home page

$forum_handle

\?MEMBER

The member ID of the author (NULL: no forum profile)

$description

\LONG_TEXT

A description of the author

$skills

\LONG_TEXT

A terse string showing author skills

$meta_keywords

\?SHORT_TEXT

Meta keywords for this resource (NULL: do not edit) (blank: implicit)

$meta_description

\?LONG_TEXT

Meta description for this resource (NULL: do not edit) (blank: implicit)

Shows an HTML page of all authors clickably.

authors_script() 

Delete an author

delete_author(\ID_TEXT $author) 

Parameters

$author

\ID_TEXT

The name of an author

Get a member ID from an author name.

get_author_id_from_name(\ID_TEXT $author) : \?MEMBER

First by trying authors table, second by trying forum usernames.

Parameters

$author

\ID_TEXT

The name of an author

Returns

\?MEMBERThe member ID (NULL: none found)

Find if a member's usergroup has permission to delete an author

has_delete_author_permission(\MEMBER $member, \ID_TEXT $author) : boolean

Parameters

$member

\MEMBER

The member being checked whether to have the access

$author

\ID_TEXT

An author

Returns

booleanWhether the member can edit this author

Find if a member's usergroup has permission to edit an author

has_edit_author_permission(\MEMBER $member, \ID_TEXT $author) : boolean

Parameters

$member

\MEMBER

The member being checked whether to have the access

$author

\ID_TEXT

An author

Returns

booleanWhether the member can edit this author

Merge two authors.

merge_authors(\ID_TEXT $from, \ID_TEXT $to) 

Parameters

$from

\ID_TEXT

The first author (being removed effectively)

$to

\ID_TEXT

The second author (subsuming the first)