Function __global->render_member_box
Definitions
sources/cns_members2.php
- Get a member display box.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $member_id | MEMBER | No | No | required parameter | N/A | N/A | Member ID |
| $preview | boolean | No | No | False | N/A | N/A | Whether only to show 'preview' details |
| $show_avatar | boolean | No | No | True | N/A | N/A | Whether to show the avatar |
| $extra_fields | array | No | No | [] | N/A | N/A | Map of extra fields to show |
| $give_context | boolean | No | No | True | N/A | N/A | Whether to include context (i.e. say WHAT this is, not just show the actual content) |
| $guid | ID_TEXT | No | No | Blank (empty string) | N/A | N/A | Overridden GUID to send to templates (blank: none) |
Returns
- The member box
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a member display box.
*
* @param MEMBER $member_id Member ID
* @param boolean $preview Whether only to show 'preview' details
* @param boolean $show_avatar Whether to show the avatar
* @param array $extra_fields Map of extra fields to show
* @param boolean $give_context Whether to include context (i.e. say WHAT this is, not just show the actual content)
* @param ID_TEXT $guid Overridden GUID to send to templates (blank: none)
* @return Tempcode The member box
*/
function render_member_box(int $member_id, bool $preview = false, bool $show_avatar = true, array $extra_fields = [], bool $give_context = true, string $guid = '') : object
* Get a member display box.
*
* @param MEMBER $member_id Member ID
* @param boolean $preview Whether only to show 'preview' details
* @param boolean $show_avatar Whether to show the avatar
* @param array $extra_fields Map of extra fields to show
* @param boolean $give_context Whether to include context (i.e. say WHAT this is, not just show the actual content)
* @param ID_TEXT $guid Overridden GUID to send to templates (blank: none)
* @return Tempcode The member box
*/
function render_member_box(int $member_id, bool $preview = false, bool $show_avatar = true, array $extra_fields = [], bool $give_context = true, string $guid = '') : object

