- 2019-03-13 at 4:45 pm #12676
Hi, i have the save state puzzle working. What i would like to be able to do is allow someone to share that saved state with someone say on Facebook look at my build etc. Also as an added bonus be able to see your saved builds in my account page on WordPress or something along those lines. Does anyone know if its possible and if so some general guidance on how to do it would be great. Thanks A lot2019-03-14 at 3:50 pm #12770
You need to encode your state in the dictionary manually, send this dictionary to the server with the “send data” puzzle and encode the URL/ID of this state in the application URL.
It may sound a bit complicated, that’s why please check out the Custom Image demo in the recent Verge3D builds and use it as an example.
2019-03-15 at 10:30 am #12813
- This reply was modified 2 months, 1 week ago by Alexander Kovelenov.
Hi Alexander, Thanks for the reply. That makes sense. Cant find the example you are referring too?2019-03-15 at 1:28 pm #128162019-03-16 at 10:06 am #12833
Ah yes, i sort of understand the process of this puzzle. Struggling to find a way to assign it to my puzzle though. Is there a simple way of me being able to encode the url based on the saved state of the objects. I have around 50 Objects.
Example when clicked “save” save state of variables then encode url variable which when shared will load the state of the objects
2019-03-17 at 9:37 am #12855
- This reply was modified 2 months, 1 week ago by Luke224.
With 50 objects URL encoding won’t be a perfect way to store data due to size limitations imposed by the web browsers. So you might want to store your data on the server and encode ID/URL to that data instead. I believe using dictionary puzzles is the perfect way to encode your data.
For example, you can store per-object data in the dictionaries and then push them to the array. Then this array can be uploaded to the server for persistent storage and retrieved by ID/URL.2019-03-17 at 1:27 pm #12858
Hi alexander, thanks for the continued support. Im not too sure how i would do that with puzzles could you possibly show an example of this
You must be logged in to reply to this topic.