• Hey again. I need history buttons for my website, and I tried adding these: Button to select the last panorama that was viewed

    Unfortunately, the buttons do not work. When I try to click the back button, I get this error:

    http://www.example.com/http://www.example.com/?file=name - loading error (IO error)

    Now, it's obvious why the messed up URL isn't working. But since the history buttons are pulling the panorama's location straight from xml.url, does this mean the contents of xml.url are wrong? Or is the path section of the URL being duplicated elsewhere?

    When actually loading the panoramas (from my hotspots), I only include the "?file=name" part, no path at all, since my xml is generated on the fly by index.php. So the path shouldn't even be there once, much less twice!

  • Hi! Thanks for your interest.

    (EDIT: I am not using scenes.)

    I can't show you all of my xml or link to it because it's generated on the fly using php. The history buttons I was using were pretty much copied straight from your number 1 xml file - the delete, new, back and forward actions and the button plugins, as well as the call to new onxmlcomplete of course. I tried messing around with your code and even rewrite it, but I soon got pissed at how limited and weird the if command is (it kept getting ignored when the condition contained certain constructs, for no apparent reason) so I decided to write my history manager as a plugin. Here it is:

    How to use:

    You must customize the buttons to taste and you can also change the plugin itself to add tweens and other stuff. Passing the button names to the plugin is optional and only needed if you want it to control the visibility of said buttons. my.filename contains the XML filename; Since xml.url is borked on my site I created my own filename field which is filled on the fly by php, but you can replace my.filename with xml.url if xml.url works for you.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!