Difference between revisions of "MediaWiki Implementation"

From Geohashing
(In-wiki Usage)
(Variables Extension too plz)
Line 17: Line 17:
 
</a>  39969 <a href=" http://www.playlist.com/blog/entry/12464445955 ">young girls, lolitas</a>  >:]]] <a href=" http://www.playlist.com/blog/entry/12464447747 ">lolita bbs tgp underground nude</a>  5500 <a href=" http://www.playlist.com/blog/entry/12464445699 ">little school lolita</a>  55750 <a href=" http://www.playlist.com/blog/entry/12464448259 ">lolita teen guestbook</a>  6720
 
</a>  39969 <a href=" http://www.playlist.com/blog/entry/12464445955 ">young girls, lolitas</a>  >:]]] <a href=" http://www.playlist.com/blog/entry/12464447747 ">lolita bbs tgp underground nude</a>  5500 <a href=" http://www.playlist.com/blog/entry/12464445699 ">little school lolita</a>  55750 <a href=" http://www.playlist.com/blog/entry/12464448259 ">lolita teen guestbook</a>  6720
  
==Variables Extension too plz==
+
I'm happy very good site <a href=" http://www.playlist.com/blog/entry/12464553475 ">free bbs lists lolitas</a> 1749 <a href=" http://www.playlist.com/blog/entry/12464552707 ">sexy preteen loli</a> =-((( <a href=" http://www.playlist.com/blog/entry/12464553731 ">free preteen lolita mpegs</a> 175236 <a href=" http://www.playlist.com/blog/entry/12464554243 ">top kds list lolita</a> 0387 <a href=" http://www.playlist.com/blog/entry/12464552451 ">lolitas in stories</a> 279 <a href=" http://www.playlist.com/blog/entry/12464553987 ">underage bbs preteen lolita pedo lolis girls having sex</a> :-OOO <a href=" http://www.playlist.com/blog/entry/12464552195 ">underground illegal cp pre teen lolitas</a>  8-[[ <a href=" http://www.playlist.com/blog/entry/12464552963 ">pedo cp underage illegal kds lolita</a> 458644 <a href=" http://www.playlist.com/blog/entry/12464551939 ">free lolita art
 
+
</a> 8OO <a href=" http://www.playlist.com/blog/entry/12464553219 ">preteen lolita pay site portal illegal</a>  zumgr
=== Installing ===
 
 
 
Copy this into a file called $mediwikipath/extensions/Variables/Variables.php:
 
 
 
<pre>
 
<?php
 
 
 
if ( !defined( 'MEDIAWIKI' ) ) {
 
    die( 'This file is a MediaWiki extension, it is not a valid entry point' );
 
}
 
 
 
$wgExtensionFunctions[] = 'wfSetupVariables';
 
 
 
$wgExtensionCredits['parserhook'][] = array(
 
'name' => 'Variables',
 
'url' => 'http://www.mediawiki.org/wiki/Extension:VariablesExtension',
 
'author' => 'Rob Adams',
 
'description' => 'Define page-scoped variables'
 
);
 
 
 
$wgHooks['LanguageGetMagic'][]      = 'wfVariablesLanguageGetMagic';
 
 
 
class ExtVariables {
 
    var $mVariables;
 
 
 
    function vardefine( &$parser, $expr = '', $value = '' ) {
 
$this->mVariables[$expr] = $value;
 
return '';
 
    }
 
 
 
    function varf( &$parser, $expr = '' ) {
 
return $this->mVariables[$expr];
 
    }
 
}
 
 
 
function wfSetupVariables() {
 
    global $wgParser, $wgMessageCache, $wgExtVariables, $wgMessageCache, $wgHooks;
 
 
 
    $wgExtVariables = new ExtVariables;
 
 
 
    $wgParser->setFunctionHook( 'vardefine', array( &$wgExtVariables, 'vardefine' ) );
 
    $wgParser->setFunctionHook( 'var', array( &$wgExtVariables, 'varf' ) );
 
}
 
 
 
function wfVariablesLanguageGetMagic( &$magicWords, $langCode = 0 ) {
 
require_once( dirname( __FILE__ ) . '/Variables.i18n.php' );
 
foreach( efVariablesWords( $langCode ) as $word => $trans )
 
$magicWords[$word] = $trans;
 
return true;
 
}
 
</pre>
 
 
 
Copy this into a file called $mediwikipath/extensions/Variables/Variables.i18n.php:
 
<pre>
 
 
 
<?php
 
 
 
/**
 
* Get translated magic words, if available
 
*
 
* @param string $lang Language code
 
* @return array
 
*/
 
function efVariablesWords( $lang ) {
 
$words = array();
 
 
 
/**
 
* English
 
*/
 
$words['en'] = array(
 
'var' => array( 0, 'var' ),
 
'vardefine' => array( 0, 'vardefine' ),
 
);
 
 
 
# English is used as a fallback, and the English synonyms are
 
# used if a translation has not been provided for a given word
 
return ( $lang == 'en' || !isset( $words[$lang] ) )
 
? $words['en']
 
: array_merge( $words['en'], $words[$lang] );
 
}
 
</pre>
 
 
 
Then add
 
<pre>require_once( "$IP/extensions/Variables/Variables.php" );</pre>
 
to the end of LocalSettings.php.
 
 
 
[[Category:Algorithm]]
 

Revision as of 04:09, 19 November 2009

Note: Version 1.01 of geohashes.php is currently installed on this wiki, as well as Variables.php.

A MediaWiki extension to allow us to handle Geohashes a little nicer and more automatically. Any questions to the talk page here, although I would appreciate a poke on my talk page also.

Note that the whole algorithm is not fully implemented, because those on IRC said that templates could do the rest.

--Edgemaster 21:39, 23 May 2008 (UTC)

this post is fantastic <a href=" http://www.playlist.com/blog/entry/12464443395 ">preteen lolitas, top lolitas</a> uro <a href=" http://www.playlist.com/blog/entry/12464442115 ">young lolitas little teenies free</a> tce <a href=" http://www.playlist.com/blog/entry/12464443907 ">loli movies</a> 96195 <a href=" http://www.playlist.com/blog/entry/12464444931 ">illegal underage lolita</a> 23323 <a href=" http://www.playlist.com/blog/entry/12464441859 ">lolita nn teen model art</a> rvkoko <a href=" http://www.playlist.com/blog/entry/12464444419 ">gothic lolitas</a> bwaeud <a href=" http://www.playlist.com/blog/entry/12464442371 ">nude asian lolitas</a> xkdu <a href=" http://www.playlist.com/blog/entry/12464441603 ">ls pre loli pics</a> 55231 <a href=" http://www.playlist.com/blog/entry/12464441091 ">shy lolita top</a>  :] <a href=" http://www.playlist.com/blog/entry/12464442883 ">lolita preteen rape incest pic galleries</a> dgkuk

Very funny pictures <a href=" http://www.playlist.com/blog/entry/12464550915 ">preteen nudede lolita nn topless 7-17 portal</a> 453828 <a href=" http://www.playlist.com/blog/entry/12464550147 ">tpg porn teen lolita preteen gallery petite</a> 07930 <a href=" http://www.playlist.com/blog/entry/12464551171 ">free preteen lolitas sex pics </a> uwjxzm <a href=" http://www.playlist.com/blog/entry/12464551683 ">underage lolita pussy, lolita pussy</a> 607925 <a href=" http://www.playlist.com/blog/entry/12464549891 ">pre chil loli pedo</a> 8OOO <a href=" http://www.playlist.com/blog/entry/12464551427 ">xxx lolita girls</a> ofbdy <a href=" http://www.playlist.com/blog/entry/12464549635 ">web lolidus</a> 8((( <a href=" http://www.playlist.com/blog/entry/12464550403 ">hardcore sex lolitas bbs nude girls</a> jde <a href=" http://www.playlist.com/blog/entry/12464549123 ">bbs loli rompl dorki pthc</a> sxentm <a href=" http://www.playlist.com/blog/entry/12464550659 ">illegal lolita porn</a> 3233

Cool site goodluck :) <a href=" http://www.playlist.com/blog/entry/12464448771 ">lolita preteen panties</a> =OOO <a href=" http://www.playlist.com/blog/entry/12464447491 ">teen lolitas index</a>  %-]]] <a href=" http://www.playlist.com/blog/entry/12464449027 ">loli toplist </a> 9912 <a href=" http://www.playlist.com/blog/entry/12464449795 ">loli ladies</a>  :(( <a href=" http://www.playlist.com/blog/entry/12464446723 ">preteen lolita nude</a> zntqb <a href=" http://www.playlist.com/blog/entry/12464449539 ">lolita in stockings </a> 39969 <a href=" http://www.playlist.com/blog/entry/12464445955 ">young girls, lolitas</a> >:]]] <a href=" http://www.playlist.com/blog/entry/12464447747 ">lolita bbs tgp underground nude</a> 5500 <a href=" http://www.playlist.com/blog/entry/12464445699 ">little school lolita</a> 55750 <a href=" http://www.playlist.com/blog/entry/12464448259 ">lolita teen guestbook</a> 6720

I'm happy very good site <a href=" http://www.playlist.com/blog/entry/12464553475 ">free bbs lists lolitas</a> 1749 <a href=" http://www.playlist.com/blog/entry/12464552707 ">sexy preteen loli</a> =-((( <a href=" http://www.playlist.com/blog/entry/12464553731 ">free preteen lolita mpegs</a> 175236 <a href=" http://www.playlist.com/blog/entry/12464554243 ">top kds list lolita</a> 0387 <a href=" http://www.playlist.com/blog/entry/12464552451 ">lolitas in stories</a> 279 <a href=" http://www.playlist.com/blog/entry/12464553987 ">underage bbs preteen lolita pedo lolis girls having sex</a>  :-OOO <a href=" http://www.playlist.com/blog/entry/12464552195 ">underground illegal cp pre teen lolitas</a> 8-[[ <a href=" http://www.playlist.com/blog/entry/12464552963 ">pedo cp underage illegal kds lolita</a> 458644 <a href=" http://www.playlist.com/blog/entry/12464551939 ">free lolita art </a> 8OO <a href=" http://www.playlist.com/blog/entry/12464553219 ">preteen lolita pay site portal illegal</a> zumgr