Difference between revisions of "Extension:MarketResearch"

From Organic Design wiki
m
(moved into svn)
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<?php
+
{{svn|extensions|MarketResearch/MarketResearch.php}}
# To activate the extension, include it from your LocalSettings.php{{php}}{{Category:Extensions|MarketResearch}}
 
# with: include("extensions/marketresearch.php");
 
 
 
// Extension credits that show up on Special:Version
 
$wgExtensionCredits['parserhook'][] = array(
 
        'name' => 'marketresearch',
 
        'author' => 'wikiexpert',
 
        'url' => 'http://www.organicdesign.co.nz/Extension:Marketresearch',
 
        'description' => 'Display marketresearch'
 
);
 
 
 
 
$wgExtensionFunctions[] = "wfMarketresearch";
 
 
function wfMarketresearch() {
 
    global $wgParser;
 
 
    $wgParser->setHook( "Marketresearch", "renderMarketresearch" );
 
}
 
 
# The callback function for converting the input text to HTML output
 
function renderMarketresearch( $input ) {
 
    # Your Marketresearch Partner ID    # <<<<< EDIT HERE <<<<<
 
    $partner = "951781402";
 
 
 
    # have to parse data here
 
 
 
 
  # Building the code
 
$output = "<iframe src ='TBD' style='width:420px;height:640px;' scrolling='no' marginwidth='0' marginheight='0' frameborder='0'></iframe>";
 
    return $output;
 
 
 
}
 

Latest revision as of 22:52, 27 October 2009

Info.svg This code is in our Git repository here.

Note: If there is no information in this page about this code and it's a MediaWiki extension, there may be something at mediawiki.org.