Skip to main content.

Sunday, September 25, 2005

Recent PHP versions offer a mysqli extension instead of the old mysql extension. Since Nucleus relies on the mysql_xxxx functions, it won't run when those are unavailable.

A database abstraction layer would be the ideal solution, but will take a long time to implement correctly and break most of the currently available plugins. Luckily, there is a workaround which works rather well: defining fake mysql_ methods that delegate the work to the new mysqli_ methods. This way, you can keep running the Nucleus core and most plugins.

Update 2005-09-28: These changes made it into CVS

Tuesday, July 26, 2005

Ever wanted to change http://site/item/1234 into e.g. http://site/nieuws/1234?

The hack presented in this article explains how to change the item, archive, archives, blog and member keywords that are used in fancy URL mode. Being able to change this could be useful for people running a non-english Nucleus website.

Sunday, June 05, 2005

A quick hack can allow authors of items to preview the item-pages for their draft items. This can be handy to spot HTML/layout errors before actually publishing.

The basic idea is to replace all idraft=0 strings in SQL queries by (idraft=0 or iauthor=id) when the member is logged in.