Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
576 views
in Q2A Core by

I want to hide the register form on the register page showing only facebook login button. exactly in this way:

Q2A version: 1.7.1

1 Answer

+1 vote
by
reshown by

Just implement a layer by forllowing he tutorial of q2a and change the code accordingly 

the below code should do the job 

class qa_html_theme_layer extends qa_html_theme_base {

 

    function doctype() {

        if ($this->template=='register' && 

              isset($this->content['form']['hidden']['doregister']) && 

              !!$this->content['form']['hidden']['doregister']) {

                        unset($this->content['form']);

         }

   }

}

Hope it helps 

...