Howdy!

I've installed node carousel and set it all up... but has anyone else noticed how confusing the readme is? I got it to show up on my frontpage but the nodes display on top of each other and I don't see any container box or a previous/next button. I was trying to figure out how to use the default theme just to make sure it actually works but I can't even find it!

Anyone have any experience with NodeCarousel? Can any one offer some tips or forward on a super helpful link or screencast?

May a thousand times good luck fall upon thee who offers some guidance!

Comments

roopletheme’s picture

I've got node carousel working pretty well on this website. I'm still having some problems getting the CSS for IE6 to work correctly, but otherwise it does what I want.

The theming part is pretty straight-forward if you know your CSS... Firebug helped a lot. The thing that will throw most users is the necessary theme override to make the module do anything useful. Out-of-the-box, the node carousel module will simply display a link to each node in the node queue... probably not what most users want. To get anything more useful, you'll need to override one or both of theme_nodecarousel and theme_nodecarousel_node. I like this approach because it provides virtually unlimited flexibility. But it does require some setup.

On my site, I wanted the carousel to display the entire node for a specific story type. This required me to override theme_nodecarousel_node. My theme's template.php includes this override:

function phptemplate_nodecarousel_node($node, $name='') {
  $content = '<div class="node-carousel-item">';
  $node = node_build_content($node);
  $content .= '<div class="node-carousel-title node-carousel-label">'. node_view($node) .'</div>';
  $content .= '<div class="hidden nid">'. $node->nid .'</div>';
  $node_words = explode(' ', $node->title);
  $content .= '<div class="hidden node-carousel-index">'. $node_words[0] .'</div>';

  $content .= '</div>';
  return $content;
}

I'm using node_build_content and node_view to render the entire node.

After that, it's just a matter of plugging in the right settings to the module and applying CSS to get things looking nice.

Hope this helps. Good Luck

P.S. Thanks to John, Greg, and the pingVision folks for making this module available.

ThaboGoodDogs’s picture

Thanks for the code snippit above, got me started and I think I know what I'm doing now. Do you have any pointers on how to get it to play nice in IE6.

I'm on a Mac but testing under Parallels reveals that it's broken under IE6 (Don't have IE7 installed yet). I have 5 images at a time show in the carousel side by side and they appear to be spaced incorrectly as they should appear all at once, side by side. On IE6 they only appear one at a time, click the forward and back buttons make them appear ok but it's not really what I'm after. (I'd send you a link by the site is being developed on my laptop locally for now.)

Thanks
Richard

roopletheme’s picture

Unfortunately, I haven't had time to look into the IE6 problems. But I was encouraged to see that the node carousel on the popsci.com site works fine in IE6.

I've run into a few other bumps in the road. I'm unable to get the circular wrap feature to work. Looking at the jCarousel plugin, I note that it requires some code support in order to make this work. I haven't yet looked at the node carousel module closely enough to see if it will require modification to support this. I was also unable to get the Random sort order to work as I expected it to. Every setting that I use for Sort Order results in the same display order, which is the order of nodes in the Node Queue.

xarlie-1’s picture

That snippet helped me a lot, had some problems with cross-browser compatibility but fixed it up passing my images as backgrounds. That suited my needs.

Xarlie
------------------------------------------------------------
Saqueme del Apuro

Michelle’s picture

Any ideas for making it work on Opera? I've been thinking of using nodecarousel but I just went to the site you linked to and it's completely broken on Opera. :(

Michelle

--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.

roopletheme’s picture

I've checked it out with Opera 9.27 on an Ubuntu box and a Vista box, and it all looked good to me... was wondering what your setup was.

Michelle’s picture

9.25 on Windows XP. I think the Windows version has more issues as I have problems with sites that others on linux say are fine.

Michelle

--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.

roopletheme’s picture

I've got 9.23 on an XP machine, and again things look OK to me. Wonder what the difference might be...

Michelle’s picture

I emailed you a screenshot since there's no comment upload here.

Michelle

--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.

Hueij’s picture

The Popsci site looks good to me in Opera 9.62 on Windows XP

---
www.opstijgendenevel.nl

Damjan Dvorsek’s picture

I also had problems when using the function override posted by roopletheme. Then I found this one http://drupal.org/node/264704#comment-906654

which sims to work better.

roopletheme’s picture

sweeeeeet!

andrenoronha’s picture

hello, i used this function, but it only shows the title of my nodes...
I want it to output the body of the nodes... (that is only a picture)
cause I want to create a slideshow...

I tried to use $node->body with no success...

Does anyone knows how can I arrive there?

========
André Luiz