kropamk
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Ajax Chat – Add a Fast, Secure Chat Box] Change guest_delete ‘+ Math.floor(Math.random() * 10000)’ and disappear numbers 😉
Forum: Plugins
In reply to: [Simple Ajax Chat – Add a Fast, Secure Chat Box] Change guest_You just find the functions checkName () (line 338) and the variable currentName.value = ‘Guest_’ + Math.floor (Math.random () * 10000); change everything after the = sign, ie ‘Guest_’ + Math.floor (Math.random () * 10000);
Forum: Plugins
In reply to: [Simple Ajax Chat – Add a Fast, Secure Chat Box] Change guest_file sac.php, line 338 is function checkName() but the condition line is 348
This is the function:
function checkName(){
sacCookie = sac_getCookie(“sacUserName”);
currentName = document.getElementById(‘sac_name’);
if (currentName.value != sacCookie) {
document.cookie = “sacUserName=”+currentName.value+”; expires=<?php echo gmdate(“D, d M Y H:i:s”,time() + $offset).” UTC”; ?>;”
}
if (sacCookie && currentName.value == ”) {
currentName.value = sacCookie;
return;
}
if (currentName.value == ”) {
currentName.value = ”;
}
}Forum: Plugins
In reply to: [Simple Ajax Chat – Add a Fast, Secure Chat Box] Change guest_Hi,
I had the same problem but I found the solution. You have to find the file sac.php (location: simple-ajax-chat/resources). You look checkName() function and you make a change in the condition
if (currentName.value ==”) {
currentName.value = ‘(leave blank if you do not want to show)’;
}
I hope I helped,
Kropamk