Guest Gate Theme Component

Hello @KhoiUSA :wave: Thanks, I merged an update: DEV: Migrate FA5 icons to FA6 by VaperinaDEV · Pull Request #25 · VaperinaDEV/discourse-guest-gate-theme-component · GitHub :slightly_smiling_face:

6 Likes

Thanks for the update!

3 Likes

Hi there - we have attempted to install this component on a new Discourse instance however we receive an error when the modal is set to display:

The link is to this post.

Given the post is from 2023 it seems surprising that this update would be required for this component. So I’m wondering if we’ve done something wrong with our installation?

Hello :waving_hand: Can you remove the component and reinstall this: GitHub - VaperinaDEV/discourse-guest-gate-theme-component: Forced login / registration popup insired by Quora to make sure you use the correct component?

1 Like

Thanks for that. It’s working now!

That said, I’m struggling to update the text on the modal. I can update the title successfully but can’t seem to edit the main text. Am I editing the wrong fields?

Turns out we just needed to enable the appropriate setting:

1 Like

Hello @Don Thank you for such a nice component. I see the intention (in fact the title) of the component is to be triggered by guest/anonymous users. Could settings for group or trust-level based conditions be added? I am trying to present a modal for logged in users who visit any topic in a specific category. This would compliment Discourse-subscriptions and category-lockdown.

Hello @Don
Thank you for the component. We use your plugin on the forum https://community.escapecollective.com/. But we have a problem: when setting the max_guest_topic_views parameter to more than 1 (in our case, 3), the modal window appears for a moment and then immediately disappears. I believe this is because Discourse performs a “soft” page refresh (Ember SPA routing) when loading JS, and at that moment the view counter is reset and the modal window disappears immediately. I think this happened after updating Discourse to version 3.5.0.beta9-dev. Please help me figure this out.

ezgif-5e4b84ca418b8a

As one datapoint, I’m trying to repro this and unable to.

I’ve just updated to latest and this Theme Component seems to be working as intended.

Have you tried using it in a default theme?

1 Like

@merefield Thank you for your reply, but yes, we are using the default theme. You can check it yourself at https://community.escapecollective.com/. Here is another video showing the problem:

ezgif-7af28737d709fa

Anything showing on your javascript console?

@merefield nothing

1 Like

Hello :wave:

This looks like an issue with Topic Cards theme component. When you click the topic title it will force a full page load too which cause the issue here. If you open a topic with clicking somewhere outside the title than the Guest Gate can works normally because it won’t force a page reload, so only the SPA loading happens.

Please report the problem in the Topic Cards theme component topic.

2 Likes

Hello @Don
Yes, you’re right, if I disable the Topic Cards component, everything works as expected. I’ll write in the Topic Cards thread since we need both of these components.
Thank you!

1 Like

Topic List Previews also has a wide format option for Tiles similar to Topic Cards … and it’s working with GG currently. Perhaps you can try that out whilst you wait for a fix to Topic Cards …

1 Like

Hello everyone,
Thank you for the plugin, it works perfectly.
I just have one question: I haven’t seen any settings to center the title. Is that normal?