NetAdminTools.com
 
Categories:
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


Categories:
·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
·All Categories


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

spacerspacer
<<  <   >  >>

Subject

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:

wikisig

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:

wikisig


People:
Places:
Things:
mediawiki
wikieditor
Times:





Please read our Terms of Use and our Privacy Policy
Microsoft, Windows, Windows Server are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com 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 NetAdminTools.com