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.
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
I am using WordPress Social Login for my website then what code should i modify.
Hello Ejaz !
At the moment I can not access to your site, please check again your site.
Hi Dominic,is available now. I want a social login with the login link in question and answer page. How can i do this.
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):
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' ),
__('to Submit Answer','dwqa')
<?php wp_login_form( array(
'redirect' => get_post_permalink( $question_id )
) ); ?>
.. and replace it with your new social login code.
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?
I would do it like this:
Please login or Register to submit your answer