Skip to:
Content
Pages
Categories
Search
Top
Bottom

button for create topic

  • @andrewkusuma

    Participant

    how to make button to show topic form and hide it before user click button. If user not login. User will get notice to register and login first.

    Someone can help me about it?

    example is http://www.alodokter.com/komunitas/diskusi/penyakit/

    buat pertanyaan is button for showing topic form.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @robkk

    Moderator

    Is this a site you created? It looks pretty darn good and it seems to try to not stay with bbPress’ default design, and everything is unique, which I very much like to see designers do.

    As for what you asked in this topic, you can do this with the help of some jquery, and a conditional whether the user is logged in or not.

    This will have links to basic code for a show/hide toggle for a simple div. Just remember to use the topic forms container ID in any code you are going to use.

    http://www.w3schools.com/jquery/jquery_hide_show.asp

    This is a possible recommendation of a conditional you should use in a function you would create with whatever modal login plugin you are using.

    if (!jQuery(this).hasClass('active') && !jQuery('body').hasClass('logged-in')) {

    @andrewkusuma

    Participant

    I want to clone that site, I will try it. Thank Robkk

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar