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

Creating New story Module with http-links

I just installed drupal 4.7 and i would like to make a new story/page type module so that i can add `unique` urls to each story. The site i want to create would host links to other sites like digg or delicious, hence i would want user to submit a url with each story.

While searching the drupal site, i came across How to create your own simple node type. I wonder if that's the right approach ?

advice on multipage surveys needed

Hi:

I need some advice on which way to go: webform, survey, a new module?

Requirements

  1. I have about 30 questions that can be divided in a few groups.
  2. Some of the questions depend on some answers.
  3. the user might respond to a few questions now, and leave some other questions for later on. The final results page cannot be shown before all the questionaries are fullfilled.
  4. AJAX is needed for custom validation and for improving the user interface
  5. Questions have to be easily mantained, so they cannot be hard coded with Forms API
  6. An easy interface to create some results depending on the answers would be nice, but not a must.

Alternatives
I like the GUI in webform for building questionaries and a few questionaries could be put in a hierarchy with the book module.

about 1) I still need to make sure the user goes through all of the forms before getting to the end (same behaviour as a multipage form)

about 2) and 3): How to add some AJAX to forms built with webform module?

Using FAPI I can create a multipage form but It cannot be mantained by non-programmers.

about 4) how to refer to answers to create the final results page?
If I could assing a hidden number to each question then I could use that number for easily finding the answer to that question.

I have read the documentation and I have some basic understanding of Drupal APIs, but I don't get around on how to face this development.

Add flat handling fee to shipcalc.module shipping rates

How do I add a flat $3.00 handling fee to the shipping costs calculated by the ecommerce shipcalc.module? I'm using the usps.inc partner file to calculate shipping costs.

I know enough PHP to be dangerous, so if somebody could point me in the right direction, I'd be most appreciative.

Thanks in advance,

-barneson

Cannot modify header nfo warning after adding new module

Hi,

Recentyly I have encountered a strange problem. After adding a new own built module I got this warning.

-----
warning: Cannot modify header information - headers already sent by (output started at D:\Usr\WWW\Drupal\modules\advert\advert.module:1) in D:\Usr\WWW\Drupal\includes\common.inc on line 266.
-----

I can add remove and edit content but after hitting submitt i got a blank page. When I navigate back in a browser I can actually see changes were applied (plus i got a warning message). This scenario is applicable to any content of my site. When I administer site as an administrator and apply some settings or I act as an user trying to log on. Every time the same sheme submit, blank page, navigate back, changes were applied.

When I remove module from \modules folder everything gets back to normal.

I have tried to comment separate functions to track down one which is responsible for this problem.
Without any success. Only removal of module is effective.

Module is responsible for storing content about advertisements, here is a list of module functions:

function advert_help($section) {}
function advert_access($op, $advertisement) {}
function advert_menu($may_cache) {}
function advert_form(&$advertisement) {}
function advert_validate(&$advertisement) {}
function advert_insert($advertisement) {}
function advert_nodeapi(&$advertisement, $op, $teaser, $page) {}

Image Module Issue

Whenever I try to create an image using the image module, I get the following error:

Unable to create thumbnail image
The selected file /home/x3oadmin/public_html/gaming1/files could not be copied.

Any help or advice?

Relationship between 2 categories

I am wondering whether I can build 2 categories with certain relationships. Let's say the list in the 1st category contains terms 1,2,3,4,5,6... and the list in the 2nd category contains terms A, B, C, D, E, F, G, H, I, J... Term 1 is related to C, D, E. Term 2 is related to A,B,C. Term 3 is related to I, J, and so on. When a user select term 1 in the 1st category, the list in the 2nd category should only display C,D,E for the user to select.

So far, I have not found any solutions among existing modules. Does anybody have any ideas.

Pages

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