As many of us, I'm using Drupal to set up a community of bloggers. One of the most common requests from users is to be able to choose among different themes for their spaces (profile, blog and blog posts).
There is a "blog theme" module that does this, but it has not been updated to 4.7.
I am posting the code below as a possible update to blog theme at http://drupal.org/project/issues/blogtheme
There is a problem, however with my code. When I enable it, I get the following error when displaying the main node page (which is the default frontpage too):
* warning: Invalid argument supplied for foreach() in /home/ciudades/public_html/modules/node.module on line 359.
* warning: implode(): Bad arguments. in /home/ciudades/public_html/modules/node.module on line 363.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /home/ciudades/public_html/includes/database.mysql.inc on line 120.