Customizing SMF > SMF Coding Discussion
$ssi_on_error_method
Kays:
In looking at the code in Error.php that's how it does work if a fatal error is created using either the fatal_error() or fatal_lang_error() functions.
A login error is handled differently since the user gets re-sent to a login page if there's a problem.
weimer:
I am writing an app targeted for mobile phones.
K@:
--- Quote from: weimer on April 05, 2012, 10:57:13 AM ---I am writing an app targeted for mobile phones.
--- End quote ---
No, you're not. You're copy/pasting other people's words.
Hammer time! :)
Anthony`:
--- Quote from: danwsc on April 01, 2012, 10:32:20 AM ---Yep, that's what I did.
Defined a function and put the name of the function in String.
Then clicked the login button twice in quick succession.
Normal thing happened ie. redirected to a normal SMF error screen.
So I was wondering if anybody has used it before so I could look at some code to see what else I need to do.
Regards.
--- End quote ---
After experimenting a little, this isn't possible currently with what you want to do. I set the variable to my callable function in SSI.php, and attempted to spam login using the form generated by the SSI login function. After doing a bit of debugging, the SMF constant is set to 1, and the $ssi_on_error_method is actually null in the function where the callable function is supposed to be invoked.
It probably works so you can only do this when you call an error function INSIDE SSI.php, which isn't totally effective in your case.
Navigation
[0] Message Index
[*] Previous page
Go to full version