By DeeEmm on Monday, 27 April 2015
Posted in Technical Issues
Replies 7
Likes 0
Views 784
Votes 0
Hi.

I have disabled the 'Show Advanced Search Link' from showing in the EasySocial Search module but can still see the 'Try Advanced Search' showing in the dynamic results. (see attached image).

Additionally there is also an 'Advanced Search' link at the top of the search results page, how do I disable this?

DM
Hello DeeEmm,

I am sorry for the delay of this reply.

Can you try to download the attachments below and place both of them inside your /components/com_easysocial/themes/wireframe/search folder? After that, go to your backend > easysocial > themes > your default themes > toolbar > show advanced search to "No". What I did is I add the condition where all the advanced search link will be hide under one single setting that I mentioned above. Except for the easysocial search modules where it has it own setting from the backend.

Hope these can help
·
Wednesday, 29 April 2015 11:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi DeeEmm

The default behavior, if Show Advanced Search Link is set to yes,then the advance search link will appear under the search bar. If it is set to no then the advance search would not appear. However in the show all result page, the advanced search link will always show regardless of the settings from the backend. To remove it, go to

/components/com_easysocial/themes/wireframe/search/default.content.php and remove the code from line 31 to line 36


<div class="row">
<div class="col-md-12">
<div class="pull-right mr-10 fd-small">
<a href="<?php echo FRoute::search( array( 'layout' => 'advanced' ) ); ?>"><?php echo JText::_( 'COM_EASYSOCIAL_ADVANCED_SEARCH_LINK' ); ?></a>
</div>
</div>


Best regards
Chris
·
Monday, 27 April 2015 19:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Christopher, I've added a template override to remove the link on the result page.

The main issue is that the 'Try Advanced Search' displays at the bottom of the Modules auto-suggest modal window even though 'Show Advanced Search' is set to off in the module settings. I understand that the setting removes the link from below the search box but I would have expected it to also remove the link from the modal auto-suggest window - eg it should remove ALL instances of 'Advanced Search' from the module.

Also. I know that this has already been discussed elsewhere; the expression 'Advanced Search' is a misnomer, It is a tailored search that only relates to profile searches. Great for dating sites, useless for anything else, hence the reason that I want to remove it.

How do you view this? do you consider it an oversight / bug or do you consider that it is expected behavior? It would be good to get the module updated so that ALL instances of 'Advanced Search' are hidden. Don't really want to hack core files, would rather that this change is included in ES by default. Other than this I will create a clone of the module and hack that instead. At least this way there is no chance of the hack getting overwritten.

DM
·
Monday, 27 April 2015 20:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi DeeEmm,

The other option is you can go to COM_EASYSOCIAL_ADVANCED_SEARCH_LINK and search line 2628 and 2629 and amend the followings like below



COM_EASYSOCIAL_ADVANCED_SEARCH_TRY_ADVANCED_SEARCH=""
COM_EASYSOCIAL_ADVANCED_SEARCH_LINK=""



Best regards
Chris
·
Tuesday, 28 April 2015 12:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry Christopher, your post does not make sense. I assume that you meant to post a filepath.

However... I can see that it would be easier just to add a language override and replace those expressions with blanks. Not the most elegant of solutions, but not one that would break on an upgrade.

IMHO it would be better for SI to modify the module to hide all instances or add another option to hide the link in the autosuggest.

Just my 02c

DM
·
Wednesday, 29 April 2015 06:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ezrul.

That's great! Works perfectly!

Many thanks.

DM
·
Wednesday, 29 April 2015 21:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello DeeEmm,

You are most welcome.
·
Thursday, 30 April 2015 10:24
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post