How to force purchase of a Subscription in order to become a Site Member

Hi, I’m trying to create a site where only paid Subscribers (people who have purchased a Subscription) can become Site Members. I have tried modifying the Lightbox so it displays the Subscription purchase options, but this then takes you to the sign up form which creates an infinite loop with the Lightbox. Greatful for any help or advice.