Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
in Plugins by
we all need to plugins for login with google and much more so help me some one out of this...


2 Answers

+1 vote
Are you talking about this:


this above demo use loginza plugin, this plugin is pretty old using php short tag, just update it and is fine. I am using it (check above demo)
hey its work but after login logout is not work what for this...
solution: use static url like tovolt.com/logout (this link if you have enabled htaccess)
you means
 function logout_html($tourl)
            // Delete cookies when logout and redirect to ./logout
            <script type="text/javascript">
                function DelLoginzaCookies() {
                    //alert("is Work");
                    document.cookie = 'qa_loginza_id=; expires=Thu, 01-Jan-70 00:00:01 GMT;';
                    document.cookie = 'qa_loginza_scr=; expires=Thu, 01-Jan-70 00:00:01 GMT;';
                    document.location = 'http://localhost/question2answer/';

            <a href="#" onclick="DelLoginzaCookies()">Exit</a>
any new plugins for question 2 answer...
+1 vote

Try the Open-Login plugin from here: https://github.com/alixandru/q2a-open-login

As a note, in order to test the logins from localhost you need to add an entry to your hosts file (/etc/hosts or c:\windows\system32\drivers\etc\hosts) with a custom domain that would point to your loopback address.

For example, add  local.mysite.com

Then you will be able to access your localhost through the URL local.mysite.com, tricking Facebook login and other providers into thinking you are on a legitimate site. This way you can test the login/logout functionality.