Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Feedback Messages v1.3 admin panel buton
Modül Link : https://dle.net.tr/dle-modul/16-feedback-messages.html
Feedback Messages v1.3 modülü için ufak bir kod ile iletişim butonu yerini görünür bir yere aldım.
engine/skins/default.skin.php içerisinde bul:
474 ve 475 satırında olmalı
<span class="triangle-button blue"><i class="icon-pencil"></i></span>
</div>
Altına eklenecek kod:
<div class="action-nav-normal action-nav-line" style="display: inline-block;">
<div class="action-nav-button nav-small" style="width:180px;">
<a id="clrbtn" class="tip" title="İletişim Mesajları">
<i class="icon-envelope"></i>
<span><button onclick="window.location='last-comment.php?mod=feedbacks';"class="btn btn-black"></i> <script type="text/javascript">
// <![CDATA[
var speed=100; // Hızlı renk değişimi, 1 SANİYE = 1000
var raincol=new Array("#ff0000", "#ff9900", "#ffff00", "#99ff00", "#00ff00", "#00ff99", "#00ffff", "#0099ff", "#0000ff", "#9900ff", "#ff00ff", "#ff0099"); // change the colours if you want to
var alink="https://dle.net.tr/";
var Feedback, Feedbacktxt, raincnt=0;
window.onload=function() { if (document.getElementById) {
var i, raini;
Feedback=document.getElementById("Feedback");
Feedbacktxt=Feedback.firstChild.nodeValue;
while (Feedback.childNodes.length) Feedback.removeChild(Feedback.childNodes[0]);
for (i=0; i<Feedbacktxt.length; i++) {
raini=document.createElement("span");
raini.setAttribute("id", "rain"+i);
raini.appendChild(document.createTextNode(Feedbacktxt.charAt(i)));
if (alink) {
raini.style.cursor="pointer";
raini.onclick=function() { /*malicious javascript is not allowed.*/alink; }
}
Feedback.appendChild(raini);
}
Feedback=setInterval ("raining()", speed);
}}
function raining() {
for (var i=0; i<Feedbacktxt.length; i++) document.getElementById("rain"+i).style.color=raincol[(i+raincnt)%raincol.length];
raincnt++;
}
// ]]>
</script><span id="Feedback">İLETİŞİM MESAJLARI</span></button></span>
</a>
<span class="triangle-button blue"><i class="icon-envelope"></i></span>
</div>
Ekran görüntüsü:
http://i.hizliresim.com/gqP935.gif
http://i.hizliresim.com/9QYDJ5.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.