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

I get too many errors from privatemsg module

this was the first
Unknown column 'newmsg' in 'where clause' query: SELECT COUNT(*) FROM privatemsg WHERE recipient = '1' AND newmsg = 1 AND recipient_del = 0 in /home/neubern/public_html/includes/database.mysql.inc on line 66.

then i tried to modify every word NEWMSG to NEW as i found in one topic here in drupal, then i get this error:
Unknown column 'recipient_del' in 'where clause' query: SELECT COUNT(*) FROM privatemsg WHERE recipient = '1' AND new = 1 AND recipient_del = 0 in /home/neubern/public_html/includes/database.mysql.inc on line 66.

Browse files with file manager

I'm looking for a module that will enable users to browse already existing images and files in /files and attach/link directly from the node, and click on the file to automatically link the file to the node. This should function as img_assist is supposed to function, but for files like .pdf and .odt instead of images only.

user list by permission

I needed to return a list of users who have access to a specific permission.

For example suppose you wanted a list of users who have permission to "post comments" in the comment module. This permission is typically enabled for multiple roles.

The following function will provide such a list. It could easily be expanded to support a dynamic number of permissions, but this suits my purpose for now.

Perhaps someone will find this useful.

URL Alias not working in one of my modules

I have programmed two modules recently.

They both have links to nodes as part of the menus.

They both refer to the nodes in the following way:

l($goto->title, "/node/$goto->nid");

In an instance where both modules refer to the same node, only one of them is linking to the URLALIAS (in this case, it is "/garage/89_civic") and the other links to "/node/231."

Order of hook activation, esp. concerning roles

Hello,

I am working on an idea I for Organic Groups I call "autogroups," where groups are created and populated automatically based on the roles in a system.

In looking to implement my solution, I want to act on user objects after updates to a user's role. It would seem the obvious hook to implement is hook_user.

Category module beta released

The long-awaited category module has finally been released! You can read all about the project's cool features, and its current status (and download it for CVS/4.7), at this page:

http://drupal.org/node/39683

The original category module proposal explains a lot of the concepts and motivations behind this project, as well as a huge number of comments that users have left over the past few months:

http://drupal.org/node/23730

Pages

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