This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Personal themes for user posts and profile

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.

nodeapi problem

I now have 3 custom modules, and each one a nodeapi function, each one has a different name

in fashion.module I have fashion_nodeapi(&$node, $op, $teaser, $page)
in feature.module I have feature_nodeapi(&$node, $op, $teaser, $page)
in slideshow.module I have slideshow_nodeapi(&$node, $op, $teaser, $page)

and each one contains switch ($op) with case 'insert'; and case 'update';

the problem is when I create a new node with one module, it exectues the code from the 'insert' case in ALL 3 MODULES!!!!!!

SQL select where event end greater than now

I am trying to display all of the events with end dates greater than or equal to today, but I don't think that this is working correctly because I still get a July 10 event on my calendar.

I have this in a block.

event.event_end >= dayofyear(now())

and I've tried

event.event_end >= now()

Any help to point out my error would be appreciated.

chatbox module

Hello, I seem to have a problem with installing a chatbox as apparently i need to create chatbox.sql but the information was not clear to me so i do not understand how to create sql file before it is working properly on my drupal. so can anyone help me with module?

Howto go to most recent node in a category?

I've got the main navigation links on my site set up to go to various sections in my web site including a newsletter section. Every month a new newsletter is added and I'd like to have the links always go to the most recent newletter so that the link is seemingly dynamic, not static.

Is there a way to create this using Drupal and PHP? I'd like to set up a page that redirects the user to the most recent node in that category. Has anyone done this before?

Thanks!

module design question

Good morning,

I'm getting ready to begin a drupal project where I'll be writing several new modules. I have an existing database consisting of about 10 related tables. Some of these tables are related to each other via foreign keys and I'm trying to figure out the best way to develop the new module (or modules) to accomodate everything.

As an example, there are the following tables:

contacts
products
projects

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions