Dom Amor
asked 10 years ago

After hours or maybe even a day it took me to do install a Facebook, Google +, twitter sign on work and look good. 
First install the Social plugin.  Then insert this line into dw-questions/inc/template-functions.php  “<?php do_action( ‘social_connect_form’ ); ?>”
So your template-functions.php looks like this in and around line 201
line 201          <div class=”login-box”>
new line 201   <?php do_action( ‘social_connect_form’ ); ?>

Works very nice and just wanted to share with everyone on here. 

Ejaz Ahmed
replied 10 years ago

please share your url

joannaleng
replied 7 years ago

is there an updated version for this to work?

5 Answers
Kido D
answered 10 years ago

Wow, that’s awesome Dom!
 
Do you have an account on Github? Do you mind uploading the code into our project on Github:  https://github.com/wp-plugins/dw-question-answer
 
Cheers

Ejaz Ahmed
answered 10 years ago

I am using WordPress Social Login for my website then what code should i modify.

DominicStaff
answered 10 years ago

Hello Ejaz ! 
At the moment I can not access to your site, please check again  your site.

Ejaz Ahmed
answered 10 years ago

Hi Dominic,is available now. I want a social login with the login link in question and answer page. How can i do this.

Kido D
answered 10 years ago

Hi Ejaz,
At the moment, we don’t support the social login for Q&A plugin, but you can try to find some social login plugins on the WordPress repository, or just check out this article: http://wp.smashingmagazine.com/2012/05/29/login-wordpress-using-social-network/.
After you install a plugin (for ex: wordpress social login plugin), open up the answers.php file in plugins/dw-question-answer/inc/templates/default folder, find the following code (somewhere at bottom of the file):

 <h3 class="dwqa-title">
<?php
printf('%1$s <a href="%2$s" title="%3$s">%3$s</a> %4$s',
__('Please login or','dwqa'),
site_url( 'wp-login.php?action=register' ),
__('Register','dwqa'),
__('to Submit Answer','dwqa')
);
?>
</h3>
<div class="login-box">
<?php wp_login_form( array(
'redirect' => get_post_permalink( $question_id )
) ); ?>
</div>

.. and replace it with your new social login code.
Regards,

Ejaz Ahmed
replied 10 years ago

Hi Kido, thanks for your super quick reply. well i am not a developer, i am using WordPress Social login by Miled. I want to show google, facebook icons below the Dwaq login form.

Kido D
answered 10 years ago

Hi Ejaz,
As we do not support the social login for Q&A plugin yet, this is as far as we can help you in this case.
@askmediy: maybe you would like to help out this case, Dom?

Ejaz Ahmed
replied 10 years ago

Hi Kido,
I know you don’t support social login as yet, i just want to know if there is any way to display social in login form.

Guru
replied 10 years ago

Dear Ejaz, you can use userpro plugun to achieve the same results, buts its not free.

Ejaz Ahmed
replied 10 years ago

Thanks Guru, Please do let me know if there is any way out by modifying/adding some code to achieve the result.
once again thank you very much

Dominic Staff
replied 7 years ago

At the moment, our plugin have compatible with the social plugin, you can use the following plugin:
https://wordpress.org/plugins/wordpress-social-login/

nateno
answered 7 years ago

I would do it like this:

Dominic Staff
replied 7 years ago

At the moment, our plugin have compatible with the social plugin, you can use the following plugin:
https://wordpress.org/plugins/wordpress-social-login/

Powered by DW Question & Answer Pro