Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
glfusion:glbanner:start [2010/02/23 15:48] lee Add known issue re pubic variable declarations |
glfusion:glbanner:start [2017/10/06 16:31] lee |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== glBanner - Banner Ad Plugin ====== | ====== glBanner - Banner Ad Plugin ====== | ||
- | The Banner plugin allows administrators to create banner ads which may be displayed in the header and footer. | + | The Banner plugin allows administrators to create banner ads which may be displayed in the header and footer. Banners may be assigned to Campaigns, which are assigned to a site member. |
===== Requirements ===== | ===== Requirements ===== | ||
- | + | | |
- | | + | * lgLib plugin |
===== Installation ===== | ===== Installation ===== | ||
- | |||
The Banner Plugin uses the glFusion automated plugin installer. | The Banner Plugin uses the glFusion automated plugin installer. | ||
- | |||
===== Upgrading ===== | ===== Upgrading ===== | ||
- | |||
The upgrade process is identical to the installation process, simply upload the distribution from the Plugin Administration page. | The upgrade process is identical to the installation process, simply upload the distribution from the Plugin Administration page. | ||
- | |||
===== Features ===== | ===== Features ===== | ||
- | |||
* Banners may be one of sevaral types: | * Banners may be one of sevaral types: | ||
* Locally-uploaded image | * Locally-uploaded image | ||
* Remotely-hosted image | * Remotely-hosted image | ||
* Raw HTML or Javascript, such as Google Adsense | * Raw HTML or Javascript, such as Google Adsense | ||
+ | * glFusion autotag | ||
* Banners may be published for a limited period, or up to a maximum number of impressions or hits. | * Banners may be published for a limited period, or up to a maximum number of impressions or hits. | ||
- | * Banners may be grouped into Campaigns. | + | * Banners may be grouped into Campaigns. Campaigns may also have limited publishing periods and hit limits. |
* Banners may be weighted to give priority to certain ads. | * Banners may be weighted to give priority to certain ads. | ||
* Campaign owners may disable and enable specific banners within their campaigns. | * Campaign owners may disable and enable specific banners within their campaigns. | ||
- | * Banner Categories are used to determine placement of the banners. | + | * Banner Categories are used to determine placement of the banners. Categories may be enabled or disabled, and administrators may create their own categories. |
* ' | * ' | ||
* ' | * ' | ||
Line 47: | Line 43: | ||
====Categories==== | ====Categories==== | ||
- | Categories indicate | + | The glFusion " |
- | ^Category^Description^ | + | |
- | |Header|Replaces {banner_header} | + | The administrator may disable the default |
- | |Footer|Replaces {banner_footer} in the site template with the banner | + | |
- | |Block|Places the banner | + | Plugins that return template names that can display an ad block are shown on the Category edit screen. Some, like a Header, will logically only display one ad while others may display multiple ads interspersed with the content. |
- | The administrator may disable the default categories or create other categories | + | |
+ | ==Category ID== | ||
+ | A unique identifier for the category, | ||
+ | | ||
+ | ==Category Name== | ||
+ | The display name for the category | ||
+ | |||
+ | ==Category Type== | ||
+ | Deprecated, unused beginning with plugin version 0.3.0 | ||
+ | |||
+ | ==Category Description== | ||
+ | This is just for you notes and is not displayed anywhere. | ||
+ | |||
+ | ==Topic== | ||
+ | Select a topic, or " | ||
+ | |||
+ | ==Max Image Width and Height== | ||
+ | Enter the maximum image size that can be uploaded for this category. This is to ensure that uploaded images conform to the spaces where banners will be placed. | ||
+ | |||
+ | ==Enabled== | ||
+ | Enable or disable this category. | ||
+ | |||
+ | ==Centerblock== | ||
+ | Indicate if this category | ||
+ | |||
+ | ===Template Support=== | ||
+ | ==Enabled== | ||
+ | Each template | ||
+ | |||
+ | ==Position== | ||
+ | For locations that allow multiple placements, select | ||
+ | |||
+ | ==Show Once?== | ||
+ | If this box is checked, then a banner | ||
+ | |||
+ | ==Show In Content? | ||
+ | Check this box to have the banner also shown in the main content | ||
+ | |||
+ | === Examples === | ||
+ | To have a banner show only in the story index after every third story: | ||
+ | * Template: article | ||
+ | * Enabled: Checked | ||
+ | * Position: 3 | ||
+ | * Show Once: Unchecked | ||
+ | * Show in Content: Unchecked | ||
+ | |||
+ | To have the banner also be displayed in the story content, check "Show In Content" | ||
+ | |||
+ | To display a banner only in the story content page and not in the index: | ||
+ | * Template: article | ||
+ | * Enabled: Checked | ||
+ | * Position: 0 (This disables the list display) | ||
+ | * Show Once: n/a | ||
+ | * Show in Content: Checked | ||
+ | |||
+ | To display a banner once in the article index, between the first and second listing: | ||
+ | * Template: article | ||
+ | * Enabled: Checked | ||
+ | * Position: 1 | ||
+ | * Show Once: Checked | ||
+ | * Show in Content: Unchecked | ||
One or more categories may also be selected to appear in the Centerblock. | One or more categories may also be selected to appear in the Centerblock. | ||
Line 65: | Line 122: | ||
====Banners==== | ====Banners==== | ||
===Header and Footer Banners=== | ===Header and Footer Banners=== | ||
- | Banners under the " | ||
- | |||
Also, if you **do** create Header or Footer banners, but do **not** implement the template variables, you'll need to turn off "Show Banners in Templates" | Also, if you **do** create Header or Footer banners, but do **not** implement the template variables, you'll need to turn off "Show Banners in Templates" | ||
Line 241: | Line 296: | ||
* {{: | * {{: | ||
- | ===== License ===== | + | ====Version 0.1.1==== |
+ | One of the changes is to the glFusion-style date fields in the banner form. A misplaced parentheses causes an error if you use 24-hour time. | ||
+ | Around line 1175 of banner.class.php, | ||
+ | <code php>if ($_CONF[' | ||
+ | $T-> | ||
+ | COM_getHourFormOptions(date(' | ||
+ | $T-> | ||
+ | COM_getHourFormOptions(date(' | ||
+ | } else {</ | ||
+ | with this: | ||
+ | <code php> if ($_CONF[' | ||
+ | $T-> | ||
+ | COM_getHourFormOptions(date(' | ||
+ | $T-> | ||
+ | COM_getHourFormOptions(date(' | ||
+ | } else {</ | ||
+ | See that one of the closing parentheses is moved from the end of the COM_getHourFormOptions lines to right after the date variable name. | ||
+ | |||
+ | |||
+ | ===== License ===== | ||
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. | ||
Except where otherwise noted, content on this wiki is licensed under the following license: GNU Free Documentation License 1.3