×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    Reverse: Difference between revisions

    Content added Content deleted
    imported>mutante
    mNo edit summary
    imported>mutante
    mNo edit summary
    Line 29: Line 29:
    </HighlightSyntax>
    </HighlightSyntax>


    You need to copy the above to ./extensions/ReverseExtensions.php and add include("extensions/ReverseExtension.php"); to your LocalSettings.php
    You need to copy the above to ./extensions/ReverseExtension.php and add include("extensions/ReverseExtension.php"); to your LocalSettings.php

    Revision as of 21:50, 2 October 2007

    reverse extension for geimfyglid

    geimfyglid> how is that done?

    <reverse>geimfyglid> how is that done?</reverse>

    <reverse>geimfyglid> how is that done?</reverse>


    <HighlightSyntax> <?php

    1. <reverse> Mediawiki extension example by mutante

    $wgExtensionFunctions[] = "wfReverseExtension";

    function wfReverseExtension() { global $wgParser; $wgParser->setHook( "reverse", "renderReverse" ); }

    function renderReverse( $input ) {

    $output=strrev($input);

    return $output;

    } ?> </HighlightSyntax>

    You need to copy the above to ./extensions/ReverseExtension.php and add include("extensions/ReverseExtension.php"); to your LocalSettings.php

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.