My client wanted a few changes--in particular they didn't like the javascript-thumbnail slideshow. So I made it an option to use a text navigator (the idea being that non-javascript browsers should still be able to use it).

You'll see this in the function

function theme_image_tab_display_all_associated_thumbnails($node, $show_link = true, $shadows = false, $thumbnail_size = 'thumbnail')

I test whether the navbar is text (defaults to true because I haven't yet implemented it in hook_settings) in the variable:

variable_get('image_tab_navbar_style', 'text'); //TODO: Implement in hook_settings

I also very much like the way you've build 4.6 and 4.7 support into the same module. However, to make it more accessible, I think we should break the version specific code into separate .inc files. The .module will contain the generic logic and the .inc files will contain the version-specific ways of implementing them.

I liked the module so much I actually made a clone of it for audio. Surprise--it's called audio_tab :) Will post that up on Drupal over the weekend.

CommentFileSizeAuthor
image_tab.zip44.82 KBSuuch

Comments

aaron’s picture

wow, thanks for the work! i'll review this over the weekend, roll my changes into it, and patch up the module sometime next week.

brst t’s picture

curious to see this in 4.7

kweisblatt’s picture

Just downloaded the 4.7 version... works great! The only issues I have is that when I first set it up and put a block up of recent pics, you could click on the pics and enlarge like the slideshow mod but now it just brings to a blank page. I wish there was a way to make a custom block with views so that I can have the pics link back to the content.

Thanks for this mod though.... it was EXACTLY what I needed!

Kris
www.cribfax.om

kweisblatt’s picture

Category: feature » support

I wanted to follow up by saying that this version seems to still be working on my 4.7 version, but the thumnails are not showing under the original picture within my cck page. I am trying to create a block with these images and have used the "latest image" block but when clicked it brings up a blank page.

Is this mod using shazam gallery and any other mods? I have a feeling that I may have disabled something or something is interferring with the image tab module. Any insights?

marcoBauli’s picture

I am using Contemplate on some CCK types, and PHPtemplate files on others (always CCK), and cannot output the thumbnails on the node page.

Could anyone tell what code to throw in templates to make everything work please?

Thank you a lot in advance for a hint!

marcoBauli’s picture

ECOMMERCE INCOMPATIBILITY:

for almost every page i visit i get the following warning: "No product types are available."

Drupal 4.7.2, 4.7 version of Image_tab, Ecommerce (product.module) v 1.116.2.13 2006/10/02

marcoBauli’s picture

..also: when uploading the second image to a node, no images at all are shown in the "photo gallery" below the node content.

marcoBauli’s picture

please forget about #6 ecommerce incompatibility above. That was actually a problem of ecommerce itself.

other bugs still are there though..