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

Publishing issues

I've copied the node_example.module and attempted to mutate it into my evil ways.
So far, everything is good except for I can not get it to auto-publish.
I've been to content and told it to automagically publish them and even when creating a new article (of this new node type) it doesn't publish it to front page (even though the publish checkbox is checked).
I can goto content and force it to be published but that's not the ideal way I want it.
I don't even have any idea where to start looking for this issue.

How to translate profile fields

I use the profile module to add "personal informations" like given name.
The "given name" does not appear as translateable string, so how can I translate that?

Thx for help

Writing an e-Comerce / Subscription-enabled song module?

I'm a musician, and I'm a long-time programmer, electronica and Perl being my respective poisons of choice. I've built a large application-based site from scratch in PHP before, and I've dealt with a lot of OO-programming in Perl... so though I haven't delved into the codebase yet the design decisions in the handbooks I've read seem to make a lot of sense.

I've been trying to come up with a good system for paid and subscription download of my music, without reinventing the wheel, and without sacrificing the user experience by using too many disperate tools at the same time. Regular shopping cart software fails, subscription software and services fail, and there isn't even a good paid product that meets this need (Not that I'd pay, I'm a good ol' OSS cheapskate!). Oh yeah, and I'd like to sell tangible goods and music downloads at the same time!

I want to get my hands dirty making a Drupal module, and I have a need for a song module for Drupal that meets the following requirements:

  1. Free low-quality sample previews of all songs
  2. Paid or Unpaid (settable per-song) download of the full high-quality version of the song (purchased by adding to the existing e-commerce module's shopping cart). I understand that this probably means I will have to create a product AND a song seperately.
  3. Users with a certain level of paid subscription are allowed access high-quality versions of flagged songs
  4. Cover art with each song, a thumbnail on the song page with the ability to click to view the full version. This will default to a global image if none has been set for the song
  5. Ability to add lyrics, copyright, links and other misc text for a song
  6. Story-like ability to have a succint version of the song in a song list, and the more verbose version as a result of clicking a "read more" style link
  7. Comments

Bonus options I may go for:

How to pass the node id value in module_block() function??

Hello Drupalers,

I have begun my first module development, one that displays a block for a node showing a link to a translation website (that translates that particular node).

So, I am actually having trouble understanding how Drupal modules know what node id is being displayed. For example, if "mysite.com/node/143" is being displayed, I want "function mymodule_block()" to know that the node id is "143". How do I pass that information to mymodule_block()???

Thanks! A very simple example would really help!

image library

Hi...

I'm developing a new module and I need to use the image library in order to make thumbnails with GD.

Where can I find information about its API?

Thanks in advance

Almost-newbie SQL question (can anyone recommend a good tutorial?)

I'm looking at a query in syscrusher's hof module (I want to make it display vote averages and point totals in conjunction with moshe's node moderation module) and seeing something in the syntax I see often, but can't seem to find an explanation for:

$sql = "select n.nid,n.title,c.totalcount from {node} n left join {node_counter} c on n.nid=c.nid...(long line of stuff)..."

In this instance, specifically, the "n" in "n.nid", and where the "n" and "c" appear relative to the left join statement.

Pages

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