Advertisement:

Author Topic: Google Custom Search za SMF 2.0!  (Read 6706 times)

Offline Luka Paunović

  • Full Member
  • ***
  • Posts: 626
  • Gender: Male
  • :)
    • internetfazon on Facebook
    • @lukapaunovic on Twitter
    • Internet Fazoni
Google Custom Search za SMF 2.0!
« on: December 25, 2011, 10:29:02 AM »
Otvorite index.template i nađite ovo!

Code: [Select]
<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:

Code: [Select]
<div id="searcharea">
Vas Google Custo Search Kod
</div>';

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



Izvor: InternetFazoni.com


www.pegazhosting.com
█ Web Hosting | Reseller Hosting | Registracija Domena