Posts Tagged ‘mediawiki’

VeganWiki updated

Monday, January 2nd, 2012

VeganWiki’s been getting the shit spammed out of it lately. If you want to have a good laugh, the logs are a testament to how much spam fighting I was doing.

I googled around, but it looked like most of the spam-fighting functionality was added after my version (0.11). While in Yosemite, I took a couple hours to upgrade it to the latest version, 0.18, and install captchas. We shall see if this stems the tide of robots. I think it will be a temporary fix, at best.

Random web updates

Saturday, December 19th, 2009

VeganWiki got spammed by some botnet a couple days ago. Each instance of spam was from a different IP. I reverted all the changes and blocked all the IPs, but I think it’s just as useless to block botnet IPs as it is to filter spammers’ e-mail addresses: there are always more out there. I briefly Googled blocking spam in MediaWiki, but I haven’t actually read the article yet. Here’s a link in case anybody gets curious.

I upgraded this blog to WordPress 2.9, as well as making minor template changes. My plugin appears to be working with the new version – as I expected it would.

On, I’m threatening to retool my portfolio, but I’m finding it difficult to toe the line between, “Be thorough and honest” and “Don’t tell your life’s story.” Maybe I’ll just go ahead and tell my life’s story. It’s bound to be interesting since I’m such an interesting person.


Saturday, November 21st, 2009

I’ve found myself spending increasing amounts of time standing in a supermarket with one can of beans in each hand wondering if I could save 55 cents by purchasing the one that contains sdaeajasdfdea, or if sdaeajasdfdea is an animal product. While being able to search the Internet from my phone is enormously helpful (seriously, how did I ever function without the Internet in my pocket?), some of these queries aren’t answered on the first page of results. In an effort to not continually be tracking down the same n ingredients every time I go shopping, I decided to start a wiki to record my findings named, for lack of a more clever moniker, VeganWiki.

I spent some time deliberating about this, because there’s already so much reference material on the Internet, I seriously questioned the need for adding more. But I didn’t find any one good resource on the matter, and some sites that seemed promising at a glance often contained errors or had a different ideas about what foods they consider vegan, making it worse than useless to me. While I hope others can benefit from this resource, the problem I was trying to solve was uniquely mine: I didn’t trust the other resources, and I don’t expect random strangers who come across this one will trust it much more.

I hope that, in spite of that, the collaborative nature of a wiki, in conjunction with judicious citations, will make it a resource useful to someone other than just me. It’s kind of a ghost town right now, but I hope you will consider adding your distinctiveness knowledge to its own.

Changing the title on MediaWiki’s main page

Thursday, November 19th, 2009

MediaWiki is the free software that powers Wikipedia, as well as several lesser-known wikis. I downloaded it yesterday, and I found changing its appearance more challenging than I had anticipated.

By default, a page is titled with a big headline stating the name of the entry, such as propylene glycol alginate on this page. Accordingly, the main page has a big “Main Page” headline. There doesn’t seem to be an easy way to change that to a more relevant string, but I was able to do so using the following steps: Assuming you’re using the default theme Monobook, open the file skins/MonoBook.php. In version 1.15.1 (and probably other recent versions) the relevant line is on 118:
<h1 id="firstHeading" class="firstHeading"><?php $this->data['displaytitle']!=''?$this->html('title'):$this->text('title') ?></h1>

data[‘displaytitle’] will be blank on the main page, but I don’t know if it’s blank on other contexts also, so in order to be certain, I added a second condition to check against and linebreaks for increased readability:
<h1 id="firstHeading" class="firstHeading">
if ($this->data['displaytitle'] != '') {

// It's the main page; put desired
// welcome message here.
} elseif ($this->data['title'] == 'Main Page') {
echo 'Welcome to this wiki!';

// displaytitle is blank but it's not the
// main page; I have no idea if this
// condition will ever be met.
} else {