Wiki Logo Link
From Pirates@Home
It is possible to add a wiki to a BOINC project, using the MediaWiki extension for BOINC Authentication. While this helps make the connection between the wiki and the rest of the BOINC project seamless as far as authentication goes, there are still some minor annoying things that keep the two apart. One is that the default behaviour when clicking the "logo" link in the upper left of every wiki page is that it takes the user to the main wiki page, not the main project page.
This article describes how you can change it so that clicking on the logo goes to the main project page (or any page you want).
Editing Monobook
The logo in the upper corner is a part of the skin. To change the link associated with it you have to edit the skin, which is not difficult, but does require some care. Edit the file skins/Monobook.php and search for the division with id "p-logo", which should look something like this
<div class="portlet" id="p-logo">
<a style="background-image: url(<?php $this->text('logopath') ?>);" <?php
?>href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>"<?php
echo $skin->tooltipAndAccesskey('n-mainpage') ?>></a>
</div>
The link is the stuff inside the call to htmlspecialchars(), and as you can see it defaults to the "mainpage". Simply replace that entire argument with the string of your link. The simplest thing to do is to send the user to the top page of the site, by replacing it with "/". This looks like:
<div class="portlet" id="p-logo">
<a style="background-image: url(<?php $this->text('logopath') ?>);" <?php
?>href="<?php echo htmlspecialchars("/")?>"<?php
echo $skin->tooltipAndAccesskey('n-mainpage') ?>></a>
</div>
You can, of course, use something else, as appropriate.
Remember that you will have to make this modification again whenever you update your MediaWiki installation.
Other Skins
If you want the same modified behaviour but with other wiki skins, then you will have to edit each skin file individually to make the corresponding change. I've not yet tried it, but it should be straightforward. Examples would be welcomed here.
