MyBB Community Forums

Full Version: Pin security ACP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello again,

So I am trying to install this:
http://www.mybbsecurity.net/topic-add-se...-acp-login

I got everything placed and working well, except for one thing. When I insert a wrong PIN I get an error message.
Fatal error: Call to a member function show_login() on a non-object in "Directory" on line 138

So I took a closer look and saw it was the following:
$default_page->show_login("Invalid PIN","error");
What could be the reason for this?

Thanks in advance.
Maybe you didn't edit something how it should be. Try instead of editing, plugin:

http://www.mybbsecurity.net/topic-admin-directory-pin
I would preffer to hardcode it, like said in that topic it's a bad thing when you get SQL injected if you place it into the MySQL database. When you hardcode it they can't inject it and so it's more secured.
That tutorial is for several MyBB versions ago, the line numbers may not be correct anymore. Try using the plugin Smile

You can use a hardcoded variable with the plugin IIRC.
I took some closer look at the plugin that was suggested there I found the code
DefaultPage::show_login('Invalid PIN', 'error');


So I replaced it and everything was fine. Thanks for this! Smile