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

Negative User Points

Just wondering if assigning a negative value to the points for a given task in the user points module would have the result of subtracting points from a user? Could I effectively have some actions that allowed users to earn points, like posting to the forums, and some that cost them points like sending an email to the user base.

Thanks,

New node type, without standard node fields 'title' etc. but searchable

I am about to write a module which contains a new node type. My problem is that the node creation form always shows the 'title' field and the information about the 'author'. I would like to remove this information from the form but the node type should be searchable usind the core search.module. Can anybody help me in solving this issue?

Want a simple social network?

I've had to build a slightly customized version of the blog module (with an invitation system) as a social network.

It's my first module, but there's not really much new code, just a few strategic changes - and two new columns in the users table.

CSV filter

I installed the CSV filter for drupal 4.6

I inserted a table with [csv unquoted sep=;] and [/csv] around it.
In the post the text is formatted as a table. no problem, everything looks fine.

But, on the front page I show the first 200 characters, and there the html text is also shown (so all the ; and the csv unquoted sep=;] text is shown as regular text.

Is this a bug?

thanks for the reaction

Casper
www.pernix.nl

HOWTO assign a user to a role programatically

I have an application where I'd like to assign users to a role programatically, if the user meets some criteria. I am finding this difficult to do, since Drupal appears to be unsetting anything that I set in the users_roles table of the database.

Right now, I use hook_user to add a portion of the user registration/edit screen that deals with the application's user settings. I've put code into the 'validate', 'update' and 'insert' options, but I've tried:

Pages

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