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
I have found this on the internet, but have not tried it. Hope this works for you:
Thanks Guru. Getting late here now. I’ll have a go over the weekend and let you know how it all works out.
Thanks for your solution. It worked but BigHug’s solution below was simpler. I will archive your solution for another day.
As they say I only try to help, I am not the expert. BigHug is! 🙂
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.
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
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 )
bp_core_get_user_domain( get_the_author_meta('ID') )
Please login or Register to submit your answer
replied 9 years ago