Member
Member
jackdaw   2008-06-29, 05:57
#1

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.

Administrator
Administrator
acrylian   2008-06-29, 08:40
#2

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:
`
slides
'

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").

Member
Member
jackdaw   2008-06-29, 08:47
#3

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!

Administrator
Administrator
acrylian   2008-06-29, 08:52
#4

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..:-)).

Member
Member
jackdaw   2008-06-29, 08:58
#5

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.