רכיב נושא שער אורח

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 לייקים

Thanks for the update!

3 לייקים

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

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

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

כנקודת נתונים אחת, אני מנסה לשחזר זאת ואיני מצליח.

זה עתה עדכנתי לגרסה האחרונה והרכיב ערכת נושא זה נראה שעובד.

לייק 1

@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

משהו מופיע בקונסולת ה-JavaScript שלך?

@merefield nothing

לייק 1

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 לייקים

שלום @Don
כן, אתה צודק, אם אני משבית את רכיב כרטיסי הנושא, הכל עובד כמצופה. אני אכתוב בשרשור כרטיסי הנושא מכיוון שאנו זקוקים לשני הרכיבים הללו.
תודה!

לייק 1

תצוגמות מקדימות של רשימת נושאים כוללות גם אפשרות עיצוב רחבה עבור אריחים, בדומה לכרטיסי נושא… והיא פועלת כרגע עם GG. אולי תוכלו לנסות זאת בזמן שאתם ממתינים לתיקון עבור כרטיסי נושא…

לייק 1

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?