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

Multiple "image_attach" for drupal 5

Hey Friends -

I am wondering if anyone has made a patch for the drupal 5 version of image_attach to allow attaching multiple images to a node. I have seen a few patches for 4.7 on the forums, but I am looking for something for drupal 5.

I have been considering node_images, but I need the attached images to become image nodes and go through the image derivative process. Has anyone done this?

Another possibility is cck imagefield - But does anyone know how easy it would be to have that module actually create image nodes instead of just uploading files?

HTML email

Can someone bring some light on this:

calling a drupal_add_js in a form_submit

Hello.

I created a page that has an address form using the Form API. When the page is submitted, and validated successfully, I would like to create a popup window using jquery when the page is redisplayed.

I can't seem to get drupal_add_js to work from inside of a form_submit. This may be overkill but I really wanted to use the framework's validation. I guess I am not understanding the drupal flow of a validation and submit:

function locate_us_form_submit($form_id, $form_values)
{
$addr = "";

if ( isset($form_values['street']) )
{
$addr .= $form_values['street'] . ', ';
}

$addr .= $form_values['city'] . ', ';
$addr .= $form_values['state'] . ' ';
$addr .= $form_values['zip'];

drupal_set_message( t('Test - Look in popup window for map') );
drupal_add_js('$(document).ready(window.open("http://www.google.com/maps?saddr=' . urlencode($addr) . '"));', 'inline');
}

I also tried a different approach where I wanted to just add the result as an extra url parameter in the return of the forum_submit:

function locate_us_form_submit($form_id, $form_values)
{

.
.
.
return "locate&saddr=" . urlencode($addr);
}

This doesn't work because it tries to encode the ampersand after the locate. Thus I won't be able to get the $_GET['saddr'] to work.

Flash Gallery XFS 3 flash gallery Drupal Integration

Hello,
I am trying to create a Flash Gallery Module, actually I'm trying to rewrite the simpleviewer flash gallery module to work with this gallery.
Comparatively the xml for xfs is much more extensive vs. simpleviewer, so i just started with a basic echo of most of the xml except where the code outputs the picture links i.e. picture.jpg. into the xml.

here is the xml for XFS 3

<?xml version="1.0" encoding="utf-8"?>

Call to undefined function content_clear_type_cache()

Call to undefined function content_clear_type_cache()
modules/imagecache/imagecache.module on line 181

trying to use imagecache, but shows that message each time I click update presets
It doesn't resize or scale my upload image.
Can anyone help me?

[IMAGE module] Given images are moved on postediting

I have installed the image and with the gallery function i have some problems. I can add images to my gallery. But once i edit the node containing this images (resized version + thumbnail of the original) are moved to another directory, resulting in the node to show a really big ass image, messing up my layout.

When i create an image (create content > image) with the module it places the original + resized + thumbnail in the directory : files/

When i edit the node the images are moved to the /files/temp folder.

Thanks

Pages

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