Mike
asked 9 years ago

Hello
1. When visiting our site as a guest we see the following below the questions:
‘Please login or Register to Submit Answer’
Is there a way to redirect the Register link to a different page? We are using a membership plugin and require payment to join the site and access function.
2. If I have permissions set so that ONLY admin can answer questions should the ‘Please login or Register to Submit Answer’ really even appear? It does not seem correct
 
Regards
Michael

Mike
replied 9 years ago

Anyone?

3 Answers
Guru
answered 9 years ago

Hi Mike, 

I have found this on the internet, but have not tried it. Hope this works for you:
http://online-source.net/2011/04/10/redirect-to-custom-register-page-with-wordpress/

Mike
replied 9 years ago

Thanks Guru. Getting late here now. I’ll have a go over the weekend and let you know how it all works out.

Mike
replied 9 years ago

Hi Guru
Thanks for your solution. It worked but BigHug’s solution below was simpler. I will archive your solution for another day.
Regards
Mike

Guru
replied 9 years ago

As they say I only try to help, I am not the expert. BigHug is! 🙂

BigHug
answered 9 years ago

Hi Mike, 
Did you make it work? Also here is my opinion:
1. you can change redirect link in dw-question-answer/inc/templates/default/answers.php  file, line 121. We will add a filter here in next version for other can easy change it.
2. When you enable answer for administrator. we will provide a message like this “You do not have permission to submit answer” for who is not logged in. we require logged in when user is guest.
Regards 

Mike
replied 9 years ago

Hi @BigHug
Yes Guru’s suggestion worked but yours was easier to implement.
The features you mention sound very promising.

One other thing I need to do now and that is get the question author link on the page with the list of questions to redirect to the BuddyPress profile. That is still going ot the WP author page which gives a 404. I managed to get the individual question link to redirect using ‘BP Blog Author Profile Link’ plugin but this did not change the other link.

I don’t want everyone being an author on the site as that would allow them to post blogs? Am I right about that? Sorry for being such a WP newbie.

Regards & Appreciation
Mike

BigHug
answered 9 years ago

Hey @mike, you can copy the file dw-question-answer/inc/templates/default/content-question.php to your-theme-folder/dwqa-templates/content-question.php then go the line 28 and replace :

     get_author_posts_url( $authordata->ID, $authordata->user_nicename )

with

   bp_core_get_user_domain( get_the_author_meta('ID') )

 

Powered by DW Question & Answer Pro