Welcome, Guest. Please Login or Register.
August 29, 2025, 10:25:13 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  ATTN: all Dev. Team!!!!! « previous next »
Pages: [1] Reply Ignore Print
Author Topic: ATTN: all Dev. Team!!!!!  (Read 528 times)
Wistman
Jr. Member
**
Posts: 84


I'm a llama!

ATTN: all Dev. Team!!!!!
« on: April 17, 2002, 10:08:29 AM »
Reply with quote

WARNING This is a query NOT a fix

I am still having problems with the Register.php on my forum.

The problem appears to be when this script:
   $queryPasswdPart = crypt($member['passwrd1'],substr($member['passwrd1'],0,2));
    $memIP=$REMOTE_ADDR;
   $request = mysql_query("INSERT INTO {$db_prefix}members (memberName,realName,passwd,emailAddress,posts,personalText,avatar,dateRegistered,hideEmail,memberIP) VALUES ('$member[user]','$member[user]','$queryPasswdPart','$member[email]',0,'$txt[209]','blank.gif',$requesttime,'$hideemail','$memIP')");
is implimented, it would appear that the ID_MEMBER does not automatically increase in the members table when the above code is applied. Howevr once the new member is inserted manually into the table, all the member features work (login, profile, etc)

I was wondering if the following code might be better:
   $queryPasswdPart = crypt($member['passwrd1'],substr($member['passwrd1'],0,2));
    $memIP=$REMOTE_ADDR;
    $request = mysql_query("UPDATE {$db_prefix}members SET ID_MEMBER = ID_MEMBER + 1");
   $request = mysql_query("INSERT INTO {$db_prefix}members (memberName,realName,passwd,emailAddress,posts,personalText,avatar,dateRegistered,hideEmail,memberIP) VALUES ('$member[user]','$member[user]','$queryPasswdPart','$member[email]',0,'$txt[209]','blank.gif',$requesttime,'$hideemail','$memIP')");


Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:ATTN: all Dev. Team!!!!!
« Reply #1 on: April 17, 2002, 11:22:52 AM »
Reply with quote

The field is set to auto increment, therefore it will automatically increment by one.  Also, by your suggestion you're adding an extra query when one isn't needed, you could just add that field increment in the query that already exists!

Besides, what exactly is your issue with registering?!?!
Logged

Wistman
Jr. Member
**
Posts: 84


I'm a llama!

Re:ATTN: all Dev. Team!!!!!
« Reply #2 on: April 17, 2002, 12:05:26 PM »
Reply with quote

Quote from: Jeff Lewis on April 17, 2002, 11:22:52 AMThe field is set to auto increment, therefore it will automatically increment by one.  Also, by your suggestion you're adding an extra query when one isn't needed, you could just add that field increment in the query that already exists!

That I did wonder about as well but I'm still learning the coding

Quote from: Jeff Lewis on April 17, 2002, 11:22:52 AMBesides, what exactly is your issue with registering?!?!

The problem is that no registration is taking place on my board unless I do it manually. When a guest registers they are told they are sucessful but when they try to log in they are told that no id & password exist, (which is because no record has been entered for them).

Actually the code above is the only bit of Register.php that does not work

After checking the Register.php plus the members table, the only thing I can come up with is is the fact that the auto increment is not working.

Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:ATTN: all Dev. Team!!!!!
« Reply #3 on: April 17, 2002, 01:13:57 PM »
Reply with quote

Send me a link to your board...I highly doubt it's NOT working ;)
Logged

Wistman
Jr. Member
**
Posts: 84


I'm a llama!

Re:ATTN: all Dev. Team!!!!!
« Reply #4 on: April 17, 2002, 01:49:30 PM »
Reply with quote

<snipped>
« Last Edit: April 17, 2002, 06:32:06 PM by Jeff Lewis » Logged
John R
PHP Challenged
Global Moderator
Sr. Member
*****
Posts: 387


Click, Click, Click, Bang!

ICQ - 3166233codehammer@thevortex.com
Re:ATTN: all Dev. Team!!!!!
« Reply #5 on: April 17, 2002, 01:58:39 PM »
Reply with quote

Quote from: Wistman on April 17, 2002, 01:49:30 PM<snipped>

YUCK, and what type of a site is this?
« Last Edit: April 17, 2002, 07:10:16 PM by Jeff Lewis » Logged

Be careful what you wish for, it might come true!

Note: I do not acknowledge support requests via PM, MSN or ICQ, please use the support boards.
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:ATTN: all Dev. Team!!!!!
« Reply #6 on: April 17, 2002, 02:07:42 PM »
Reply with quote

Didn't like that site a bit...
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:ATTN: all Dev. Team!!!!!
« Reply #7 on: April 17, 2002, 02:48:01 PM »
Reply with quote

Oh my....

Um, you're right though, registering doesn't work...
Logged

Pegleg
Sr. Member
****
Posts: 427


Isn't Beta Testing Fun?

ICQ - 687261
Re:ATTN: all Dev. Team!!!!!
« Reply #8 on: April 17, 2002, 03:12:48 PM »
Reply with quote

OMG, that's a pedophile site..... >:(
Logged

Webmaster - Largest TB4 Club on the planet!
Visit The OutdoorSims Home Site
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Re:ATTN: all Dev. Team!!!!!
« Reply #9 on: April 17, 2002, 05:41:27 PM »
Reply with quote

OMG - the pink... Nooooooooooooooooooooooooooooo!

* Greg passes out on the floor from the most overdone use of Pink.
Logged

You can't have everything... where would you put it? -- Steve Wright
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:ATTN: all Dev. Team!!!!!
« Reply #10 on: April 17, 2002, 06:04:15 PM »
Reply with quote

Greg, the design isn't the problem. It's the content.

I really think YaBB needs a user ignore function... I'm sorry Wistman but you're a pervert, I am totally opposed to what you do. How can you run a site that takes advantage of children? What's funny is you post it as if there is no problem with the site... you really do disgust me.

Please, can a moderator delete the link to the site at least?
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:ATTN: all Dev. Team!!!!!
« Reply #11 on: April 17, 2002, 06:10:13 PM »
Reply with quote

Quote from: Mach8 on April 17, 2002, 06:04:15 PMGreg, the design isn't the problem. It's the content.

I really think YaBB needs a user ignore function... I'm sorry Wistman but you're a pervert, I am totally opposed to what you do. How can you run a site that takes advantage of children? What's funny is you post it as if there is no problem with the site... you really do disgust me.

Please, can a moderator delete the link to the site at least?

I'll second that.
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:ATTN: all Dev. Team!!!!!
« Reply #12 on: April 17, 2002, 06:32:23 PM »
Reply with quote

I'll lock the thread as well...
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  ATTN: all Dev. Team!!!!! « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.014 seconds with 16 queries.