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

Q: Change Image width in HTML w/ Filter?

My site allows users to post images in their blogs, however, these images are too wide and mess up the whole site. Is there a way to resize the image width using HTML with some type of filter?

Thanks!

Theme 'Pager' for arrays?

Is it possible to use theme('pager') with arrays instead of database query results? If so, would someone be so kind as to post a simple bit of code showing how this would be done?

Thanks!

Views Module with CCK Photo Field

I have CCK and just added the Views module yesterday. In the content type I created there is a Photo field which works fine when I view the node. I created a view with the photo, title, and address fields in a table format, although the photo doesn't show up. The view module doesn't even seem to know how to handle a photo field at all. Looking at the HTML it doesn't insert anything in the table for that field.

Any why to get this working?

You can see this at http://67.59.190.138/see-properties

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 ','

Pages

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