alixandru / q2a-open-login

Question2Answer Open Login plugin
62 stars 44 forks source link

Problem with Google, facebook and yahoo login #1

Closed xtremedevelop closed 11 years ago

xtremedevelop commented 11 years ago

Hi i am facing problem with following plug in https://github.com/alixandru/q2a-open-login

at my site http://ask.xtremedevelop.com/ after integrating i am able to login with facebook, google and yahoo, but even after l successful login, neither it shows logout button nor the member name how ever it is working properly with Github and default login

alixandru commented 11 years ago

Looking at the HTML source of your home page, it looks like all login links are redirecting back to http://ask.xtremedevelop.com// after login (that is your site URL ending with 2 slashes). Apparently, this is something the OpenID library won't like so it will not recognize the return page as a valid login response.

I suggest you change your site_url parameter to use a single trailing slash. You can do that either from the Admin page (General section) or directly in the database.

Let me know how it goes!

xtremedevelop commented 11 years ago

Thanks for quick support Now all buttons are working fine except Facebook.

I want to keep my login functionality only on the login page. so it that possible to hide all these buttons from header, as all these buttons are also available on login page.

Can i change the images of facebook, google, yahoo login with something else?

alixandru commented 11 years ago

For Facebook there was indeed a problem with the logout functionality, but a fix has been provided yesterday. You need to download the code again from Github to make sure you have the latest changes.

As for hidind the buttons, you need to implement an advanced theme and hack a little bit into the code (override the function nav_user_search). I plan to add some checkboxes to the admin screen which allows you to select what buttons should be visible in the header, but that will probably not be ready too soon.

Lastly, you can change the images for the buttons through CSS. You can use whatever you like.

xtremedevelop commented 11 years ago

Thanks, Now all 3 buttons are working fine. Thanks again for support.