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);
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>
<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>
Leave a Reply
Recent Posts
- Update Simple Forum to Advanced
- Slide Image Gallery
- ExtJs themes – 4
- Google Custom search Engine Integration Into “AW_Blog community edition”
- Integration Gsearch Module into WIO Forum Extension.
- Google Custom search Engine Integration Into Magento store.
- Magento Google Custom Search Engine
- Full version of the Magento Forum
- Simple Forum Module Update 2
- Google Map Store Locations Update


