Last modified: 2009-04-18 22:42:38 UTC
Changes to Skin.php and Language.php, adding a new user pref ("relatedterms") and adding a link next to each article title if the pref is turned on. -------------- Skin.php diff: 616,625c616 < # OCL: here to end of if/else: add relatedterms link if pref selected. < $a = htmlspecialchars( $wgOut->getPageTitle() ); < < if($wgUser->getOption("relatedterms")) { < $ol = '<a href="http://inventory.overture.com/d/searchinventory/suggestion/? term=' . $a . '">related terms</a>'; < $s = '<font size=5 class="pagetitle"><b>' . $a . '</b></font> <font size=-2>' . $ol . '</font>'; < } else { < $s = '<h1 class="pagetitle">' . $a . '</h1>'; < } < --- > $s = '<h1 class="pagetitle">' . htmlspecialchars( $wgOut->getPageTitle() ) . '</h1>'; ----------------- Language.php diff 61,63c61 < 'date' => 0, 'imagesize' => 2, < #OCL: add relatedterms option < 'relatedterms' => 0 --- > 'date' => 0, 'imagesize' => 2 132,133d129 < # OCL: addition of relatedterms < 'relatedterms', 248,250d243 < # OCL: add relatedterms < 'tog-relatedterms' => 'Add link to the most popular related search terms, next to each article title', <
Here are better diffs, for a slightly better patch: http://hcs.harvard.edu/~sjklein/Skin.php-diff.txt http://hcs.harvard.edu/~sjklein/Language.php-diff.txt
Restored bug from flood attack.
What's this attempting to fix?
no longer works, at any rate... this was attempting to help people find search terms related to the article topic, back when overture provided this cleanly as a service.