Lurker News

Comments (190) 48 threads

Earlier comments
pjc504 replies#
How does the "RSVP to google sheets" work? That's an extremely useful feature to have on a static site with no backend. It looks like it's related to this line:

$.post('https://script.google.com/macros/s/AKfycbzUqz44wOat0DiGjRV1g..., data)
... how does the security work on that, or can I RSVP to your wedding too?

hknd#
He is referring to https://github.com/dwyl/learn-to-send-email-via-google-scrip...

It would be quite easy to check the rsvp code in appscript. E.g. have a sheet with all the guests, and give a random number (rsvp code) to each guest. Then on each rsvp request you could check whether that rsvp code exists in the code column. If yes: you'll add the answer to that row. If no: return an error.

michaelt#

  How does the "RSVP to google sheets" work?
I don't know how the wedding website works, but I've done some basic recording data to google sheets like so:-

1. Create 'google forms' one-page survey, gathering outputs into a spreadsheet.
2. Use browser debug tools to figure out form field names, which will be things like 'entry.1150050082'
3. curl "https://docs.google.com/forms/d/ 1xFOZk3D1...wnIjGAf0/formResponse?ifq&entry.1150050082=FOO&entry.1477423851=BAR&entry.592766186=BAZ&submit=Submit" or the appends a row to the google sheet with the values FOO, BAR and BAZ.
I assume if your site embedded a form that sent the same request as that curl query, it would do the same thing.
Obviously, this isn't going to win you any awards for highly maintainable professional design at work. But if you want something quick and you aren't fussed about whether it works a year from now, it can get the job done.

rampatra1 reply#
Yes, I found it extremely helpful too. You can only RSVP if you have the invite code. If you don't then you can't RSVP.

You can store the code in a particular box in the sheet and then your google script can validate the code entered by the guest.

seedie1 reply#
You are checking the invite code in the browser side js. That doesn't keep any tech-savvy user from registering even without code. Is this correct?
rampatra#
Yes, that's correct for my site currently. But what I had in mind is to have the invite code in the sheet itself and then when one submits, I check the entered code with the code in the sheet and then add/not add the rsvp.

However, due to timing constraints, I couldn't do this and instead used a simple encryption algorithm to have the hacker at least put in some effort to know the invite code :)
I will raise an issue on github for this.

dustinmoris#
Wow, all these wedding websites here look amazing. Ours was a really simple static webpage which I hacked together in a single day. At least our guests loved it :) http://hetalsaidyes.com

However, I shall say that we made the website for convenience, we still sent out letters with a formal invitation. The website was more like a place for people to quickly check details and later to distribute photos by guests.

th3iedkid2 replies#
Wow! Great timing...Getting married in a couple of days and here 's our website

https://mamamami.wedding

jyriand1 reply#
FYI, after clicking RSVP link, all the navigation links stop working. I'm using Firefox.
th3iedkid#
Hey thanks! Fixing it :D
aashcan#
Nice site, you might want to quickly fix some typos and spaces b/w punctuations (periods and commas) in your text!
cdolan1 reply#
For my wedding I tried to not have any technology on me for photos. I always feared having a great photo like that one - but then it can look "dated" with an iPhone 6 in it.

Without that iPhone, that photo could be from anytime 1950-2020!

mi100hael#
I don't think it's a secret they got married in 2017, though.
rampatra1 reply#
Yes, I coded and she tested it. She also helped me with the color themes. Lastly, she was the final "go/no go", after all, she is the boss.
rampatra#
*was=gave

Load more comments