SMFPT - Suporte e Manutenção de Fórum em Português

SMF 1.1.x (Móbulos Manual) => SMF 1.1.x Módulos Manual => Tópico iniciado por: candidosa2 em 04 de Janeiro de 2009, 16:31

Título: Wikipedia pesquisa
Enviado por: candidosa2 em 04 de Janeiro de 2009, 16:31
(http://i276.photobucket.com/albums/kk39/apllic/sshot-2-27.png)

index.template.php

Pesdquisar
Código: [Seleccione]
// Show the menu here, according to the menu sub template.
template_menu();

Adicionar
Código: [Seleccione]
//Wikipedia pesquisar candidosa2
echo'
<div class="windowbg" style="width:30%; margin-top:5px;"><div class="titlebg" width="100%">Wikipedia Search Box</div>
<form action="http://en.wikipedia.org/wiki/Special:Search" id="searchform">

<input type="text" id="searchInput" name="search" title="Search Wikipedia [f]" accesskey="f" value="Wiki search"
onfocus="if(this.beenchanged!=true){ this.value = \'\'}"
onblur="if(this.beenchanged!=true) { this.value=\'Wiki search\' }"
onchange="this.beenchanged = true;" />


<input type="submit" name="go" class="searchButton" id="searchGoButton" value="Go" title="Go to a page with this exact name if one exists" />&nbsp;
<input type="submit" name="fulltext" class="searchButton" id="mw-searchButton" value="Search" title="Search Wikipedia for this text" />
</form></div>

';


ou

Boardindex.template.php

Pesquisar
Código: [Seleccione]
/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
and boards. (see below.) */

Adicionar
Código: [Seleccione]
//Wikipedia pesquisar Candidosa2
echo'
<div class="windowbg" style="width:30%; margin-top:5px;"><div class="titlebg" width="100%">Wikipedia Pesquisar</div>
<form action="http://en.wikipedia.org/wiki/Special:Search" id="searchform">

<input type="text" id="searchInput" name="search" title="Pesquisa Wikipedia [f]" accesskey="f" value="Wiki pesquisa"
onfocus="if(this.beenchanged!=true){ this.value = \'\'}"
onblur="if(this.beenchanged!=true) { this.value=\'Wiki pesquisar\' }"
onchange="this.beenchanged = true;" />


<input type="submit" name="go" class="searchButton" id="searchGoButton" value="Go" title="Go to a page with this exact name if one exists" />&nbsp;
<input type="submit" name="fulltext" class="searchButton" id="mw-searchButton" value="Search" title="Pesquisar Wikipedia com este texto" />
</form></div>

';