By GM on Wednesday, 19 October 2016
Posted in Technical Issues
Replies 1
Likes 0
Views 524
Votes 0
Hello,

In file
...\components\com_easydiscuss\themes\wireframe\toolbar\default.php

there is a code for enabling search


<div class="ed-navbar__search">

<form class="ed-navbar__search-form" name="discuss-toolbar-search" data-search-toolbar-form method="post" action="<?php echo JRoute::_('index.php'); ?>">
<input type="text" placeholder="<?php echo JText::_('COM_EASYDISCUSS_SEARCH_DEFAULT');?>" autocomplete="off" class="ed-navbar__search-input" data-search-input name="query" value="<?php echo ED::string()->escape($query); ?>">
<input type="hidden" name="option" value="com_easydiscuss" />
<input type="hidden" name="controller" value="search" />
<input type="hidden" name="task" value="query" />
<input type="hidden" name="Itemid" value="<?php echo DiscussRouter::getItemId('search'); ?>" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>

</div>


Can the code can be replaced with Google custom search.
I mean - using custom search instead of above - can it impact discuss component functionlity in any way

Thanks
Yes, I believe that should be possible to achieve this, perhaps you can take a look of following reference link, it should help much you here.

https://support.google.com/customsearch/answer/2630963?hl=en
https://cse.google.com/cse/
·
Wednesday, 19 October 2016 13:55
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post