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

File Form Array

Hi, I'm writing a module that allows file upload and I've got it working fine with one file upload but I want to be able to upload multiple files. I've created the following form:

$form['#attributes'] = array('enctype' => 'multipart/form-data');
$form['upload'] = array('#type' => 'fieldset', '#title' => t('Upload'), '#tree' => TRUE);
for ($i = 0; $i < 5; $i++) {
  $form['upload']['file'][$i] = array('#type' => 'file');
}

I've got a set number of 5 but I enventually want it to have a user setting.

The problem is that I can't seem to retrieve the file information using file_check_upload anymore. Is there a way to get this to work or should I just get the information directly from the $_FILES array?

Need a new Protx Payment Gateway Module for 4.6

Hi There

There is already an existing Protx payment gateway module for Protx out there which can be found here: node/68007.

The problem is, this has been designed to integrate with VSP Direct, which is Protx's payment service where the webhost takes credit card details themselves via their own SSL, and Protx only validates the card details.

I need a module to work with VSP Form, which sends information to Protx servers where the card details and validation are completed on Protx's SSL servers.

Feedback module - added more then 1 recipient

Little patch for send feedback letter more then 1 recipient.

/* old code
  if (!valid_email_address($edit['mail'])) {
    form_set_error('mail', t('You must enter a valid e-mail address.'));
  }
*/
// new code
	foreach(split(",",$edit['mail']) AS $value){
		if (!valid_email_address($value)) {
	    form_set_error('mail', t('You must enter a valid e-mail address.'));
	  }
	}

Jast delim e-mail's by ','

gmap module not showing nodes

I have happily set up the gmap module and used it to show users however I just can't get it to work with nodes. These are the questions:

When I enter location while editing a node the map doesn't fill the frame and the +/- arrow keys don't always work.

When I view the node the location block shows a map with the marker in the right place but it's too high a magnification. Where do I change this without hacking the script?

And, crucially, when I look at map/node there is a map but no markers show.

Any help or pointers gratefully accepted.

JQuery/drupal.js - error: input.setAttribute is not a function

Hi,
I'm using Jquery for a little Ajax I'm putting in a form. I'm no JS expert but I can usually hack it.
The Jquery works for the stuff I'm using it for, but it seems to clash with the drupal.js or something.
Anyway, I get the following in firebug: input.setAttribute is not a function
This happens on anypage with autocomplete set on a form.
On these pages, all the autocomplete (AJAX) and the collapsable menus fail.
Does anyone have any idea what this could be?
Cheers

How to assign vocabulary in the category module for creation of users.

Hi,

I am facing a peculiar problem related to access profiles and users.

1. I have created a category called Region to which i have added three terms (Americas, Asia Pacific & EMEA ).

2. I have created three pages for each Region Category.

3. I have created three users X , Y & Z.

4. I have created 2 roles (Member (X & Y) , Administrator (Z) )

Pages

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