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

Problems applying patches

I have run into problems applying patches, as follows:

node.module:

patch < node.module.patch
patching file node.module
Hunk #1 FAILED at 1245.
1 out of 1 hunk FAILED -- saving rejects to file node.module.rej

node_image.module:

patch < imaged_nodes.patch
patching file node_image.module
Hunk #1 FAILED at 184.
Hunk #2 FAILED at 582.
2 out of 2 hunks FAILED -- saving rejects to file node_image.module.rej

xtemplate.theme:

Txonomy form dropdown

In my module settings how do i create a dropdown that selects a different taxonomy vocab?

Thanks

Check boxes

Hi i'm a complete noobie when it comes to module development.
I was wondering how do I make the form_checkbox function output the value of the ceckboxes to the body of the node?
thanks :)

Filestore upload problem

I can't find this problem in the forum or bugs so here it is.

My temp directory path is specified as:
files/temp/ and both are CHMOD 777

My Drupal db tables use a prefix drupal_

I get this warning:

Rate this story module

Does anyone have any interest in doing a "rate this story" module that would allow a simple 1-10 rating at the bottom of stories and would show the average?

Or does anyone know of an easy way to write up such a module?

I don't know php otherwise I would do it myself. But I'd be happy to get a book and try and hash it out with someone if anyone else is interested.

How to create new modules?

I would like to write a few custom modules to extend Drupal so that I may use it for a weekly newspaper. If you're familiar with writing modules, I have some questions below and I would appreciate your expertise. I've also listed a few of the resources that I've stumbled upon incase there are others like me trying to figure modules out.


Thanks - Strayhand


Questions:

  1. How many different types of modules are there, and what are the differences?

    In the
    "Creating Modules Guide" the author walks you through the creation of a block module, however they also mention node modules. What are the differences between node and block modules, and do other types of modules exist?


  2. How do you create a node module?

    There is a brief document titled "Writing a node module", however I was unsuccessful in using this tutorial to create a node module. Is there another node tutorial that goes into the same detail as the block tutorial? Has anyone else successfully used this tutorial to create a node module in Drupal 4.4?


  3. How do you create administrative pages for modules?

    The block module tutorial (Creating Modules Guide) produces an administrative page, what are the specific hooks/functions responsible for this?



  4. Do I need to create new database tables for my modules?

    If so, what's the best process?


  5. Are these the only hooks that I need to concern myself with?


Definitions that I've assembled

Pages

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