Billyboule
13/02/2010, 18h51
Cette modification vous permet de marquer votre site via un bouton dans la navbar.
Remerciements et support
Ce Hack a été traduit en français pour vBulletin-Ressources avec l'autorisation explicite de son auteur. / This Hack was translated into French for vBulletin-Ressources with the explicit authorization of its author.
vBulletin-Ressources et son équipe offrira du support vis à vis des hacks traduits, bien sûr, dans la mesure du possible de chacun, autant en terme de temps que de connaissances/ vBulletin-Ressources and its team will offer support for the translated hacks, of course, as far as possible for everyone, as much in term of time that knowledge.
vBulletin-Ressources remercie l'auteur du hack pour avoir fourni son autorisation. / vBulletin-Ressources thanks the author for the hack to have provided its authorization.
Conception
Auteur du Hack / Author Of Hack :TimberFloorAu (http://www.vbulletin.org/forum/member.php?u=252664)
Source / Link of Thread:Bookmark this site (http://www.vbulletin.org/forum/showthread.php?t=232868)
Version du hack / Hack version : 1.00
Version vBulletin Requise / Version vBulletin Required : vB 4.x
Testé / Tested: oui sur 4.0
Traducteur / Translator: Billyboule
Copyright © 2006-2010 vBulletin-Ressources.com - Tous droits réservés Uniquement pour nos traductions / Copyright © 2006-2010 vBulletin-Ressources.com - All Rights Reserved Only for ours translations
Installation
Dans le template headinclude, ajoutez ce code tout en bas :
<script type="text/javascript">
/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click();
}
else if(document.all)// ie
window.external.AddFavorite(url, title);
}
</script>
Dans le template navbar, cherchez
</ul>
<vb:if condition="$vboptions['enablesearches']">
<div id="globalsearch" class="globalsearch">
et ajoutez au-dessus :
<li><a class="navtab" href="javascript:bookmarksite('British Expats', 'http://www.yobromofo.com')">Marquer ce site</a></li>
.
Remplacez British Expats par le nom de votre site.
Remplacez http://www.yobromofo.com par votre domaine.
Remplacez "Marquer ce site" par le texte que vous désirez si vous trouvez que Marquer ce site n'est pas adhéquat pour vous.
Démonstration/Captures
Remerciements et support
Ce Hack a été traduit en français pour vBulletin-Ressources avec l'autorisation explicite de son auteur. / This Hack was translated into French for vBulletin-Ressources with the explicit authorization of its author.
vBulletin-Ressources et son équipe offrira du support vis à vis des hacks traduits, bien sûr, dans la mesure du possible de chacun, autant en terme de temps que de connaissances/ vBulletin-Ressources and its team will offer support for the translated hacks, of course, as far as possible for everyone, as much in term of time that knowledge.
vBulletin-Ressources remercie l'auteur du hack pour avoir fourni son autorisation. / vBulletin-Ressources thanks the author for the hack to have provided its authorization.
Conception
Auteur du Hack / Author Of Hack :TimberFloorAu (http://www.vbulletin.org/forum/member.php?u=252664)
Source / Link of Thread:Bookmark this site (http://www.vbulletin.org/forum/showthread.php?t=232868)
Version du hack / Hack version : 1.00
Version vBulletin Requise / Version vBulletin Required : vB 4.x
Testé / Tested: oui sur 4.0
Traducteur / Translator: Billyboule
Copyright © 2006-2010 vBulletin-Ressources.com - Tous droits réservés Uniquement pour nos traductions / Copyright © 2006-2010 vBulletin-Ressources.com - All Rights Reserved Only for ours translations
Installation
Dans le template headinclude, ajoutez ce code tout en bas :
<script type="text/javascript">
/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click();
}
else if(document.all)// ie
window.external.AddFavorite(url, title);
}
</script>
Dans le template navbar, cherchez
</ul>
<vb:if condition="$vboptions['enablesearches']">
<div id="globalsearch" class="globalsearch">
et ajoutez au-dessus :
<li><a class="navtab" href="javascript:bookmarksite('British Expats', 'http://www.yobromofo.com')">Marquer ce site</a></li>
.
Remplacez British Expats par le nom de votre site.
Remplacez http://www.yobromofo.com par votre domaine.
Remplacez "Marquer ce site" par le texte que vous désirez si vous trouvez que Marquer ce site n'est pas adhéquat pour vous.
Démonstration/Captures