After I got MediaWiki installed, I wanted to figure out how to install AddThis on all of my pages so they’d be shareable. Here’s how I did it…
Obviously, first I created an AddThis account. From there, I clicked on the “Get Your Button Code” button in the upper right-hand part of the page. I created a sharing/bookmarking button for a website and got my AddThis button code.
Next, I found the appropriate file for my MediaWiki skin. If you’re still using the default skin, it’d be skins > MonoBook.php. Open the file in your favorite coding application.
The file will show all the PHP that marks the beginnings of the HTML page.
I wanted to put the AddThis button right after the page’s title. If you’d like to do that, find this code <h1 class=”firstHeading”… After that line, paste the AddThis button code.
Finally, I published that file and I was set to go.
Let me know if you find these instructions useful. Drop me an e-mail – email@example.com