I got problem with ad-image-wrapper height when using adgallery package from your extension download. So I try to download js and css package from http://coffeescripter.com/code/ad-gallery/ then it works great.
Thanks for helping me test! I think I know the reason for this: in the ad-gallery sample code, some dimensions are set in the HTML, some are set by javascript, and some are set by CSS. I set all sizes with javascript in the onready section so that all of these sizes can be passed to the widget in one place (instead of some to the widget, some to css, etc). I did not explicitly set the size of the wrapper properly, nor did I explicitly set the size of the div containing the thumbs. However, the css included in the ad-gallery source does set these, which is why (I think) it worked after you re-downloaded CSS.
In version 1.0.1 (just uploaded) I set the size of the iamge wrapper specifically and set the size of the thumb container to the outerHieght(true) of the thumbnail images after the widget resizes them (if specified), so that it will be as big as the thumb, any borders, margins, and paddings.
Please try it out (with the widget stylesheet instead of the ad-gallery stylesheet) and tell me what you think! Please let me know if it doesn’t work for you, and what browser/os you use.
sorry I am a beginner in Yii, how do I use this extension, because it is less clear explanation on the site, and also help in the path configurations include
above code is written in what files and directories
Just copied the example widget code (see above) into protected/views/site/pages/about.php in order to make some first steps. Package 1.0.1 is installed in extensions folder of course.
I expected to see a nice photo gallery, but instead a vertical list of large original sized pictures - given by imageList array - with HTML bullet points in front appears. I’m troubleshooting for a while now trying to understand AdGallery .php and .js files but I don’t see any obvious mistake I made.
It sounds like it is not properly registering or publishing the CSS files. Are you using the default CSS file? If so, can you check to see if your page is including jquery.ad-gallery.css?
Thanks for your quick response and helping solve the issue! You are right, the CSS file was not published in the assets folder because of wrong write/read access options for the subfolders under assets.
Yes, but indirectly. You would read in the directory in php, make an array, and pass the array of image names to the extension. The extension does not know your directory structure or how it relates to your assets and the publishing of those assets. This function should help you get there: