By Todd on Saturday, 11 January 2014
Replies 1
Likes 0
Views 1K
Votes 0
Hello Everyone,

I'm trying to change the link of the "or Ask a Question" when the user is not logged in. When the user is NOT logged in, the button automatically takes the browser to the registration form. I'd like to modify this so that is takes the browser to an article or page with "instructions" (to either login or create an account). The attachment shows a screenshot of the button I'm referencing.

Please advise, thank you!
Todd
Hello Todd,

I am really sorry for the delay of this reply as it is a weekend for us here.
Do you mean you would like to redirect to login page when the user click the "Ask a Question" button right?
If yes, you can change the code from this file JoomlaFolder/components/com_easydiscuss/themes/simplistic/searchbar.php ,
LINE 64

<a class="btn btn-<?php echo $system->config->get('layout_ask_color'); ?> btn-ask pull-left" href="/<?php echo DiscussHelper::getRegistrationLink();?>"><?php echo JText::_( 'COM_EASYDISCUSS_OR_ASK_A_QUESTION' );?></a>

Replace with

<a class="btn btn-<?php echo $system->config->get('layout_ask_color'); ?> btn-ask pull-left" href="/<?php echo DiscussHelper::getLoginLink();?>"><?php echo JText::_( 'COM_EASYDISCUSS_OR_ASK_A_QUESTION' );?></a>

Hope this help.
·
Saturday, 11 January 2014 12:28
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post