Jump to content
MakeWebGames

[GLV2][MoD][FREE] Change Username


Sim

Recommended Posts

  • 3 months later...

This upload/install didnt work for me kept mentioning needs the JSON file when i unzipped it there is a folder within a folder which is the cause also your module.json refers to Attack just so your aware Sim... but the mod does work great 🙂 I should have looked on the downloads before trying to do my own Edit Username which worked to an extent I used the profile module to add the change username.. HOWEVER it didnt work correctly you could change your name to any ones name within the game... 

 

  • Like 1
Link to comment
Share on other sites

2 hours ago, Uridium said:

This upload/install didnt work for me kept mentioning needs the JSON file when i unzipped it there is a folder within a folder which is the cause also your module.json refers to Attack just so your aware Sim... but the mod does work great 🙂 I should have looked on the downloads before trying to do my own Edit Username which worked to an extent I used the profile module to add the change username.. HOWEVER it didnt work correctly you could change your name to any ones name within the game... 

 

Thanks. Ill update this mod once i get off work.

            $sel = $this->db->prepare ("
            SELECT * FROM
              users
            WHERE 
              U_name=:username
            ");
            $sel->bindParam(":username", $this->methodData->username);
            $sel->execute ();
            
            $sel = $sel->fetch(PDO::FETCH_ASSOC);
            
            if(!empty($sel))
            {
              return  $this->html = $this->page->buildElement('error', array(
                    "text" => 'Username already in use..'
                )); 
            }

According to my code, duplicate usernames should never happen. I will look into this further.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...