![]() |
|
Moving controls of slideshow out of plugin file - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Moving controls of slideshow out of plugin file (/thread-3195.html) |
Moving controls of slideshow out of plugin file - jackdaw - 2008-06-29 This is not a big deal, but in my template I have my regular next/previous buttons at the top right corner of the screen. I was trying to get the controls of the slideshow in that same place. Copying the original div named controls from plugins/slideshow.php tot mytheme/slideshow.php works ok, except for the close or 'return to album or image page' button. This results in a ZP mysql error message. I guess this is because of some missing information about what image/album the slideshow is at that point, that could not be passed to the page/controls. All because of moving this div:
Can I overcome this problem easily, or will this be too complicated? Moving controls of slideshow out of plugin file - acrylian - 2008-06-29 So you want to have the controls in the upper right corner just as "vorherige" etc?. You can't really move the div with the controls because it's tied into the jQUery Cycle JS. The elements in simple setup: If you move the controls out of this, it breaks the functionality. Actually the slideshow was intended to be a little generic with a black screen to focus on the images and to work out of the box with basically every theme. Anyway, I would suggest trying to move it via css positioning. Each theme has it's own slideshow.css you could use to style the slideshow, you even could replace the control images if you like (it uses a technique called "css sprites"). Moving controls of slideshow out of plugin file - jackdaw - 2008-06-29 Yes, you got it right about the positioning. Good suggestion though, to try and move the controls by css! I'm gonna play with that! Moving controls of slideshow out of plugin file - acrylian - 2008-06-29 Right, the return is linked from slideshow.php to the image or album.php you came from. That is indeed hardcoded, but it should be possible to style the theme's slideshow.php just like any other theme page (that's why we made it a theme page..:-)). Moving controls of slideshow out of plugin file - jackdaw - 2008-06-29 That was easy! Just needed a little css, that's all :-) I gave the controls a little less height, negative margin and float. |