By Arun on Thursday, 20 August 2015
Posted in Technical Issues
Likes 0
Views 716
Votes 0
Dear Team,

I'm having following issues with easydisucss component

1. not able to remove the ask button from search bar, ever after disabling (selecting No) for enable ask button tab.
2.Ask a question button under search tab is redirecting it to /index.php/component/users/?view=registration i.e user registration instead of user login page.

The FTP link to access the site is

xxx

Reqeust for you support in solving the issue.

Thanks

Arun
+91 9910005779
Hey Arun,

1. not able to remove the ask button from search bar, ever after disabling (selecting No) for enable ask button tab.

Perhaps you can try apply this following css code in this file and see how it goes?
JoomlaFolder/templates/gk_magazine/css/template.css
div#discuss-wrapper .discuss-searchbar .btn-ask {
display: none !important;
}

Remember clear the cache before you access your webpage.
By the way, I can't access in your Joomla backend.

2.Ask a question button under search tab is redirecting it to /index.php/component/users/?view=registration i.e user registration instead of user login page.

Actually this one is default behaviour in Easydiscuss, if you would like to change it, you can go to this file ->
JoomlaFolder\components\com_easydiscuss\themes\simplistic\searchbar.php

//LINE 59
<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>


·
Thursday, 20 August 2015 18:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,

By doing step against point 1, now it is not displaying the ask button ever after setting the tab as yes in toolbar,

Point 2 is working .

Thanks

Arun
·
Thursday, 20 August 2015 19:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Arun,

I am sorry that delay of this reply,

Because when you applied that css in your current template, it will hide it.

Actually I have a little bit lost here, may i know what situation you need to disable the ask button from the toolbar?

The reason why when you turn off the `ask button` from backend settings, it still appear is because system still will check for the backend > Easydiscuss > acl > user group > ask question , if the acl `ask question` is disabled, so under this user group user do not have the permission to ask question in your site while the ask button will not appear on your site.
·
Friday, 21 August 2015 09:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,

I believe my issue is resolved, Thanks a lot.

Regards,

Arun
·
Saturday, 22 August 2015 01:49
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome, glad to heard your issue resolved.
·
Saturday, 22 August 2015 12:40
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post