Integration Gsearch Module into WIO Forum Extension.

Integration Gsearch Module into WIO Forum Extension.

Integration Gsearch Module into WIO Forum Extension(also could be done for Advanced Version);

Buy Our Extension!

1. Create Custom Search at google.com/cse, as described in post “Google Custom search Engine Integration Into Magento store.“,
Write in field “Sites to search” your url like http://www.yoursite.com/forum/ ;

2.Find file -> app/design/frontend/default/default/templates/forum/top/search.phtml

Put there code:

<?php $action_url = Mage::getUrl(‘gsearch’); ?>
<form action=”<?php echo $action_url; ?>” method=”get”>
<table id=”table_search_forum” >
<tr>
<td>
<input id=”search_forum_input” type=”text” onblur=”restoreDefaultSF(this ,this.value, ‘<?php echo $this->getDefaultValue() ?>’)” onfocus=”eraseSearchBlockSF(this ,this.value, ‘<?php echo $this->getDefaultValue() ?>’)” name=”q” value=”<?php echo $this->getSearchValue(); ?>” />
</td>
<td>
<button type=”submit” title=”<?php echo $this->getSubmitButtonTitle(); ?>” >
<nobr><?php echo $this->getSubmitButtonTitle(); ?></nobr>
</button>
</td>
<?php if( $this->haveSearchValue() ):?>
<td>
<button type=”button” title=”<?php echo $this->__(‘Search Forum’); ?>” onclick=”document.location.href=’<?php echo $this->getResetSearchUrl() ?>’”>
<nobr><?php echo $this->__(‘Reset Search’); ?></nobr>
</button>
</td>
<?php endif;?>
</tr>
</table>
</form>

Visit Our Demo

Tags: , ,

Tuesday, July 12th, 2011 Magento Development

Leave a Reply