Iframe
-
Is it possible to use an iframe to call a specific scene?
-
Try to add to the iframe scr url the parameter “sceneid” like
https://develop.loc/ipanorama/virtualtour/2?sceneid=123It doesn’t work that way, unfortunately.
I had to make a few changes but this seems to work.
<iframe width=”560″ height=”315″ src=”https://www.kasdorf.name/wordpress/ipanorama/virtualtour/1?sceneid=4d8f28b9″ frameborder=”0″ allowfullscreen=””></iframe>
<iframe width=”560″ height=”315″ src=”https://www.kasdorf.name/wordpress/ipanorama/virtualtour/1?sceneid=f5120eec” frameborder=”0″ allowfullscreen=””></iframe>
No space after ?
Same tour, #1, but two different scenes.
Sorry, the code got converted somewhat, the ampersand/number sign stuff should not be in your code.
Remove between the ampersand and semicolon (including them) in both cases.
How do I enter code without it getting trashed?
There should be a quote instead of the semicolonMaybe it doesn’t work for me because I use my custom ID for scene. With a short code, things work out. I will continue with the experiments.
- This reply was modified 2 years, 8 months ago by Plamen Yanev.
- This reply was modified 2 years, 8 months ago by Plamen Yanev.
Shouldn’t matter. Are there spaces or “special characters” in your custom name?
Try removing them, or putting underscores_in_name instead.
Just try a simple 1234, you can change it back once you get it working.Here’s what I use. I found that there is no problem in the ID.
<iframe width=”560″ height=”315″ src=”https://varnamaps.eu/ipanorama/virtualtour/panoramic-photos?sceneid=pasha-dere-plaj” frameborder=”0″ allowfullscreen=””></iframe>
Looking at the Html code page I see that the sceneID attribute is missing.Remove the ampersand, number sign, 8221, semicolon.
add quote where semicolon is.
panoramic-photos/(Put tour ID Number here)?sceneid=pasha-dere-plaj” frameborderThere are two parts you need, tour ID, scene ID
Try looking at the code here:
https://www.kasdorf.name/wordpress/2021/02/07/360-pano-test-using-short-code-sceneid-url/
Everything is as it should be:
tour ID = panoramic-photos
scene ID = pasha-dere-plaj
and the last part is …/virtualtour/panoramic-photos?sceneid=pasha-dere-plaj”
somewhere else is the problemIt still looks like you are missing the initial “Shortcode”
In iPanorama, if you edit the tour, you have a button for “ShortCode”
In mine, it is [ipano id=”1″] (But every tour has another number)Oh! Are you saying you changed the ShortCode to “panoramic-photos”, or is that the directory where these are kept?
But I just tried changing it and I can’t, so not sure if you did or did not.
If you did not change it, the number of that shortcode should go after the directory.
Have you made any tours that work yet? Or is this the first?Did you actually change the name of the Shortcode, or just used one you like “panoramic-photos”? I ask because I cannot change that field at all, so wonder how you did.
Please verify what is in the “Standard Shortcode” field when you click on the “Shortcode” button.Okay, you are using the Embed code with URL slug for this.
I use that and it works the same for me.
I don’t know what else to tell you.Can you share a link to a web page with iframe? It will be better to understand that is going on.
That’s right, I use slug and custom ID for SEO reasons. Everything seems to be ok, but it doesn’t work. Otherwise, the presentation loads but does not read the “sceneID” argument, as a result of which whatever ID argument is placed, it always loads the first scene of the presentation. There is no “sceneID” in the HTML of the page code, unlike when shortcode is used. When I find this anomaly I will report.
Here is a link where I published the presentation in both ways. With short code and iframe :
https://varnamaps.eu/pasha-dere/shortcode – [ipano id=”2″ sceneid=pasha-dere-plaj]
iframe – …/ipanorama/virtualtour/panoramic-photos?sceneid=pasha-dere-plaj” frameborder=”0″ allowfullscreen=””>I tried this way without success – …/ipanorama/virtualtour/2?sceneid=pasha-dere-plaj” frameborder=”0″ allowfullscreen=””>
- This reply was modified 2 years, 8 months ago by Plamen Yanev.
- This reply was modified 2 years, 8 months ago by Plamen Yanev.
- This reply was modified 2 years, 8 months ago by Plamen Yanev.
Well, I have tested. The “sceneid” parameter works if the option “auto load” is ON, overwise the plugin loads the first scene after the button click. Maybe I need to fix it.
- The topic ‘Iframe’ is closed to new replies.