Change guest_
-
How can i change guest_ with the numbers to something else ?
-
There is no setting for that, but you could always locate the string in the plugin files and change it to whatever.
Where can i find it sir ?
You’re gonna have to look for it.. (sorry I’m working remotely w/o access to my files)
I have searched but i can`t find it.
I’ll take a look when I get back to the office and let you know.
Thank you Jeff 😉
Any news ?
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,
KropamkHi kropank
On what number of line do i search ?
And how to change it to Vul hier je naam in.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 = ”;
}
}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);
I have it now this way
if (currentName.value == '') { currentName.value = 'Naam_'+ Math.floor(Math.random() * 10000);Now it shows Naam like i like it but also the numbers.
delete ‘+ Math.floor(Math.random() * 10000)’ and disappear numbers 😉
Thnx kropamk
Works fine now 😉
Solved
The topic ‘Change guest_’ is closed to new replies.