Function __global->add_banner_type

Definitions

sources/banners2.php

  • Add a banner type.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$id ID_TEXT required parameter N/A N/A The ID of the banner type
$is_textual BINARY required parameter N/A N/A Whether this is a textual banner
$image_width integer required parameter N/A N/A The image width (ignored for textual banners)
$image_height integer required parameter N/A N/A The image height (ignored for textual banners)
$max_file_size integer required parameter N/A N/A The maximum file size for the banners in Kilobytes (this is a string length for textual banners)
$comcode_inline BINARY required parameter N/A N/A Whether the banner will be automatically shown via Comcode hot-text (this can only happen if banners of the title are given title-text)
$uniqify boolean False N/A N/A Whether to force the name as unique, if there's a conflict

Return

  • The name
  • Type: ID_TEXT
  • Set: N/A
  • Range: N/A