Hi, this is a wonderful module you have developed here; however, I am encountering a few troubles. First off, I was wondering how I can modify the width of the carousel. I did not see an option in the css and I read you mentioning that it must be fixed (I have a fixed value in mind). Secondly, I am getting this error message

# warning: Missing argument 3 for theme_panels_pane() in /home/.flubberty/krispy/www.test.projectumbrella.net/sites/all/modules/panels/panels.module on line 971.

repeated for each item I have in the carousel. I am attempting to use the panel carousel as a way to dynamically load content into the carousel through views implementation but I read in another topic that you were looking to develop that feature straight in to jCarousel itself. Would you recommend I wait for you finish development? The idea is to dynamically load picture thumbnails into a carousel based on a taxonomy term. Thanks in advanced.

Comments

wim leers’s picture

Component: Miscellaneous » Code
Category: support » bug
Priority: Normal » Critical

I've not yet found the time to test it with the latest version of Panels 2. So I guess it's just not yet compatible. I hope to do a quick update (without the polishing I gave panels_tabs when I updated) this weekend.

Width can't be set via the UI yet, you'll have to set it in the CSS manually.

I'd recommend waiting for displaying a view in a carousel.

Kripsy’s picture

Thanks for the tips, you are definitely one of the quicker developers on responding :). I guess I will use a less integrated option until you can get jCarousel working without the caching issues.

wim leers’s picture

You may be able to use the Nodecarousel module as a (temporary or permanent) alternative.

Kripsy’s picture

That does look like it would be very useful. Unfortunately it doesn't appear to be available for download.

wim leers’s picture

Assigned: Unassigned » wim leers
Category: bug » feature
Priority: Critical » Normal

The PHP warning has been fixed in version 1.3. Next on my plate is CSS configuration from within the UI. I'll steal most of the code from imagefield_gallery.

mariagwyn’s picture

Wim,

Can you give me a hint as to how to set the width for items using css? I am having a hard time telling where Panels is looking for the jcarousel 'skin'. I don't mind doing the CSS manually, but I need a little direction. If I set an ID/Class, and then simply put the CSS in my theme style.css, will that work? If that works, I assume I can take the CSS from any of the jcarousel skins and simply put it in my css with the appropriate ID?

Many thanks,
Maria

cristinav’s picture

Maria,
I, am not an expert in drupal, but what i did to change the width of my carousel mini panel was to edit this file: skin.css inside this path modules\panels_carousel\skins\default\. if you are using a horizontal carousel container, go to line 16 and change the width for: 100%; instead of 16em;. And you have to change the width of the node content inside it too, to do that, go to line 28 and change the width for 90%; or 100%; what ever you want instead of 16em. If you want to change the background color too, you can go to line 12 and choose your color. I hope this works for you.

cristinav’s picture

I have this problem with my local drupal. warning: Missing argument 3 for theme_panels_pane() in C:\wamp\www\jim_drupal\modules\panels\panels.module on line 971.
I've created a panel pages with 2 columns, and I put a carousel mini panel inside of it, when saved, that warning appeared. What does it mean?. Thanks in advanced

wim leers’s picture

kiranbnkk’s picture

Title: Getting Carousel to Work » Scroll bar issue in carousel
Project: Carousel Panel Style » Carousel
Version: 5.x-1.x-dev »
Component: Code » Code - jcarousel

I have the problem in carousel, I have placed scroll bar in carousel using css ,when the content is more the scroll bar will appear, Its working fine in IE but not in mozilla firefox, Even i tried separately using html page , but its working in IE but not in Mozilla firefox I am facing the problem , when i click next or previous button the outside of the carousel , the Left & right content of the page is getting dragged . the whole page is disturbed. Please find the code below and help me in this Issue as soon as possible.

______________________________________________________________


Carousel Component Example - Slide Show

.carousel-component .carousel-list li { width:506px; /*500 + 2 + 2 + 1 + 1 */ overflow:scroll; margin-left:50px; z-index:-1px; } .carousel-component .carousel-list li a { display:block; border:2px solid #e2edfa; outline:none; -moz-outline:none; } .carousel-component .carousel-list li a:hover { border: 2px solid #87bf4e; } .carousel-component .carousel-list li.active a { border:2px solid #708fc7; } .carousel-component .carousel-list li img { border:1px solid #999; display:block; } .carousel-component .carousel-prev { position:absolute; top:30px; z-index:3; cursor:pointer; left:5px; } .carousel-component .carousel-next { position:absolute; top:30px; z-index:3; cursor:pointer; right:5px; } /** * Image src URLs **/ var imageList = [ "http://static.flickr.com/49/154253308_f9fe62f5bc.jpg", "http://static.flickr.com/48/154252979_e14b8adf6a.jpg", "http://static.flickr.com/58/154252383_d59833136c.jpg", "http://static.flickr.com/70/154251973_f58009862a.jpg", "http://static.flickr.com/48/154251863_c2747e4fa5.jpg", "http://static.flickr.com/73/154251425_07c48d786a.jpg", "http://static.flickr.com/54/154251208_ec14c7295e.jpg", "http://static.flickr.com/49/154250868_9ed96d9fdf.jpg", "http://static.flickr.com/51/154250687_c241e9b5a2.jpg", "http://static.flickr.com/75/154250731_ce18000d85.jpg", "http://static.flickr.com/52/154250543_633506d4cf.jpg", "http://static.flickr.com/44/154250315_fcc6200d4b.jpg", "http://static.flickr.com/72/154249918_2ccc135309.jpg", "http://static.flickr.com/58/154249509_6f5331fa30.jpg", "http://static.flickr.com/57/154249373_be8530cc12.jpg", "http://static.flickr.com/72/154249186_27ed99db61.jpg", "http://static.flickr.com/46/161892486_b4f8b93917.jpg", "http://static.flickr.com/52/161893596_fc5055fe5a.jpg", "http://static.flickr.com/53/161893993_2000af9417.jpg" ]; /** * Custom inital load handler. Called when the carousel loads the initial * set of data items. Specified to the carousel as the configuration * parameter: loadInitHandler **/ var loadInitialItems = function(type, args) { var start = args[0]; var last = args[1]; load(this, start, last); var status = "Showing " + start + " of " + this.getProperty("size"); YAHOO.util.Dom.get("indicator").innerHTML = status; }; var animComplete = function(type, args) { var direction = args[0]; // string either: 'next' or 'prev' var status = "Showing " + this.getFirstVisible() + " of " + this.getProperty("size"); YAHOO.util.Dom.get("indicator").innerHTML = status + " (done)"; }; /** * Custom load next handler. Called when the carousel loads the next * set of data items. Specified to the carousel as the configuration * parameter: loadNextHandler **/ var loadNextItems = function(type, args) { var start = args[0]; var last = args[1]; var alreadyCached = args[2]; if(!alreadyCached) { load(this, start, last); } }; /** * Custom load previous handler. Called when the carousel loads the previous * set of data items. Specified to the carousel as the configuration * parameter: loadPrevHandler **/ var loadPrevItems = function(type, args) { var start = args[0]; var last = args[1]; var alreadyCached = args[2]; if(!alreadyCached) { load(this, start, last); } }; var load = function(carousel, start, last) { for(var i=start; i<= last+1; i++) { carousel.addItem(i, fmtItem(imageList[i-1])); } } /** * Custom button state handler for enabling/disabling button state. * Called when the carousel has determined that the previous button * state should be changed. * Specified to the carousel as the configuration * parameter: prevButtonStateHandler **/ var handlePrevButtonState = function(type, args) { var enabling = args[0]; var leftImage = args[1]; if(enabling) { leftImage.src = "images/left-enabled.gif"; } else { leftImage.src = "images/left-disabled.gif"; } }; /** * Custom button state handler for enabling/disabling button state. * Called when the carousel has determined that the next button * state should be changed. * Specified to the carousel as the configuration * parameter: nextButtonStateHandler **/ var handleNextButtonState = function(type, args) { var enabling = args[0]; var rightImage = args[1]; if(enabling) { rightImage.src = "images/right-enabled.gif"; } else { rightImage.src = "images/right-disabled.gif"; } }; /** * You must create the carousel after the page is loaded since it is * dependent on an HTML element (in this case 'dhtml-carousel'.) See the * HTML code below. **/ var carousel; // for ease of debugging; globals generally not a good idea var pageLoad = function() { carousel = new YAHOO.extension.Carousel("dhtml-carousel", { numVisible: 1, animationSpeed: 0.35, scrollInc: 1, //animationMethod: YAHOO.util.Easing.backOut, navMargin: 40, size: 18, prevElement: "left-arrow", nextElement: "right-arrow", loadInitHandler: loadInitialItems, loadNextHandler: loadNextItems, loadPrevHandler: loadPrevItems, animationCompleteHandler: animComplete, prevButtonStateHandler: handlePrevButtonState, nextButtonStateHandler: handleNextButtonState } ); }; /** * Since carousel.addItem uses an HTML string to create the interface * for each carousel item, this method formats the HTML for an LI. **/ var fmtItem = function(imgUrl) { var innerHTML = 'Only local images are allowed.<\/a>'; return innerHTML; }; YAHOO.util.Event.addListener(window, 'load', pageLoad);

Slide Show - Carousel

One image at a time, slide show style. Also illustrates how to indicate which slide we are currently viewing in a separate
status area and how to perform an action when the animation completes.

The additional parameter for handling animation completion:

			animationCompleteHandler: animComplete

And the code to handle showing status when navigating and when animation completes:

// this == carousel
var loadNextItems = function(type, args) {	

	var start = args[0];
	var last = args[1]; 
	var alreadyCached = args[2];
	
	if(!alreadyCached) {
		load(this, start, last);
	}
	var status = "Showing " + start + " of " + this.getProperty("size");
	YAHOO.util.Dom.get("indicator").innerHTML = status;
};
// this == carousel
var animComplete = function(type, args) {
	var direction = args[0]; // string either: 'next' or 'prev'
	
	var status = "Showing " + this.getProperty("firstVisible") + " of " + this.getProperty("size");
	YAHOO.util.Dom.get("indicator").innerHTML = status + " (done)";
};



___________________________________________________________________________

wim leers’s picture

Version: » 5.x-1.x-dev
Status: Active » Closed (won't fix)