Moving controls of slideshow out of plugin file

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:

`
... control buttons ...
`

Can I overcome this problem easily, or will this be too complicated?
Like I said, it's not a big deal, but it would be nice to have all controls in the same place on the page.

Comments

  • acrylian Administrator, Developer
    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:
    `<div id="slideshow">
    <div id="controls>controls</div>
    <div id="slides>slides</div>
    </div>'

    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").
  • Yes, you got it right about the positioning.
    Strangely, the controls did function properly when moved out of those elements and inside another template file, except for that 'stop'and return' button :)

    Good suggestion though, to try and move the controls by css! I'm gonna play with that!
  • acrylian Administrator, Developer
    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..:-)).
  • That was easy! Just needed a little css, that's all :-)
    The result: link

    I gave the controls a little less height, negative margin and float.
Sign In or Register to comment.