Extension:AdManager

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
AdManager

Release status:Extension status beta

ImplementationTemplate:Extension#type Special page, Skin
DescriptionTemplate:Extension#description Allows setting an ad zone for individual pages or categories
Author(s)Template:Extension#username Ike Hecht (tosfostalk)
Latest versionTemplate:Extension#version 0.3.1 (2014-07-05)
MediaWikiTemplate:Extension#mediawiki > 1.23, likely earlier versions as well
PHPTemplate:Extension#php 5.3+
Database changesTemplate:Extension#needs-updatephp Yes
LicenseTemplate:Extension#license GPL
Download
ParametersTemplate:Extension#parameters
  • $wgAdManagerService
  • $wgAdManagerCode
Added rightsTemplate:Extension#rights

admanager

Hooks usedTemplate:Extension#hook
LoadExtensionSchemaUpdatesManual:Hooks/LoadExtensionSchemaUpdates
SkinBuildSidebarManual:Hooks/SkinBuildSidebar

Translate the AdManager extension if it is available at translatewiki.net

Check usage and version matrix.

The AdManager extension allows per-page or per-category placement of ads into a wiki page. It is designed to work with zones from an external advertising server such as OpenX but allows the placement of zones from (probably) any such server. The ads are displayed in the sidebar.

This extension was sponsored by the American Academy of Ophthalmology and was developed by WikiWorks.

Usage[edit]

Defines two special pages: Special:AdManagerZones and Special:AdManager. Special:AdManagerZones is used to set which zones are available in Special:AdManager. These should be set to the zone number that the advertising server would normally insert into its insertion code. Special:AdManager is used to assign specific pages or categories to ad zones.

Installation[edit]

  • Download and place the file(s) in a directory called AdManager in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/AdManager/AdManager.php";
# $wgAdManagerService = 
# $wgAdManagerCode =
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Note Note: One of the configuration parameters must be uncommented and set appropriately.
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration[edit]

Parameters[edit]

  • $wgAdManagerService - This can (currently) be set to 'openx'. If you set this, you do not have to set the $wgAdManagerCode (which will be ignored anyway).
  • $wgAdManagerCode - Use this parameter to use any other advertising service. The code must include '$1' for any spot where the zone number should be inserted.

User rights[edit]

  • admanager - Permission to use the two special pages to add zones or apply them to a page/category.