Upload Image thumbnails on the image node
m4manas - March 16, 2009 - 15:45
| Project: | Upload Image |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
Upload image is an excellent module which gives the flexibility to the user to attach as many images and all images appear as the thumbnails at the bottom of the post. However, when you click on one of the image the image node is loaded and you have to click back for the seeing the other image if they are attached with the parent node.
I have reworked the code and the thumbnails are displayed again if there are any images attached with the parent node.
Please guide me about the submission guidelines and i do not know how to generate the patch codes so i m enclosing the module file.
| Attachment | Size |
|---|---|
| upload_image.zip | 3.14 KB |

#1
/*// Custom hack into the upload_image module to show next and previous button
$sql = "SELECT u.nid FROM {upload_images} u WHERE u.oid = ". $node->nid ;
drupal_set_message($sql);
$result = db_query($sql);
$j=0;
while($image_all = db_fetch_object($result)){
$links['upload_image_all_link'] = array(
'title' => $j,
'href' => 'node/'. $image_all->nid,
'attributes' => array('title' => t('The image attached with the parent post.'))
);
$j++;
}
*/
Nice Idea, I'll implement this in the D6 version.