I just can't get this to work, I added the charset, still doesn't. Have no clue what I'm doing wrong.
Can we assume your email is working? i.e., when you send a test message from AdminCP>Maintenance>Diagnostics>Email it works? Also I guess you tried the things people mentioned earlier, like modifying the url?
Seeing so many people having problems with this, note that the admin usernames you specify in options are CASE SENSITIVE. I.e you want to have both admin,Admin,administrator,Administrator,yourname,Y ourname for it to work.
At least that did the trick for me.
----------------
If you want a more fancy message, you can use this:
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="180"><img src="http://www.URL TO YOUR IMAGE.com" width="180" height="160" /> </td>
<td width="10"> </td>
<td><p style="font-weight: bold; font-size: x-large; color: #36F;">Login to admin panel failed. </p>
<p>The administrators have been sent an email with your IP address and other information.</p>
<p>If you have any questions contact the administrator here:<br/> <a href="mailto:yourmail@address.com">yourmail@address.com</a> or <a href="private.php?do=newpm&u=1">Click Here</a> to send PM</p></td>
</tr>
</table>
Just upload the image to your server, change the image url in the code, the mailto:url / text and specify admin userID if not 1
Really nice. The only problem is, aside from us when we're testing it, the only people/machines that will see that fancy message are the bastards trying to break in, and I have a feeling it will be wasted on them.
Interesting note about case sensitivity. Curious, I just checked mine and that is not the case and it works fine regardless. I have our two admin names entered in all lowercase, but the Members List shows us both as being capitalized.
Seeing so many people having problems with this, note that the admin usernames you specify in options are CASE SENSITIVE. I.e you want to have both admin,Admin,administrator,Administrator,yourname,Y ourname for it to work.
At least that did the trick for me.
----------------
If you want a more fancy message, you can use this:
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="180"><img src="http://www.URL TO YOUR IMAGE.com" width="180" height="160" /> </td>
<td width="10"> </td>
<td><p style="font-weight: bold; font-size: x-large; color: #36F;">Login to admin panel failed. </p>
<p>The administrators have been sent an email with your IP address and other information.</p>
<p>If you have any questions contact the administrator here:<br/> <a href="mailto:yourmail@address.com">yourmail@address.com</a> or <a href="private.php?do=newpm&u=1">Click Here</a> to send PM</p></td>
</tr>
</table>
Just upload the image to your server, change the image url in the code, the mailto:url / text and specify admin userID if not 1
great edit!
Quote:
Originally Posted by archet1337
If I were a bot, I would appreciate a neat error message ^^
On a more serious note though, I was just playing around and figured I'd share it.
How weird that yours does not have case sensitivity. Mine refused to display the message when I tried Admin instead of admin.
Seeing so many people having problems with this, note that the admin usernames you specify in options are CASE SENSITIVE. I.e you want to have both admin,Admin,administrator,Administrator,yourname,Y ourname for it to work.
At least that did the trick for me.
----------------
If you want a more fancy message, you can use this:
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="180"><img src="http://www.URL TO YOUR IMAGE.com" width="180" height="160" /> </td>
<td width="10"> </td>
<td><p style="font-weight: bold; font-size: x-large; color: #36F;">Login to admin panel failed. </p>
<p>The administrators have been sent an email with your IP address and other information.</p>
<p>If you have any questions contact the administrator here:<br/> <a href="mailto:yourmail@address.com">yourmail@address.com</a> or <a href="private.php?do=newpm&u=1">Click Here</a> to send PM</p></td>
</tr>
</table>
Just upload the image to your server, change the image url in the code, the mailto:url / text and specify admin userID if not 1
Working nicely, just wondering, there used to be a version for 3.0 maybe 3.5 that also showed if it was possibly a member allready of the site as well as password tried.
Is it possibly to incorporate that into this?