API or Code for public facing buttons

I was trying to add a button to my members profile page that would pass information to a lightbox or page but found i can’t really do that.

A little background. I have a referral system setup that uses a stripped version of the Wix User Id as a referral number, and this is stored in a database when the user Signs Up. This makes sure it is unique for each member and i don’t need to re-create the wheel to do so.

Members have the option to share the Community Link Profile page url from the “My Account” member page with non-members. I wanted to add a button to that page so if a member shared that page url with a non-member, the non-member could click on that button and be taken to my custom Sign Up lightbox. I also wanted to use that button to pre-fill in the referral code of the member whos’ page they click the button on.

(Example: Bob is a member. Bob shares his community link profile url with Joe. Joe likes Bobs profile and wants to join the website. Joe clicks on the “Join Today” button on the page and is taken to the website and the Sign Up lightbox. Joe fills out all his Registration information on the form. The field “Referred By” on the form is already filled out for Joe with Bobs referral code.)