Last modified: 2009-04-18 22:42:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T2945, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 945 - Patch to add user pref for links from titles to related search-term clusters
Patch to add user pref for links from titles to related search-term clusters
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
unspecified
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-11-26 19:22 UTC by SJ
Modified: 2009-04-18 22:42 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description SJ 2004-11-26 19:22:58 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',
<
Comment 1 SJ 2004-11-27 00:06:56 UTC
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
Comment 2 Brion Vibber 2006-01-22 04:23:42 UTC
Restored bug from flood attack.
Comment 3 Rob Church 2006-12-03 13:40:51 UTC
What's this attempting to fix?
Comment 4 SJ 2009-04-18 22:42:38 UTC
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. 

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links