Ставить только на один день в году, иначе матов от народа не оберешься.



А как прилепить к моду "Спасибо" , чтобы при нажатии на спасибо был салют?
Thanks for posts (AJAX ADD-ON) version 1.0.8)
styles/prosilver/template/viewtopic_body.html
найти код кнопки спасибок, типа такой должон быть - <!-- IF not postrow.S_GLOBAL_POST_THANKS and not postrow.S_POST_ANONYMOUS and postrow.S_FORUM_THANKS and S_USER_LOGGED_IN and not postrow.S_IS_OWN_POST and (not postrow.S_ALREADY_THANKED or postrow.S_REMOVE_THANKS) -->
<li id="thanks_button{postrow.POST_ID}" class="{postrow.THANKS_IMG}"><a href="{postrow.THANKS_LINK}" title="{postrow.THANK_ALT}{postrow.POST_AUTHOR}" onclick="ajax_thanks.thanks_post({postrow.POST_ID}, '{postrow.THANK_MODE}'); return false;"></a></li>
<!-- ENDIF -->
<!-- IF not postrow.S_GLOBAL_POST_THANKS and not postrow.S_POST_ANONYMOUS and postrow.S_FORUM_THANKS and S_USER_LOGGED_IN and not postrow.S_IS_OWN_POST and (not postrow.S_ALREADY_THANKED or postrow.S_REMOVE_THANKS) -->
<li id="thanks_button{postrow.POST_ID}" class="{postrow.THANKS_IMG}" <!-- IF S_SCL_ENABLED and S_SCL_UCP_ENABLED -->onclick="
var r=20+parseInt(Math.random()*16);
for(var i=r; i--;){
setTimeout(function(){
var radius = parseInt(Math.random()*45) + 5;
var particles = parseInt(Math.random()*100) + radius;
var circles = parseInt(Math.random()*7) + 1;
var type = parseInt(Math.random()*6) + 1;
createFirework(radius, particles, circles, type, null, null, null, null, Math.random()>0.5, true);},
(i+1)*(1+parseInt(Math.random()*1000))
);
}
return false"<!-- ENDIF -->><a href="{postrow.THANKS_LINK}" title="{postrow.THANK_ALT}{postrow.POST_AUTHOR}" onclick="ajax_thanks.thanks_post({postrow.POST_ID}, '{postrow.THANK_MODE}'); return false;"></a></li>
<!-- ENDIF -->
var r=20+parseInt(Math.random()*16);
for(var i=r; i--;){
setTimeout(function(){
var radius = parseInt(Math.random()*45) + 5;
var particles = parseInt(Math.random()*100) + radius;
var circles = parseInt(Math.random()*7) + 1;
var type = parseInt(Math.random()*6) + 1;
createFirework(radius, particles, circles, type, null, null, null, null, Math.random()>0.5, true);},
(i+1)*(1+parseInt(Math.random()*1000))
);
}
return false
function firework_start
, и добавляем вот такую картинку<script type="text/javascript">
function firework_start () {
var r=20+parseInt(Math.random()*16);
for(var i=r; i--;){
setTimeout(function(){
var radius = parseInt(Math.random()*45) + 5;
var particles = parseInt(Math.random()*100) + radius;
var circles = parseInt(Math.random()*7) + 1;
var type = parseInt(Math.random()*6) + 1;
createFirework(radius, particles, circles, type, null, null, null, null, Math.random()>0.5, true);},
(i+1)*(1+parseInt(Math.random()*1000))
);
}
return false;
}
</script>
overall_header.html
, к тому, что выше<body id="phpbb" class="section-{SCRIPT_NAME} и что-то там еще у кого как...
<script type="text/javascript">
function firework_start () {
var r=20+parseInt(Math.random()*16);
for(var i=r; i--;){
setTimeout(function(){
var radius = parseInt(Math.random()*45) + 5;
var particles = parseInt(Math.random()*100) + radius;
var circles = parseInt(Math.random()*7) + 1;
var type = parseInt(Math.random()*6) + 1;
createFirework(radius, particles, circles, type, null, null, null, null, Math.random()>0.5, true);},
(i+1)*(1+parseInt(Math.random()*1000))
);
}
return false;
}
</script>
<link href="{ROOT_PATH}style/fireworks.css" rel="stylesheet" type="text/css" />
<script src="{ROOT_PATH}script/soundmanager.js"></script>
<script src="{ROOT_PATH}script/fireworks.js"></script>
onclick="firework_start();"
styles/prosilver/template/viewtopic_body.html
в коде кнопок или нажатия на спасибки найти <li id="thanks_button{postrow.POST_ID}" class="{postrow.THANKS_IMG}" >
<li id="thanks_button{postrow.POST_ID}" class="{postrow.THANKS_IMG}" onclick="firework_start();" >
<li id="thanks_button{postrow.POST_ID}" class="{postrow.THANKS_IMG}" <!-- IF S_SCL_ENABLED and S_SCL_UCP_ENABLED -->onclick="firework_start();"<!-- ENDIF -->>
Вернуться в 450 модов движка форумов phpBB (до версии 3.0.14)