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

Memorial Module

I'm looking for a memorial type page to use on an alumni site.

I did a search through the current modules and didn't see one currently available. Has anyone heard of such a thing, or implemented one using one of the other modules that are available?

Ken Richards

Image compression module

I mainly share photos on my website, when I first created my online web gallery it took me about 2 hours to prep and upload 20 images. Some of the choirs I had before displaying a new album of pictures included:

  • sorting at least 20 pictures for upload
  • resizing and water marking every picture manually in Photoshop (before I knew about batch process)
  • manually creating thumbnails in Photoshop
  • manually compress saved images in Photoshop to save space
  • manually creating an html page for each image in dream weaver
  • upload via FTP
  • then linking all the pages by hand coding

after switching to Drupal I could create a new album in 20 minutes or less using Drupal modules

  • sorting at least 20 pictures for upload Image Publishing
  • resizing and water marking every picture manually in Photoshop Image Publishing (XP) or image module and image water mark module
  • manually creating thumbnails in PhotoshopImage module
  • manually creating an html page for each image in dream weaver Image module
  • upload via FTP Image Publishing
  • then linking all the pages by hand coding image gallery

The only part of the process that I am unable to do with Drupal is image compression.

I propose a module that would integrate with the image module to add preset image compression levels. I believe the thumbnail feature in image gallery allows you to compress the thumbnails but what I’m proposing is user control on all images uploaded and sorted by type.

Adding new filter in admin/node without changing node.module?

Hello,

I want to create a module which will allow to filter content by whether it is translated into language X or untranslated. I would like to add another radio button into the group 'satus', type, 'category' called 'language'.

Is it possible to append this feature into node/admin without modifying node_filters() and node_build_filter_query() in node.module?

Best regards,

Oleg Mitsura

Author Information Block info on Gallery 2 user album/item

I am very close to achieving lift-off with my new site with many thanks to the Drupal and Gallery developers but I have one request or maybe it is just a little shove in the right direction. I would like to display the Author Information block on the Gallery 2 album/item page for that user. Possible?

Webform Module - Mandatory Select elements not being checked

Hi all,
The Webform module seems to be a great little module for creating surveys/webform etc. However, I have run into one problem that I cannot seem to fix, even with a hack of the Core. For some reason, if you make a checkbox/dropdown/select list a mandatory field on a Webform, it will show up as required (red *), but when you submit with no checkboxes selected, they are not throwing errors and the webform is submitting without error.

Is there any known way around this, or am I not doing something correctly?

Thanks,
-Benson

Accessing fields of form elements

Hi, being not an experienced drupal developer, here is my query. Within the hook_form() of my module, I define a "radios" form element:

 $form['cocivote'] = array(
                            '#type' => 'radios',
                            '#title' => t('Rate This'),
                            '#default_value' => '2',
                            '#theme' => 'radios5starvote',
                            '#description' => t(''),
                            '#options' => array('1','2','3','4','5'),
                            '#weight' => 6,
                            '#required' => TRUE);  

As you noticed, I want a custom theme function to format the output for this radios. So, in my template.php (PHPTemplate engine), I define the radios5starvote as follows:

function phptemplate_radios5starvote($element){
   // here comes custom output
}

Now, my problem is the following: the radios element is a grouped element, i.e. containing multiple '#title' fields, multiple '#required' fields etc. For instance, the parent element has a '#title' fields and also every radio element has a '#title' field as well.

For my output though, I need to be able to process the element and retrieve e.g. the title of the parent only (to output as the title of all radios). As the form array is flattened, I don't see how to be able to access the desired title field. Are there any FORMS API functions that provide such functionality?

Pages

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