May 28, 2009

another plugin idea

Tags: , , , ,
Filed under: ZenMagick — DerManoMann @ 3:43 am

I’ve had an idea for yet another plugin. I think I’ve seen some similar things for WordPress, so maybe that’s where it is coming from.

The idea is to build  a plugin that replaces specially formatted  HTML comments or custom tags with predefined content. This could be used as an alternative marketing system. The rules for picking content to insert could be as complex as you want, include regular expressions, start/end date and more (perhaps conditions like login status, referrer, etc).

This would allow to add marketing images, etc anywhere on the site, and even in static  and ez pages!

Any volunteers??

May 26, 2009

themes!

Tags: , , , , , , ,
Filed under: ZenMagick — DerManoMann @ 6:36 am

I just realized that the wiki still claims that there aren’t any themes available for ZenMagick. That is, of course, not true!

I’ve updated the wiki’s theme repository page with some information and links to the demo store for each theme. Seing that themes/templates are a popular search topic, I hope that this helps spread the word…

new cron jobs

Tags: , , , , , , ,
Filed under: ZenMagick — DerManoMann @ 12:57 am

I’ve got a couple small new cron jobs (require the zm_cron plugin) that I can’t be bothered adding to the plugin itself. They are:

  • spam email users that have registered but not ordered (after a configurable number of days after registration)
  • email users a configurable number of days after their first order

Should anyone be interested in those, let me know and I’ll post/upload them somewhere.

Perhaps I should create a misc section for downloads. I also have some packaged template files to display the category sidebox using  the MyGosu Dynamic Tree. Again, if anyone is interested, let me know.

May 25, 2009

Upgrading WordPress

Tags: ,
Filed under: General — admin @ 10:54 am

I just found a helpful tip on how to fix the broken automatic update feature in WordPress.

All that was actually missing was a line in the main .htaccess file! I just added:

AddType x-mapp-php5 .php

to my .htaccess file (inside the # BEGIN WordPress# END WordPress markers) and – voila it works!

I wish I had something as fancy as that for ZenMagick…

DISCLAIMER: I can’t guarantee that this works for everyon; aparently there are more issues which lead to the reactivation of the WordPress Automatic Upgrade plugin, so you’ll have to try for yourself. Good luck!

recovering ubuntu root password

Tags:
Filed under: General — DerManoMann @ 2:45 am

Today I ran into a funny issue with my ubuntu test environment. Somehow I removed my only user from the admin group.

After the next reboot (I am running this in VirtualBox), I was not able to sudo any more, due to not being in the sudoers list any more!

I managed to recover (re-adding myself to the admin group) by following instructions from this post about recovering the root password. having more than one kernel in GRUB, the instructions weren’t exactly right, but close enough to get me going.

The important bit was to add

rw init=/bin/bash

to the kernel line of the selected boot configuration.

Phewww!

wiki updates

Tags: , , , , ,
Filed under: ZenMagick — DerManoMann @ 1:33 am

I’ve updated the wiki with a couple new pages. If you always wanted to know about ZenMagick class loading that’s your chance to catch up!

The ZenMagick templating API

Tags: , , , , ,
Filed under: ZenMagick — DerManoMann @ 1:01 am

Introduction

In ZenMagick, templates (single files) are organized in themes. There is not a complete fancy templating engine, but I’ve tried to concentrate all code used by templates as much as possible and allow for easy extension and customization.

With the exception of i10n and l18n code, all actual PHP code is kept in the toolbox. The toolbox is available in all templates and is the central place for template code in ZenMagick.

Toolbox

The toolbox is a single class that acts as container for a number of utility classes that provide (static) methods to make templating easier.

As can be seen from the documentation, right now there are 6 different tools in the box: form, html, locale (not complete), macro, net and utils.

Each covers a certain area of functions, for example, the net tool provides a range of methods to generate store URLs.

Templates can either use the convenience variables $from, $html, etc… or use the central object $toolbox.

Example:

$net->url(FILENAME_PRODUCT_INFO');

Customization

As with most classes, toolbox items may be customized by providing alternative implementation classes (without the ZM prefix).

It is also possible to add new elements to the toolbox with something like:

ZMToolbox::instance()->set('foo', new MyFooTool());

The above would result in a variable $foo being available in all templating (including emails, popups, whatever) and also via $toolbox->foo.

Outlook

There are more toolbox tools in planning, in particular a separate tool for admin pages and perhaps one for plugins.

May 21, 2009

new testing environment

Tags: , , , ,
Filed under: ZenMagick — DerManoMann @ 4:43 am

Seems ages since I last wrote, so here’s a quick update on what I am on to.

Beside the obvious work on the next release (which is a bit overdue, I have to admit) I’ve spend some time getting a new development and testing environment ready. It’s going to be Linux, so expect the file permission issues to get resolved in the near future ;)

Also, for the more adventurous I’ll be building and publishing snapshot releases. For those that just start that might be easier, because of the number of template changes coming.

May 14, 2009

The War on Sharing and the FSF

Tags: , ,
Filed under: General — DerManoMann @ 3:37 am

I usually do not post a lot about things beside ZenMagick, but I’ll happily make an exception for this great post about the position of the Free Software Foundation on the RIAA lawsuits and why the FSF is involved.

Whether you are into free software (ZenMagick uses the GPL, too) or just a consumer, this is something affecting pretty much everyone and good reading!

plugin maintenance

Tags: , , , , ,
Filed under: ZenMagick — DerManoMann @ 1:03 am

So far every ZenMagick release was accompanied by the release of new plugins and updates to existing ones. With the current number of plugins I do not know for how much longer I’ll be able to keep up with that.

A quick count in my development folders shows (including unreleased and incomplete):

  • 44 request plugins
  • 1 order total plugin (new)
  • 7 init plugins (of which 2 are currently official, however the plan is to make those obsolete)
  • 7 admin (Category Manager) plugins

If anyone is interested in taking over maintenance of one (or more) plugins I’d be more than happy to hand them over. Also, I’ve been toying with some ideas about how plugins could become even easier to handle. In particular the following items are on my current list:

  • Auto update of plugins (similar to what WordPress offers since 2.7)
  • Dedicated pages for each plugin on zenmagick.org, rather than just a single wiki page
  • Go through all plugins and update to using the new features available (plugin controller, etc.)
  • I recently found out that the code that drives AMO is Open Source – Perhaps a (stripped down) version of that could be used to host ZenMagick plugins…

I am open for more suggestions and if you have ever thought about getting into ZenMagick development, working on a plugin would be a great way to get started…

Next Page »