Modal pop-up for first time visitor


(Ted Strauss) #1

This is a feature suggestion, to have a modal pop-up that displays only for first time visitors to a Discourse site. The modal can be filled with HTML or other content types. The purpose is to say hello to first time visitors and encourage them to register.

This would most likely be implemented as a plug-in, called First time visitor.

Does something like this already exist?

Here are the settings I imagine the plug-in providing. I’d be glad to make a mock up, but I think we all know what a modal looks like.

Plug-in settings

  • Activate modal: on / off
  • Time delay before modal appears: ___ seconds
  • Modal appears on vertical scroll to: ___ % page
  • Modal content type: Markdown / HTML / Onebox / Default signup CTA
    • Enter content here
  • Display link to signup: on / off
  • Display link to a post: ____ [post id]
  • Display First time visitor on an anonymous user’s first ___ visits.

#2

Would the signup cta do the trick? In the Discourse Admin Settings section, search for the following: enable signupI don’t know if you can customize it, but it does the trick as is.


(Tom Wrench) #3

You could always try an external service, such as https://getsitecontrol.com/ ? Here you can choose the type of window, who it targets etc.

I’ve been looking at this for my Discourse instance I’m currently working on.


(Mittineague) #4

Only curious.

How to you differentiate between a “first time visitor” and a member that hasn’t logged in?

There is already the “Log In” modal for when a non-logged-in visitor wants to post a Reply.
There is already the “Hey there!” that shows at topic bottom when a non-logged-in visitor has read a few topics.

Would those not be enough?


(Ted Strauss) #5

This looks very promising. I may end up using this. Thanks

That accomplishes the most basic use case. If someone were to implement the proposed functionality, that would probably be the right place to start.

I’m assuming that Discourse is logging IP addresses and/or storing visit counts in a browser cookie. That info can be used to flag an anonymous user’s IP as belonging to a registered user. I’m assuming -optimistically- that Discourse’s API makes it easy to check this.


(Erlend Sogge Heggen) #6

Yep, it does: