GNU/Linux | Homebrew designs | Perl | Ruby | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | ERP | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS

·Homebrew designs
·Information Grab Bag
·GNU/Linux ABCs
·Name Resolution
·Network Services
·Remote Control
·All Categories

Customizing the MediaWiki Toolbar Signature
Topic:Web   Date: 2013-01-13
Printer Friendly: Print   Mobile View: mobile

<<  <   >  >>


One reason I enjoy the world of open source so much is that if I want something to be a certain way, I can make it be that way if I spend enough time. As an example, I use MediaWiki as a simple blog. It allows me to easily make an entry without much fuss. All I really want is to put in a bold ISO date at the beginning of the entry to mark it. I don't really need the full signature, since I'm the only one that makes entries. I looked around for a way to edit the buttons for a solid hour, but finally decided it made sense to just hack up the code that created the sig. The file I edited is located in extensions/WikiEditor directory in modules/jquery.wikiEditor.toolbar.config.js. I also had to figure out how to customize the timestamp and add in a single new line at the end. Here is the code change that does this:


Now I just click the sig button and make my blog entry. All is formatted the way I like, and it even creates a single new line:



Please read our Terms of Use and our Privacy Policy
Microsoft, Windows, Windows Server are either trademarks or registered trademarks of Microsoft Corporation. is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2013