The Joomla! Forum ™





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Replace existing user
PostPosted: Sun Nov 16, 2008 3:29 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri May 26, 2006 1:34 pm
Posts: 14
Hello

I need a lil help! How can i replace a user? joomla 1.0.15

Need a function like:
if username exist = delete existing user & create the new one

Actually it does modify the username i send over VM silent registration.
if i send the username test@test.com and it does already exist it does register as
test@test.co0
test@test.co1
test@test.co2
test@test.co3 ect...

Where is this function made?

I found on joomla.php 2847

Code:
// check for existing username
      $query = "SELECT id"
      . "\n FROM #__users "
      . "\n WHERE username = " . $this->_db->Quote( $this->username )
      . "\n AND id != " . (int)$this->id
      ;
      $this->_db->setQuery( $query );
      $xid = intval( $this->_db->loadResult() );
      if ($xid && $xid != intval( $this->id )) {
         $this->_error = addslashes( _REGWARN_INUSE );
         return false;
      }


mow can i change this to delete the old one and create new one?

Many thanks. Im ok to pay for any help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group