Good rule of thumb is, if your luggage is checked through to your destination your a transit, if you need to pick up your luggage in Bangkok and check in to a different flight, then you have jump through the entry hoops.
My advice, don't even think of getting married unless you want to lose control over your life. Can get a education or a volunteer visa from an agency once in-country.