• Welcome to Simple Machines Community Forum. Please login or sign up.

Google Custom Search za SMF 2.0!

Started by SimpleGost, December 25, 2011, 10:29:02 AM

Previous topic - Next topic

SimpleGost

Otvorite index.template i nađite ovo!

<div id="searcharea">
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
  <input class="inputbox" type="text" name="search" value="', $txt['search'], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\'', $txt['search'], '...\';" /> ';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
  elseif (!empty($context['current_board']))
  echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
  echo '
  </form>
</div>';


Zamenite sa:

<div id="searcharea">
Vas Google Custo Search Kod
</div>';


To ce zameniti fast search box sa google custom search :)
Primer:



Izvor: InternetFazoni.com

Advertisement: