Image URLs being renamed/appended

Everything concerning the Wordpress/Joomla/Drupal plugins
Post Reply
Posts: 26
Joined: Mon Jan 04, 2021 8:20 pm

Tue Apr 20, 2021 1:14 am

OK, I solved my first issue, but now have a new and frustrating one:

When I upload my tour, it is now working fine, EXCEPT when rendered the images in all my image popups - which are pulled from my photo site - have the WP base url appended to them. What's very weird though is the index.html and the pano.xml don't have this issue - it's only when the player pulls the data out.

As an example, here's code pulled from a test hotspot in my pano.xml file:

Code: Select all

<hotspot skinid="ht_image" description="to see if it works" title="testing this" url="" target="" id="Point01" tilt="13.22" pan="-354.06"/>
And, when I open the post, the image fails to display. I then go to inspect element, and the url is appended and the new url is:

Code: Select all

So, somewhere along the line the player or something is appending the base url to the image urls. Any idea what is going on?


Posts: 26
Joined: Mon Jan 04, 2021 8:20 pm

Tue Apr 20, 2021 5:52 am

I'm going a bit crazy with this issue, and hoping someone has a suggestion as to what is going on. I have scoured the forums, watched webinars, changed skin variables and actions using $(r)$(hu) and more, and still get the same result over and over: the browser, player, WP, or some evil being (or most likely my mistake) causing the absolute url to the web-based images to be appended to having the WP base url of the project at the beginning.

I put the tour in a PW protected post here: PW is: goingcrazy

Really hope someone has an idea or solution for this, as I'm out of ideas!

Thanks in advance,

Posts: 26
Joined: Mon Jan 04, 2021 8:20 pm

Tue Apr 20, 2021 5:03 pm

Seems I might have found the culprit in the skin.js code:

Code: Select all

		me._ht_image.onclick=function (e) {
			skin._popup_image.ggText=player.getBasePath()+""+me.hotspot.url; = '0px'; = '0px';
			player.setVariableValue('vis_image_popup', true);
			if (skin._popup_body_text.ggUpdateText) {
				skin._popup_body_text.ggUpdateText=function() {
					var hs=me.hotspot.description;
					if (hs!=this.ggText) {
						if (this.ggUpdatePosition) this.ggUpdatePosition();
Specifically the second line which appears to append the base path to the hotspot url, when I want it to do what it's supposed to do and just grab the absolute url and roll with it.

Hopki, anyone, have an idea on this, please?
User avatar
Posts: 11657
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK

Tue Apr 20, 2021 6:20 pm

This was solved in support e-mail.
But for anyone following, if you want to open an image that is hosted somewhere else then you need to make some modifications.

The Hotspot type has to be changed to URL.
The SKin ID can remain: ht_image.
Then the URL can be added in the Hotspots Link URL text field.

The Hotspot Template action needs to be modified, the value shows

Code: Select all

This needs to be changed to

Code: Select all

Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
Post Reply