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
Posted by karma at 02:17 PM. Filed under: Nucleus Hacks
Ever wanted to change
http://site/item/1234 into e.g.
The hack presented in this article explains how to change the
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.
Posted by karma at 02:37 PM. Filed under: Nucleus Hacks
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.
Posted by karma at 05:50 PM. Filed under: Nucleus Hacks