Return of the QuikPik Hack

With the addition of the new “Go” menu in recent revisions of Textpattern it became less necessary to use my rss_admin_quikpik plugin. However, I still wanted to have access to the drop down menus I added in version 2 of the original QuikPik Hack.

Shortcomings of the QuikPik Plugin

One of the problems with the plugin version of the QuikPik was that it required the use of DOM manipulation to render the menu. This meant that the original menu was loaded, and then replaced with the QuikPik version. This of course led to several undesired side effects including slower page loading, page “jumping” as its rendered, and the inability to use the plugin while on the plugin tab.

Back To The Hack

Now that Textpattern development has stabilized a bit, it seems pretty safe to use a hacked version of txplib_head. I’ve found that I typically don’t update sites after I set them up (except this one) so I don’t worry much about upgrading pain. So if you’re in the same boat and are looking to add those time saving menus back to the admin interface, I am re-releasing the QuikPik Menu as a hack.

Download: txplib_head_rev999.php [13.23KB]

How To Install

  1. Download the file above.
  2. Backup your existing /textpattern/lib/txplib_head.php file.
  3. Rename the file you downloaded to txplib_head.php and replace the version on your server.

Customizing

If you’re interested, you can change the CSS that the menu uses by editing the file that you download. All of the CSS has been added to the <head> section of the page starting on line 162. You can customize sizing, coloring, spacing, etc. as you see fit.

Where’d The Tabs Go?

The tabs have been removed by default but if you’d like to restore them, just remove line 240 which reads .tabs { display: none; }.

Use At Your Own Risk

No, this doesn’t mean that you’re Textpattern install could be screwed up by using this hack. But since you’re modifying the source code of the admin interface by installing this hack, I can’t guarantee that it won’t cause conflicts with other plugins. The only case where this might happen is with plugins that utilize DOM scripting to add elements to the page. Otherwise, happy QuikPiking.

Comments

Add a comment

You may use textile in your comment. Gravatars are enabled. Your email will not be displayed and will remain private. I reserve the right to edit or delete comments.





Textpattern Solutions

Textpattern Solutions

Textpattern Solutions is the first book published on Textpattern.

details at friends of ED or the official book website.

buy it at amazon.com