Jump to content
MakeWebGames

[GLV2][MoD][FREE] Change Username


Recommended Posts

Posted
5 minutes ago, Dayo said:

Approved and added a comment 🙂 

I seen. Thanks. Can you reapprove my business mod as well.

 

The change username mod only took less then 30 minutes and coded on my cellphone.

  • 3 months later...
Posted

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
Posted
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.

Posted
1 hour ago, Sim said:

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

That part worked fine on your version i was on about the username editor i made that one didnt work.... Yours works flawlessly

Posted
1 hour ago, Uridium said:

That part worked fine on your version i was on about the username editor i made that one didnt work.... Yours works flawlessly

Oh, lol. Glad to hear.

  • 3 years later...

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