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
Cheers
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.
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,
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.
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?
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.
Dear Ejaz, you can use userpro plugun to achieve the same results, buts its not free.
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
At the moment, our plugin have compatible with the social plugin, you can use the following plugin:
https://wordpress.org/plugins/wordpress-social-login/
I would do it like this:
At the moment, our plugin have compatible with the social plugin, you can use the following plugin:
https://wordpress.org/plugins/wordpress-social-login/
Please login or Register to submit your answer
replied 11 years ago
please share your url
replied 8 years ago
is there an updated version for this to work?