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

Why may file upload fail?

I am developing a module. With one of its forms, I would like to upload a file. But I always failed. my form is like below:

function my_form($node){
  // Other form elements here

  // And now, the upload widget
  $form['file'] = array('#type' => 'file', '#title' => t('Upload fIle'));
  
  return $form;
}

I check if file uploaded or not if my_form_validate():

function my_form_validate($node){
if ($file = file_check_upload('file')){
// Do somthing here
}
}

Audio module

Hello all. I'm working with the audio module along with the getid3 and playlist maker. Now so far its good for bringing in one audio at a time but I'm going to have mass audio. I like the way the playlist present itself but I need to find a way to get the audio imported into the site when its alot of audio. Now I already have the audio up on the server and I moved the files first to tmp/audio thenm I went into my site and went to import audio and it showed a very very long list of the audio files. I selected only one of them to import to see what will happen.

Any module that does video/images/links?

Hi,

I am trying to find a module that can do something like this static page I made:

http://chinatownicecreamfactory.com/presskit.html

I have it on the top is links to youtube video and the bottom is littered with images that enlarges when clicked. is there such a gallery that can do something like this?

thanks,
pat

Stacking order of Drop down above XSPF player

Hello, I am trying to change stacking order of the playlists that appear in a drop down list above XSPF player which I use in conjunction with audio and playlist modules. Currently it displays items in alphabetical order and I would like to change it to "new to old". How do I do it? Any help would be really appreciated.

Thanks,

custom PHP code not working

Hi,

I am still learning drupal and right now I am stuck on how I can remake the following page in drupal:

http://chinatownicecreamfactory.com/employment.php

Requiring "alt" / Image description to be filled out in tinymce image editor

I was wondering if there is a way to require users to fill out the "image Description" field, of the tinymce image editor, when adding pictures, so the web pages will validate as xhtml? As is you don't have to fill out anything, except the image path to get a picture added to your page.

Pages

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