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

Article Module Problems

I am having problems with the new Article Module... I submitted a bug, and am having a hard time tracking down what is the problem. Whenever the user clicks next page, or Page 2, or whatever, the page does not return and instead a white screen occurs. Anyhelp in fixing this would be appreciated, it is quite annoying to not be able to see all my articles.

Problem Page: http://jsedlak.org/article/CSharp/XNA (Click Next at the bottom).

Thanks!

override teaser display

hi guys

Im creating a module where i need to override the teaser and add extra html to the body. I have been looking at handbooks and forum posts but i just cant get it right.

Note the code below:
Currently it displays the body fine, but when i view the teaser it displays the theme_jobs_teaser and theme_jobs_body function. Where i just want it to display the theme_jobs_teaser as the teaser not both.

How to release Module into Drupal Module Set

Hi all,

I currently have a module for my live help system. It does have some commercial aspects, but the best part for drupal users is if you have a site that doesn't have a lot of traffic it is free (under 500 visitors/month).

I hope someone can help me get this released into the general CVS for drupal modules, as I would like to maintain it on the drupal server.

Thanks In Advance for any help you can give me.
Nick

cck vs. own module

I've been looking for an anwser to this question: what is the reason that would make a developer to choose to write his own module instead of using cck? I haven't used cck much, yet, but I guess it's very powerfull, although writting your own module would give you full control of it. However, what's the point to go for an own module? Is there an exact answer to this? What is the exact limitation you have by using cck? Have anyone else thought on this matter and came up with a clear decision?

ANyone successfully integrated Drupal V5 and VBulletin forum?

There is a new module for doing this (http://drupal.org/project/drupalvb), but no demonstration or screenshot.

If anyone successfully did this with Drupal V5, can he show his site here? Just want to get a smell of how this module works.

Thanks in advance.

How to validate dynamically created fields?

The situation is this:

- I have two module-defined content types, "art shows" and "artists".

- Each show is associated to an undefined number of artists. The associations are stored in a special join table, "show-artist".

- On creation of a new show, there's only one 'artist' autocomplete field (the artist list is really long). I wrote a nice JQuery script that adds more fields on the fly when the user clicks a button. They are called artist_0, artist_1, artist_2, etc.

- After submission, hook_validate grabs these new fields directly from $_POST. It checks wether the names indeed exist in table "artist", and stores their nids in a variable that is passed to hook_insert (or update) via form_set_value. If a name is not on the table, it prints an error with form_set_error.

- hook_insert and hook_update write the associations to the join table, and hook_load retrieves them again when the node is viewed or edited.

- Everything works quite nicely as long as all values pass validation. But when there's an error, and the form is rendered again with the corresponding message at the top, all the new fields are lost. I'm not able to pass any data from hook_validate to hook_form.

- I tried modifying the $node object. Doesn't work. Tried creating new fields with form_set_value. Doesn't work.

Pages

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