|
|
themalin
 Offline
|
| Membre |
Joined: 19 Apr 2006
Posts: 30,853
Point(s): 70,170 Moyenne: 2.27
|
|
Posted: Mon 16 Feb 2009 - 12:06   Post subject: [tuto]barre spécial de recherche |
|
|
Informations
| Informations sur le tutoriel |
|---|
| Nom | Mettre une barre spécial de recherche en haut du forum qui suit le forum | | Auteur | themalin (MP) | | Version | 1.0 | | Description | Bonjour Si vous avez envie de mettre une barre de recherche google + recherche forum | | Défaut(s) | - la recherche ne marchera que sur les parties visible pour tous sur le forum
- il y a un léger bug quand on passe sur les pubs
| | Difficulté | | | Exemple | | | Templates à modifier | - un seul, Overall header tpl
| | Testé sur | - Navigateurs
- Firefox 2.0 et +, Ie 6.0 et +
- Thèmes Xooit
| | A utiliser avec | | | A ne pas utiliser avec | - peut etre utilisé avec tout
| | Notes | |
Attention : pensez toujours à faire les modifications d'abord en thème de test pour ne pas vous tromper sur le thème normal
Faites Panneau admin thème modifier les templates overall header
tout en haut mettez ça :
- Code: Sélectionner - Agrandir
<div align="right" style="margin-right: 100px; position: right;"> <a href="#empty" onclick="showSpoiler(this);" style="position: fixed;"><span class="gensmall"><font color="red"><font size="2"><b>Recherche Globale</b></font></font></span></a> <div class="inner" style="display:none;"><br> <table align="center" style="position: fixed;" class="forumline"> <tr><td class="Catleft" width="400" align="center"><b>Recherche google</b></td><td class="Catleft" width="400" align="center"><b>Recherche sur le forum</b></td></tr> <tr> <td height="80" style="background-color: #FFFFFF;" width="400"><span class="gensmall">
<b><a href="http://www.google.fr/webhp?hl=fr&tab=iw" onclick="gbar.qs(this)" class="gb1">Web</a> | <a href="http://images.google.fr/imghp?hl=fr&tab=wi" target="_blank">Images</a> | <a href="http://maps.google.fr/maps?hl=fr&tab=wl" target="_blank">Maps</a> | <a href="http://news.google.fr/nwshp?hl=fr&tab=wn" target="_blank">Actualités</a> | <a href="http://video.google.fr/?hl=fr&tab=wv" target="_blank">Vidéo</a> | <a href="http://mail.google.com/mail/?hl=fr&tab=wm" class=gb1>Gmail</a> | <a href="http://www.google.fr/intl/fr/options/" target="_blank"><u>plus</u> </a> | <a href="http://www.google.fr/intl/fr/about.html" target="_blank">Outils Google</a><br> <a href="http://news.google.com/news?ned=us&topic=h&output=rss" target="_blank"><img src="http://tbn1.google.com/images?q=tbn:NeLNh5pVVgo1OM:http://www.mutualite.fr/design/fwm_front/images/rssicon.png" width="20" height="20" border="0">Voir les fil rss google</a> <a href="https://addons.mozilla.org/fr/firefox/" target="_blank"><img src="http://www.google.fr/images/firefox/spraycan_customize.png" border="0">Booster votre firefox</a> </b></span></td> <td width="400" style="background-color: #FFFFFF;" align="center"> <form id="exalead_search_form" style="font:0.8em arial" action="http://www.exalead.fr/search/" method="get" target="_blank">           <input id="q" style="width:140px" type="text" name="q" onfocus="this.style.background='white'" />           <input style="position:relative;top:4px;" type="image" src="http://www.xooit.com/img/xooit-80x15.png" alt="Rechercher" /><br />           <label for="exalead_web"><input id="exalead_web" type="radio" name="site" value="http://xooit.xooit.com/index.php" checked="checked" />Sur le forum de support</label>           <label for="exalead_site"><input id="exalead_site" type="radio" name="site" value="http://themalin.xooit.fr" />Sur ce forum</label>           <script type="text/javascript" xml:space="preserve"><!-- var e = window.document.forms["exalead_search_form"].elements["q"];if(e.value.length == 0) e.style.background = "white url('http://www.exalead.fr/apogee/logo-small.gif') no-repeat 35px 2px;";//--></script>         </form></td> </tr> <tr> <td height="15" class="row1" align="left"><font size="1"><a href="http://xooit.xooit.com/t44617-tuto-barre-special-de-recherche.htm" target="_blank"><u>By themalin</u></a></font></td> </tr> </table></div></div>
Code avec une barre de recherche google classique en plus
- Code: Sélectionner - Agrandir
<div align="right" style="margin-right: 100px; position: right;"> <a href="#empty" onclick="showSpoiler(this);" style="position: fixed;"><span class="gensmall"><font color="red"><font size="2"><b>Recherche Globale</b></font></font></span></a> <div class="inner" style="display:none;"><br> <table align="center" style="position: fixed;" class="forumline"> <tr><td class="Catleft" width="400" align="center"><b>Recherche google</b></td><td class="Catleft" width="400" align="center"><b>Recherche sur le forum</b></td></tr> <tr> <td height="80" style="background-color: #FFFFFF;" width="400"><span class="gensmall">
<b><a href="http://www.google.fr/webhp?hl=fr&tab=iw" onclick="gbar.qs(this)" class="gb1">Web</a> | <a href="http://images.google.fr/imghp?hl=fr&tab=wi" target="_blank">Images</a> | <a href="http://maps.google.fr/maps?hl=fr&tab=wl" target="_blank">Maps</a> | <a href="http://news.google.fr/nwshp?hl=fr&tab=wn" target="_blank">Actualités</a> | <a href="http://video.google.fr/?hl=fr&tab=wv" target="_blank">Vidéo</a> | <a href="http://mail.google.com/mail/?hl=fr&tab=wm" class=gb1>Gmail</a> | <a href="http://www.google.fr/intl/fr/options/" target="_blank"><u>plus</u> </a> | <a href="http://www.google.fr/intl/fr/about.html" target="_blank">Outils Google</a><br> <a href="http://news.google.com/news?ned=us&topic=h&output=rss" target="_blank"><img src="http://tbn1.google.com/images?q=tbn:NeLNh5pVVgo1OM:http://www.mutualite.fr/design/fwm_front/images/rssicon.png" width="20" height="20" border="0">Voir les fil rss google</a> <a href="https://addons.mozilla.org/fr/firefox/" target="_blank"><img src="http://www.google.fr/images/firefox/spraycan_customize.png" border="0">Booster votre firefox</a></b></span></td> <td width="400" style="background-color: #FFFFFF;" align="center"> <form id="exalead_search_form" style="font:0.8em arial" action="http://www.google.fr/search" method="get" target="_blank"> <input id="q" style="width:140px" type="text" name="q" onfocus="this.style.background='white'" /> <input style="position:relative;top:4px;" type="image" src="http://www.xooit.com/img/xooit-80x15.png" alt="Rechercher" /><br /> <label for="exalead_web"><input id="exalead_web" type="radio" name="site" value="http://xooit.xooit.com/index.php" checked="checked" />Sur le forum de support</label> <label for="exalead_site"><input id="exalead_site" type="radio" name="site" value="http://themalin.xooit.fr" />Sur ce forum</label> <script type="text/javascript" xml:space="preserve"><!-- var e = window.document.forms["exalead_search_form"].elements["q"];if(e.value.length == 0) e.style.background = "white url('http://www.exalead.fr/apogee/logo-small.gif') no-repeat 35px 2px;";//--></script> </form></td> </tr> <tr> <td style="background-color: #FFFFFF;" colspan="2" > <form action="http://www.google.fr/search" method="get" target="_blank"> <p> <i>Barre de recherche classique :</i> </p> <input value="" size="10" name="q" type="text" width="400"><input value="googleabout" name="output" type="hidden"><input value="" name="sitesearch" type="hidden"><input value="fr" name="hl" type="hidden"><input value="Rechercher" name="submit" type="submit"> </form> </td> <tr> <td height="15" style="background-color: #FFFFFF;" align="left" colspan="2"><font size="1"><a href="http://xooit.xooit.com/t44617-tuto-barre-special-de-recherche.htm" target="_blank"><u>By themalin</u></a></font></td> </tr> </table></div></div>
ensuite cherchez
- Code: Sélectionner - Agrandir
<head>
et ajoutez après
- Code: Sélectionner - Agrandir
<script type="text/javascript"> function showSpoiler(obj)     {     var inner = obj.parentNode.getElementsByTagName("div")[0];     if (inner.style.display == "none")         inner.style.display = "";     else         inner.style.display = "none";     }
    </script>Â
Dans le premier code ici
- Code: Sélectionner - Agrandir
  <label for="exalead_site"><input id="exalead_site" type="radio" name="site" value="http://themalin.xooit.fr" />Sur ce forum</label>
modifier l'adresse du forum par la votre
ici
- Code: Sélectionner - Agrandir
<a href="#empty" onclick="showSpoiler(this);" style="position: fixed;"><span class="gensmall"><font color="red"><font size="2"><b>Recherche Globale</b></font></font></span></a>
vous pouvez changer le texte par une image en mettant ça par exemple
- Code: Sélectionner - Agrandir
<img src="lien de votre image" border="0">
Pensez à faire indexer votre forum ici
http://www.exalead.fr/search/submitYourSitePage
pour apparaitre dans les recherches
 _______________________
Last edited by themalin on Mon 16 Feb 2009 - 13:58; edited 4 times in total
|
|
|
|
 |
|
|
|
Yskander
 Offline
|
| Équipe du forum |
Joined: 26 Jan 2008
Posts: 18,995
Point(s): 27,786 Moyenne: 1.46
|
|
Posted: Mon 16 Feb 2009 - 12:24   Post subject: [tuto]barre spécial de recherche |
|
|
Ca peut faire un petit accessoire pratique (Ajouté à la liste) _______________________ Yskander - Administrateur du forum de support Xooit.com
Support Technique - Nous ne fournissons aucune assistance par MP ou Mail.
La lecture du règlement est obligatoire
Mon forum In Itinere Publicité gratuite sur AnnuPlus Mes tutos sur Xooit.com
|
|
|
|
 |
|
|
|
Deimos
|
Posted: Mon 16 Feb 2009 - 14:29   Post subject: [tuto]barre spécial de recherche |
|
|
J'ai regardé sur l'exemple que tu as mis et quand on fait la recherche sur le forum, c'est comme si on faisait une recherche sur google tout simplement _______________________ http://kingdomultimate.xooit.com/index.php
|
|
|
|
 |
|
|
|
themalin
 Offline
|
| Membre |
Joined: 19 Apr 2006
Posts: 30,853
Point(s): 70,170 Moyenne: 2.27
|
|
Posted: Mon 16 Feb 2009 - 14:32   Post subject: [tuto]barre spécial de recherche |
|
|
j'ai changé et rajouté une barre en plus
donc regardes bien laquelle tu prends sinon les recherches sur forum sont spécifiques au forum et les réponses ne seront que des réponses issue du forum et pas du web _______________________
|
|
|
|
 |
|
|
|
Deimos
|
Posted: Mon 16 Feb 2009 - 14:40   Post subject: [tuto]barre spécial de recherche |
|
|
|
|
|
|
 |
|
|
|
themalin
 Offline
|
| Membre |
Joined: 19 Apr 2006
Posts: 30,853
Point(s): 70,170 Moyenne: 2.27
|
|
Posted: Mon 16 Feb 2009 - 14:42   Post subject: [tuto]barre spécial de recherche |
|
|
sur le miens c'est normal je ne l'ai pas référencé sur le site pour ça
donc tu ne peux rien avoir pour les recherches il faut penser à indexer ton forum avec le lien donné pour que ça marche _______________________
|
|
|
|
 |
|
|
|
Deimos
|
Posted: Mon 16 Feb 2009 - 14:43   Post subject: [tuto]barre spécial de recherche |
|
|
|
|
|
|
 |
|
|
|
armag-999-m41
Offline
|
| Membre |
Joined: 30 Sep 2008
Posts: 40
Point(s): 36 Moyenne: 0.90
|
|
Posted: Thu 12 Mar 2009 - 17:49   Post subject: [tuto]barre spécial de recherche |
|
|
Je fait comment pour changé la couleur du lien ''Recherche Globale'' qui est en rouge chez moi Merci beaucoup.
<span class="gensmall"><font color="red"><font size="2">><center>Recherche Globale</center> </font></font></span>
<table align="center" style="position: fixed;" class="forumline"> <tr><td class="Catleft" width="400" align="center">Recherche google</td><td class="Catleft" width="400" align="center">Recherche sur le forum</td></tr> <tr> <td height="80" style="background-color: #FFFFFF;" width="400"><span class="gensmall">
Web | Images | Maps | Actualités | Vidéo | Gmail | plus | Outils Google
Voir les fil rss google Booster votre firefox</span></td> <td width="400" style="background-color: #FFFFFF;" align="center"> <form id="exalead_search_form" style="font:0.8em arial" action="http://www.google.fr/search" method="get" target="_blank"> <input id="q" style="width:140px" type="text" name="q" onfocus="this.style.background='white'" /> <input style="position:relative;top:4px;" type="image" src="http://www.xooit.com/img/xooit-80x15.png" alt="Rechercher" />
<label for="exalead_web"><input id="exalead_web" type="radio" name="site" value="http://xooit.xooit.com/index.php" checked="checked"/>Sur le forum de support</label> <label for="exalead_site"><input id="exalead_site" type="radio" name="site" value="http://themalin.xooit.fr" />Sur ce forum"</label> <script type="text/javascript" xml:space="preserve"><!-- var e = window.document.forms["exalead_search_form"].elements["q"];if(e.value.length == 0) e.style.background = "white url('http://www.exalead.fr/apogee/logo-small.gif') no-repeat 35px 2px;";//--></script> </form></td> </tr> <tr> <td style="background-color: #FFFFFF;" colspan="2" > <form action="http://www.google.fr/search" method="get" target="_blank">
Barre de recherche classique :
<input value="" size="10" name="q" type="text" width="400"><input value="googleabout" name="output" type="hidden"><input value="" name="sitesearch" type="hidden"><input value="fr" name="hl" type="hidden"><input value="Rechercher" name="submit" type="submit"> </form> </td> <tr> <td height="15" style="background-color: #FFFFFF;" align="left" colspan="2"><font size="1"> </font></td> </tr> </table>
<?xml version="1.0" encoding="{S_CONTENT_ENCODING}"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}"> <head><script type="text/javascript"> function showSpoiler(obj) { var inner = obj.parentNode.getElementsByTagName("div")[0]; if (inner.style.display == "none") inner.style.display = ""; else inner.style.display = "none"; }
</script>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <meta http-equiv="Content-Style-Type" content="text/css" /> {META} {NAV_LINKS} <title>{SITENAME} :: {PAGE_TITLE}</title> <link rel="stylesheet" href="http://img10.xooimage.com/files/b/7/b/starpink-c2b1fd.css" type="text/css" /> <!-- BEGIN switch_enable_pm_popup --> <script type="text/javascript"> <!-- if ( {PRIVATE_MESSAGE_NEW_FLAG} ) { window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> </script> <!-- END switch_enable_pm_popup --> </head> <body> <a name="top" id="top">[/url] <!-- <table class="bodyline" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td> <table class="topbkg" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td> </td> <td align="center" width="100%"> </td> </tr> </table> -->
<table class="bodyline" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td> <table class="topbkg" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td align="center">
<center>
 <MAP NAME="phpBB2_logo"> <AREA SHAPE=RECT COORDS="724,27,911,64" HREF="{U_LOGIN_LOGOUT}" ALT="" OnMouseOut="window.status=''; return true" OnMouseOver="window.status=''; return true"> <AREA SHAPE=RECT COORDS="522,30,679,66" HREF="profile.php?mode=register" ALT="" OnMouseOut="window.status=''; return true" OnMouseOver="window.status=''; return true"> <AREA SHAPE=RECT COORDS="454,66,559,107" HREF="profile.php?mode=editprofile" ALT="" OnMouseOut="window.status=''; return true" OnMouseOver="window.status=''; return true"> <AREA SHAPE=RECT COORDS="581,66,729,106" HREF="memberlist.php" ALT="" OnMouseOut="window.status=''; return true" OnMouseOver="window.status=''; return true"> <AREA SHAPE=RECT COORDS="743,66,941,105" HREF="privmsg.php?folder=inbox" ALT="" OnMouseOut="window.status=''; return true" OnMouseOver="window.status=''; return true"> <AREA SHAPE=RECT COORDS="392,109,524,145" HREF="groupcp.php" ALT="" OnMouseOut="window.status=''; return true" OnMouseOver="window.status=''; return true"> <AREA SHAPE=RECT COORDS="543,108,652,146" HREF="faq.php" ALT="" OnMouseOut="window.status=''; return true" OnMouseOver="window.status=''; return true"> <AREA SHAPE=RECT COORDS="691,109,829,144" HREF="search.php" ALT="" OnMouseOut="window.status=''; return true" OnMouseOver="window.status=''; return true"> <AREA SHAPE=RECT COORDS="17,13,348,101" HREF="index.php" ALT="" OnMouseOut="window.status=''; return true" OnMouseOver="window.status=''; return true"> </MAP> </center>
</td>
</tr> </table>
<!-- <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td align="center" class="topnav"> {L_FAQ} • {L_SEARCH} • {L_MEMBERLIST} • {L_USERGROUPS} <!-- BEGIN switch_user_logged_out --> • {L_REGISTER} <!-- END switch_user_logged_out --> • {L_PROFILE} • {PRIVATE_MESSAGE_INFO} • {L_LOGIN_LOGOUT}</td> </tr> </table> -->
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>
|
|
|
|
 |
|
|
|
themalin
 Offline
|
| Membre |
Joined: 19 Apr 2006
Posts: 30,853
Point(s): 70,170 Moyenne: 2.27
|
|
Posted: Fri 13 Mar 2009 - 08:51   Post subject: [tuto]barre spécial de recherche |
|
|
|
|
|
|
 |
|
|
|
Master Fenix117
 Offline
|
| Membre |
Joined: 18 Mar 2009
Posts: 290
Niveau: Point(s): 209 Moyenne: 0.72
|
|
Posted: Fri 8 May 2009 - 13:48   Post subject: [tuto]barre spécial de recherche |
|
|
Bonjour, comment en mettre plusieur ? _______________________ Me contacter : ICI Mon forum Mon site (Xbox360 UNIQUEMENT) Gamertag Xbox360 : oG Fenix117
|
|
|
|
 |
|
|
|
themalin
 Offline
|
| Membre |
Joined: 19 Apr 2006
Posts: 30,853
Point(s): 70,170 Moyenne: 2.27
|
|
Posted: Fri 8 May 2009 - 17:22   Post subject: [tuto]barre spécial de recherche |
|
|
bonjour
il suffit de mettre plusieurs fois les codes c'est tout
pour chaque code tu mettre un texte différent _______________________
|
|
|
|
 |
|
|
|
Minou64
 Offline
|
| Membre |
Joined: 12 Jun 2009
Posts: 218
Niveau: Point(s): 183 Moyenne: 0.84
|
|
|
|
|
 |
|
|
|
themalin
 Offline
|
| Membre |
Joined: 19 Apr 2006
Posts: 30,853
Point(s): 70,170 Moyenne: 2.27
|
|
|
|
|
 |
|
|
|
Minou64
 Offline
|
| Membre |
Joined: 12 Jun 2009
Posts: 218
Niveau: Point(s): 183 Moyenne: 0.84
|
|
|
|
|
 |
|
|
|
Offline
|
|
|
|
Posted: Thu 2 Jul 2009 - 17:53Â Â Â Post subject: Publicite Xooit |
|
|
|
|
|
|
 |
|
|
|
themalin
 Offline
|
| Membre |
Joined: 19 Apr 2006
Posts: 30,853
Point(s): 70,170 Moyenne: 2.27
|
|
|
|
|
 |
|
|
|