I’ve made some minor edits to make the first post easier to read. There was one sentence I couldn’t understand at all, though:
custom url enabled
Add custom url to Login and Signup buttons / links by default this is redirect the visitor after click the Login or Signup button to the homepage and open Login or Signup modal. Note: If you leave unchecked this than the visitor left on topic page after click the buttons and the Guest Gate modal changes with Login or Signup modal which is dismissable so the visitor can close it and read the topic.
Thank you Jonathan I really appreciate it Unfortunately my english is not the best Sorry for this! I will change these in the Theme Component or of course you could send a PR too.
The custom url enabled site setting means.
You can add custom urls to the Guest Gate Login and Signup buttons/links which by default use these custom urls /login and /signup these redirect the visitor to the homepage and open the Login or Signup modal. So if you checked it, it will activate the two settings below this. The custom login url and custom signup url.
If you leave this setting unchecked then it will keep the visitor on topic page after click the Guest Gate Login or Signup buttons/links and open the Login or Signup modal on the same topic page. After this the visitor can close the modal.
I hope it helps to understand and again thank you for your time to makes it more understandable
custom url enabled – Enable the custom login url and custom signup url options. The normal behaviour (if you leave this option unchecked) is for the Login or Sign Up modal to appear on the current topic page.
custom login url – For example, /login is the home page with the “Login” modal displayed.
custom signup url – For example, /signup is the home page with the “Sign Up” modal displayed.
I checked it with Discourse Connect and works as expected for me. The modal not appears after I logged in. Can you share your guest gate settings (screenshot) and your website url (here or PM) to I can check this?
If you use Discourse Connect you have to disable custom url enabled checkbox. Because it will first try to redirect to the custom urls after clicking the Guest Gate modal login / register button. If you leave this checkbox unchecked than the buttons will use the Discourse Connect url.
I think it is because you using custom urls on guest gate buttons https://www.showprowess.com/login and https://www.showprowess.com/register which is not same as SSO login. Please uncheck the custom url enabled setting in guest gate and try again. If you uncheck this the guest gate modal buttons will use Discourse Connect.
This update removes signup button when Discourse Connect enabled and only show a Log In button. I also added different text to Discourse Connect login button guest_gate.sso_log_in . Which you can find under theme translations, the default text Log In . This update also add a custom text guest_gate.or default or separator which appears between login and signup links. Only appear when you use links and not buttons.
And now add another update to the component.
This update will add icon to Log In and Sign Up buttons. I also add some settings to change icons.
I see now on your site the Join NPN button on header is custom button and the Sign In button use Discourse Connect. Guest Gate modal works as expected because you use Discourse Connect login so the signup button is not appear by default. It is hard because users who use Connect cannot use guest gate custom urls settings for authenticate login because that url is mostly generated. But it seems to Memberful login url is not contains generated section.
It will add a settings and translation to Discourse Connect logins. You can disable the custom url enable section and check the enable discourse connect signup checkbox then paste the signup url in discourse connect signup url what you use in custom signup url.