Allan
23/01/2010, 10h39
Le hack permet de créer une boite différente et plus voyante des notifications.
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 :TheWindows7Site (http://www.vbulletin.org/forum/member.php?u=343597)
Source / Link of Thread:Notifications Alert - Easier To See (http://www.vbulletin.org/forum/showthread.php?t=232032)
Version du hack / Hack version : 1.0
Version vBulletin Requise / Version vBulletin Required : vB 4.x
Testé / Tested: Oui
Traducteur / Translator: Allan
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 header, trouver:
<vb:if condition="$notifications_total">
<li class="popupmenu notifications" id="notifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}: <span class="notifications-number"><strong>{vb:raw notifications_total}</strong></span></a>
<ul class="popupbody popuphover">
{vb:raw notifications_menubits}
</ul>
</li>
<vb:else />
<li class="popupmenu nonotifications" id="nonotifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}</a>
<div class="popupbody popuphover">
<p>{vb:rawphrase no_new_messages}</p>
<p><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></p>
</div>
</li>
</vb:if>
Remplacer par:
<li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li>
Dans le template "headinclude", ajouter à la fin:
<!-- TheWindows7Site Notifications -->
<script type="text/javascript">
<!--
if ( document.all )
{
function blink_show()
{
blink_tags = document.all.tags('blink');
blink_count = blink_tags.length;
for ( i = 0; i < blink_count; i++ )
{
blink_tags.style.visibility = 'visible';
}
window.setTimeout( 'blink_hide()', 700 );
}
function blink_hide()
{
blink_tags = document.all.tags('blink');
blink_count = blink_tags.length;
for ( i = 0; i < blink_count; i++ )
{
blink_tags[i].style.visibility = 'hidden';
}
window.setTimeout( 'blink_show()', 250 );
}
window.onload = blink_show;
}
-->
</script>
<!-- / TheWindows7Site Notifications -->
Dans le template "[I]navbar", trouver:
<div class="body_wrapper">
Ajouter en dessous:
<!-- TheWindows7Site Notifications -->
<vb:if condition="$notifications_total">
<div style="margin: 5px 5px;"> <div style="padding-top:10px; padding-left: 5px; padding-right: 5px;"> <div style=" -moz-border-radius-bottomleft:5px; -moz-border-radius-bottomright:5px; -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px; background:#fff2f4 none repeat scroll 0 0; border:1px solid #be0000; margin:5px 10px 0; text-align:justify; ">
<div style="padding-top:3px; padding-bottom:3px;">
<table width="100%" border="0"> <tbody> <tr>
<td width="5%" align="center"><img alt="" src="./images/notification.png" width="40" height="40"/></td>
<td width="90%">
<b><u>{vb:rawphrase your_notifications}</u>: <span class="notifications-number"><blink>{vb:raw notifications_total}</span></b></blink>
<li><ul>{vb:raw notifications_menubits}</ul>
</li>
</td>
<td width="5%"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</vb:if>
<!-- / TheWindows7Site Notifications -->
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 :TheWindows7Site (http://www.vbulletin.org/forum/member.php?u=343597)
Source / Link of Thread:Notifications Alert - Easier To See (http://www.vbulletin.org/forum/showthread.php?t=232032)
Version du hack / Hack version : 1.0
Version vBulletin Requise / Version vBulletin Required : vB 4.x
Testé / Tested: Oui
Traducteur / Translator: Allan
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 header, trouver:
<vb:if condition="$notifications_total">
<li class="popupmenu notifications" id="notifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}: <span class="notifications-number"><strong>{vb:raw notifications_total}</strong></span></a>
<ul class="popupbody popuphover">
{vb:raw notifications_menubits}
</ul>
</li>
<vb:else />
<li class="popupmenu nonotifications" id="nonotifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}</a>
<div class="popupbody popuphover">
<p>{vb:rawphrase no_new_messages}</p>
<p><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></p>
</div>
</li>
</vb:if>
Remplacer par:
<li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li>
Dans le template "headinclude", ajouter à la fin:
<!-- TheWindows7Site Notifications -->
<script type="text/javascript">
<!--
if ( document.all )
{
function blink_show()
{
blink_tags = document.all.tags('blink');
blink_count = blink_tags.length;
for ( i = 0; i < blink_count; i++ )
{
blink_tags.style.visibility = 'visible';
}
window.setTimeout( 'blink_hide()', 700 );
}
function blink_hide()
{
blink_tags = document.all.tags('blink');
blink_count = blink_tags.length;
for ( i = 0; i < blink_count; i++ )
{
blink_tags[i].style.visibility = 'hidden';
}
window.setTimeout( 'blink_show()', 250 );
}
window.onload = blink_show;
}
-->
</script>
<!-- / TheWindows7Site Notifications -->
Dans le template "[I]navbar", trouver:
<div class="body_wrapper">
Ajouter en dessous:
<!-- TheWindows7Site Notifications -->
<vb:if condition="$notifications_total">
<div style="margin: 5px 5px;"> <div style="padding-top:10px; padding-left: 5px; padding-right: 5px;"> <div style=" -moz-border-radius-bottomleft:5px; -moz-border-radius-bottomright:5px; -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px; background:#fff2f4 none repeat scroll 0 0; border:1px solid #be0000; margin:5px 10px 0; text-align:justify; ">
<div style="padding-top:3px; padding-bottom:3px;">
<table width="100%" border="0"> <tbody> <tr>
<td width="5%" align="center"><img alt="" src="./images/notification.png" width="40" height="40"/></td>
<td width="90%">
<b><u>{vb:rawphrase your_notifications}</u>: <span class="notifications-number"><blink>{vb:raw notifications_total}</span></b></blink>
<li><ul>{vb:raw notifications_menubits}</ul>
</li>
</td>
<td width="5%"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</vb:if>
<!-- / TheWindows7Site Notifications -->