Norbert Nepela
asked 10 years ago

Hi, I have a site with a specific member management and wish to disable the registration functionality within DWQA (i.e. user should not be able to register in the process of posting a new question). Instead, I wish to direct unregistered user to a specific registration link. How do I do it? Thanks

Guo Yunhe
replied 10 years ago

I have the same demand. DWQA registration is the source of spam.

1 Answers
Guo Yunhe
answered 10 years ago

I tried to modify source code manually. This is what I do: Find inc/template-functions.php, change code from line 160 to 181 (block in ‘if’) as:
 

To ask a question, you must <a href="<?php echo wp_login_url( get_permalink() ); ?>" title="Login">login</a>.
No account? Click here to <a href="<?php echo wp_registration_url(); ?>" title="Register">register</a>.

and find thesis/dwqa/box.php, change from line 309 to 316 (block in ‘else’) as:
 

 ?>
To answer question, you must <a href="<?php wp_login_url( get_permalink() ); ?>" title="Login">login</a>. No account? Click here to <a href="<?php echo wp_registration_url(); ?>" title="Register">register</a>;
<?php

 
By doing this, you replace login or register form by link to your login page or register page. It works for me.

well wisher
replied 10 years ago

Nice answer Guo removing the user registration form of dwqa is actually the right thing to do but this change should be made official so that it become permanent and updates to plugin may not mess it up again !

Powered by DW Question & Answer Pro