![]() |
I'm trying to keep my database lean... I want to clear the failed attempts when the login is successful.. I keep getting "parse errors" any help here would be hot.
I've modified Axel Foley's code for successful logins to: // HACK: Login Log (Successful login) $DB_site->query("DELETE FROM loginlog WHERE userid='$user[userid]'"); // HACK: Login Log (Successful login) Thanks in advance for the help. [edit]: corrected spelling mistakes [edit]: :ermm: I was missing the "$" in "$DB_site". Problem solved. |
I'm runing 2.2.4, would this still work?
|
great hack.. Just installed on 2.2.6 and works great. Very easy to install... great instructions
Good hack! Thanks |
This works on 2.2.6 indeedy :D
|
Parse error: parse error in /home/www/shack/html/forums/member.php on line 110
I keep getting this error when I try to log out of my forums. Any ideas why Running php4 vB2.2.6 HM |
I am getting that error too.
|
[QUOTE]Originally posted by PPN
that would be my bad :D $DB_site->query("INSERT INTO loginlog (loginid, ip, username, password, userid, atime) VALUES ('','$ipaddress', '$username', '$password', '$user[userid]', '".time()."')"); should be $DB_site->query("INSERT INTO loginlog (loginid, ip, username, password, userid, atime) VALUES ('','$ipaddress', '".addslashes($username)."', '$password', '$user[userid]', '".time()."')"); |
Oops! (spoke too fast!)
"Houston, we have a problem!" Getting parse errors by the second ... I pasted this into the member.php: PHP Code:
PHP Code:
Anyone know why? |
[QUOTE]Originally posted by ModshackUK
Parse error: parse error in /home/www/shack/html/forums/member.php on line 110 I keep getting this error when I try to log out of my forums. Any ideas why Running php4 vB2.2.6 HM |
just a quick note: The hack works flawlessly in 2.2.9..
Very useful expecially for boards with paid membership.. Thx for sharing.. |
All times are GMT. The time now is 03:55 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|