Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
306 views
in Plugins by
Hello,

First of all I'd like to say thank you for this lovely piece of software that you're giving out for all of us to use.
You are amazing, keep up the good work !

I have a simple question regarding the Facebook login plugin,

What do I need to do in order to remove it from the user menu and place it somewhere else?

Can you please help me out do do that?
I'm not sure which piece of code I need to move around.

Can you please help me out with that or just give me a hint so I know where to start from?

Thank you very much in advance
Q2A version: 1.6

1 Answer

+1 vote
by
 
Best answer

Yo need to create an advance theme,

and then like you want it below header, then add this code to your advance theme

function header()
{
    qa_html_theme_base::header();

    
    // this will show all login modules, including FB
    $loginmodules=qa_load_modules_with('login', 'login_html');
    foreach ($loginmodules as $module) {
        ob_start();
        $module->login_html(qa_opt('site_url').qa_get('to'), 'login');
        $html=ob_get_clean();
        
        if (strlen($html))
            $this->output($html);
    }    
}

...