Guest Posted July 19, 2006 Share Posted July 19, 2006 In ipb 1.3 days, after you registered you were automatically logged in, I know it was removed because of a security issue with the implementation, but I'd like to see the automatic logon function back, implemented in a secure way of course...It's annoying (more typing) and confusing (login box is quite confusing with the big red box, I wouldn't be surprised if it scared people away, haha :) ) to members that they have to login again after they just typed out a registration form... Link to comment Share on other sites More sharing options...
Dlf Posted July 19, 2006 Share Posted July 19, 2006 I asked for this 'mod' at IZE, Find this in /source/ipclass.php (one, if not the only, file in the source not in a 'folder')function my_setcookie($name, $value = "", $sticky = 1) { if ( $this->no_print_header ) { return; }Just comment, or remove return;. That should log you in, after you register. Note: I didn't do this, someone else 'did'. Link to comment Share on other sites More sharing options...
Voltemort Posted July 19, 2006 Share Posted July 19, 2006 I have done this from the birth of my forum and works like a charm. :D Link to comment Share on other sites More sharing options...
Brandon C Posted July 19, 2006 Share Posted July 19, 2006 I asked for this 'mod' at IZE, Find this in /source/ipclass.php (one, if not the only, file in the source not in a 'folder')function my_setcookie($name, $value = "", $sticky = 1) { if ( $this->no_print_header ) { return; } Just comment, or remove return;. That should log you in, after you register. Note: I didn't do this, someone else 'did'. Yeah, just make it from function my_setcookie($name, $value = "", $sticky = 1) { if ( $this->no_print_header ) { return; } to function my_setcookie($name, $value = "", $sticky = 1) { if ( $this->no_print_header ) and it should do the trick. Link to comment Share on other sites More sharing options...
Guest Posted July 19, 2006 Share Posted July 19, 2006 I know it's easy to make it work, but I suspect that return is there for a reason probably, I would like to see a working solution incorporated in the standard product. :) Link to comment Share on other sites More sharing options...
Logan Posted July 19, 2006 Share Posted July 19, 2006 Yeah, just make it from function my_setcookie($name, $value = "", $sticky = 1) { if ( $this->no_print_header ) { return; } to function my_setcookie($name, $value = "", $sticky = 1) { if ( $this->no_print_header ) and it should do the trick. Umm no, it wouldn't do the trick. It was already stated above how it should be done, but the code you posted would give a parse error since the if statement wasn't closed :P It needs to be like this: function my_setcookie($name, $value = "", $sticky = 1) { if ( $this->no_print_header ) { //do nothing } Link to comment Share on other sites More sharing options...
Matt007 Posted July 20, 2006 Share Posted July 20, 2006 Yeah this would be a nice setting for 2.2 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.