Page 1 of 1

Files for wordpress

Posted: Fri Jun 05, 2020 9:29 pm
by SebaPL
Hi All, I realize it is rather more to do with Wordpress than P2VR however it is probably very easy for most of you, I am not Wordpress expert and failed at posting the tour directly to the server instead of using ggpkg package. I am able to upload the ggpkg to the WP library and get direct link to the wp-content location like this one https://panostudio.pl/wp-content/upload ... apodolany/ but would rather have it in the folder located on the server like e.g. panostudio.pl/tours/. I tried adding whole output folder to this directory and it did not work, I also tried adding just index.html file to public_html folder and that did not work either. What am i doing wrong? Thanks in advance!

Re: Files for wordpress

Posted: Fri Jun 05, 2020 10:13 pm
by Hopki
Hi,
Firstly I have moved this topic to the correct forum.
You need to upload the package using the media link or the plugin will not see it and decompress it.

However what you can do is create a normal HTML5 output with files for external embedding, see: https://ggnome.com/doc/output-template-normal/
Pano2VR exports the output with the default folder name "output".
You can rename this but not any of the files inside.
Use FTP upload it to your folder of choice.

You can now use the shortcode to embed the pano, {ggpkg url='http://website/folder/project/index.html'}
That should work,
Regards,

Re: Files for wordpress

Posted: Mon Jun 08, 2020 10:09 am
by SebaPL
Hi Hopki
still did not manage to get that, I have uploaded full output folder after creating normal out put with files for external embed. The ggpkg is also uploaded to media library. I can see the tour from wp-content folder I am not able however to get that through direct link: https://panostudio.pl/tour/zielonypoligon/index.html. Should that not work now?

Re: Files for wordpress

Posted: Mon Jun 08, 2020 10:27 am
by Hopki
Hi,
Can you post the direct link to open the output?
Regards,

Re: Files for wordpress

Posted: Wed Jun 10, 2020 9:53 am
by SebaPL
Hi Martin
the direct link is: https://panostudio.pl/wp-content/upload ... nypoligon/
Thanks!

Re: Files for wordpress

Posted: Fri Jun 12, 2020 2:45 pm
by Hopki
Hi,
I used this string using the Classic block:

Code: Select all

[ggpkg url='https://panostudio.pl/wp-content/uploads/2020/06/zielonypoligon/']
This embeds the pano in my test site but does not display the images due to a CORS error.
See: https://en.wikipedia.org/wiki/Cross-ori ... ce_sharing

If you were doing this on the same server then it should work OK.
Regards,