Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Jeff Starr

    (@specialk)

    There is no setting for that, but you could always locate the string in the plugin files and change it to whatever.

    Thread Starter Buienradars

    (@buienradars)

    Where can i find it sir ?

    Plugin Author Jeff Starr

    (@specialk)

    You’re gonna have to look for it.. (sorry I’m working remotely w/o access to my files)

    Thread Starter Buienradars

    (@buienradars)

    I have searched but i can`t find it.

    Plugin Author Jeff Starr

    (@specialk)

    I’ll take a look when I get back to the office and let you know.

    Thread Starter Buienradars

    (@buienradars)

    Thank you Jeff ??

    Thread Starter Buienradars

    (@buienradars)

    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,
    Kropamk

    Thread Starter Buienradars

    (@buienradars)

    Hi 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);

    Thread Starter Buienradars

    (@buienradars)

    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 ??

    Thread Starter Buienradars

    (@buienradars)

    Thnx kropamk

    Works fine now ??

    Thread Starter Buienradars

    (@buienradars)

    Solved

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Change guest_’ is closed to new replies.