Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
Guest Posted July 19, 2006 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...
Dlf Posted July 19, 2006 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'.
Voltemort Posted July 19, 2006 Posted July 19, 2006 I have done this from the birth of my forum and works like a charm. :D
Brandon C Posted July 19, 2006 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.
Guest Posted July 19, 2006 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. :)
Logan Posted July 19, 2006 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 }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.