Logic block based on HTTP host

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
sparrow
Posts: 67
Joined: Thu Aug 04, 2016 12:44 pm

Hi

Are there any logic blocks relating to hosts or domains.

IE I want to show an image if the host contains www.host1.com and hide it if it's served from www.host2.com

I couldn't find anything within the skin builder but it'd be a really really useful feature.

In my case, I want to display a client logo of the tour is served from their site. We want to display our logo if the tour is served from our own domain.
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

HI sparrow,
No nothing like that in the software.
What you thinking?
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
sparrow
Posts: 67
Joined: Thu Aug 04, 2016 12:44 pm

Hey Hopki

Just trying to do this...

>>In my case, I want to display a client logo of the tour is served from their site. We want to display our logo if the tour is served from our own domain.

It'd save us having two versions of the same tour and even two separate skins too.
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Added as feature request Issue #1657
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
sparrow
Posts: 67
Joined: Thu Aug 04, 2016 12:44 pm

Great - thank you Hopki :)
M. Kräckmann
Posts: 47
Joined: Mon Feb 22, 2016 3:38 pm

sparrow wrote:Hey Hopki

Just trying to do this...

>>In my case, I want to display a client logo of the tour is served from their site. We want to display our logo if the tour is served from our own domain.

It'd save us having two versions of the same tour and even two separate skins too.
You could just replace the logo Image, but leave the filename the same?
sparrow
Posts: 67
Joined: Thu Aug 04, 2016 12:44 pm

M. Kräckmann wrote:
sparrow wrote:Hey Hopki

You could just replace the logo Image, but leave the filename the same?
I certainly could and that's not a bad idea.
Unfortunately though I'd still have to generate two separate Output folders with all the files.
I just did a small 10 node tour and the Output folder was 400+ MB so I'm keen to have as few as poss for small variations of the same tour.
Post Reply