Banners

The banner editor of the Energine 2.13 admin with banners, their places, types and visibility
Energine 2.13 admin — banners (interface in Russian)

There are two ways to place advertising: banners in banner places, and HTML inserts of a page.

  • «Баннерные места» (Banner places, /admin/ads-types/): «Системное имя» (System name), a name, «Ширина, px» (Width) and «Высота, px» (Height). An empty site has sidebar, «Боковая колонка» (Side column), 240×400; the demo content adds top, «Шапка сайта» (Site header), 728×90, and center, «Центр страницы» (Page centre), 468×60.
  • «Баннеры» (Banners, /admin/ads-items/): the place, a name, «Показывать» (Show), «Тип баннера» (Banner type) — «Изображение со ссылкой» (Image with a link) or «HTML-код» (HTML code) — «Сайты» (Sites) and, on the tab «Категории» (Categories), «Разделы» (Sections). The sections offered are the pages under «Рубрики баннеров» (Banner categories, /banners/, tagged ads), not the site's ordinary pages; a banner with no sections shows everywhere.
  • Energine\ads\components\Ads shows the active banners of its place — param type — for the current site and page: limit of them (1 by default), in random order unless order says otherwise. The placements that ship: topBanner (top) in the base layout, sidebarBanner (sidebar) on catalogue pages, centerBanner (center) on blog pages and the widget «Баннер» (Banner).
  • A banner is one for all languages. There are no statistics of views or clicks, and no start or end dates.

HTML inserts of a page

The page form has a tab of HTML inserts — its caption shows as TXT_ADS — with a field for each column of the table apps_ads: the release has ad_top_728_90 and ad_content_468_60. A section's inserts also apply to its subsections. The base layout prints them at the top of the page and above the content.

The HTML of banners and inserts is printed as it is: give the rights to edit it only to people you trust; see Known risks.