MySubscriptions, Donation Bar, MyDownloads, MyAchievements and support for our free and paid plugins. All that for $7!
Advertise Here!
Are you looking to advertise on this forum? Please read this announcement thread.
Are you looking to advertise on this forum? Please read this announcement thread.
|
MyProtection 1.3
|
|
08-10-2010, 12:12 AM
(This post was last modified: 08-10-2010 01:03 AM by Pirata Nervo.)
Post: #1
|
|||
|
|||
|
MyProtection 1.3
Everyone can download this plugin but only subscribers can reply to this thread and get support. Click here to subscribe.
. Here's a rule you should ALWAYS follow if you use this plugin: never tell anyone that you have this plugin activated. Anyway, MyProtection displays a fake 404 Error page which looks exactly like the real one in order to cheat anyone that tries to access inc/plugins/myprotection.php directly. Take a look at the readme in order to understand exactly how MyProtection should be configured and how it works. In general, MyProtection checks if there's something wrong with admin accounts (like missing admin accounts, extra admin accounts, etc), the email set in myprotection.php (you set the email) will be automatically emailed and a backup of the database is made - check the readme to know where - and the board is closed (not the usual way. If the board is closed by MyProtection, there is no way to access the board/admin cp unless you change the close board setting to 0 - read the readme for more information) if the setting is set to 1. MyProtection's settings are defined in inc/plugins/myprotection.php, thus only those with access to an FTP account can change them. Read the readme carefully before activating the plugin or you might end up with a closed board - you can open it by editing the plugin of course. You must configure the plugin before activating it. Yes, your board will be slower (a few microseconds) as MyProtection has to run a few queries in order to check if everything's okay - just like every plugin, right? This was tested a lot of times today on my localhost and on my live server with various setting values to make sure everything works fine. Report any bugs you may find please! Upgrade To upgrade from 1.0/1.1 to 1.2 just re-upload all files. To upgrade from 1.0/1.1/1.2 to 1.3 just re-upload all files. Changes from 1.2 to 1.3 - Added compatibility with MyBB 1.6. - Changed license to GPLv3. Changes from 1.1 to 1.2 - MyProtection checks if the user id's defined in MP_ADMINS_UIDS exist in your database. Changes from 1.0 to 1.1 - Fixed a typo that would generate a MySQL error when deactivating the plugin Thank you
|
|||
|
12-21-2010, 03:13 PM
(This post was last modified: 12-21-2010 03:47 PM by th4natos.)
Post: #2
|
|||
|
|||
|
RE: MyProtection 1.3
After installing, I received the following warnings at the top of my forum (every page, in the ACP, etc):
Quote:MyBB Internal: One or more warnings occured. Please contact your administrator for assistance. Disabled and the errors go away. The only other plugin installed/running is MyDownloads. Edit: Enabled Warnings on MyBB, and its a problem with the headers already being sent by MyProtection. I had Send No Cache Headers enabled, so I disabled that and a lot of the warnings went away. I am trying to find the last cause of the headers warning, but can't find any more settings that has to do with headers. Edit2: This is triggering the warning (Line 51 in admin/index.php) Code: header("Content-type: text/html; charset={$lang->settings['charset']}"); // <-- Or maybe it's this line I might have miscounted.If I comment out the line that I posted above, the warning goes away... However, I don't want this to be a permanent solution as there is most definitely a purpose for that line. Edit3: I moved the line to the top of the file and it removes the error. I guess that's a fine solution for now. |
|||
|
12-21-2010, 05:30 PM
(This post was last modified: 12-21-2010 06:04 PM by th4natos.)
Post: #3
|
|||
|
|||
|
RE: MyProtection 1.3
Another problem. When clicking a thread from the forum index, I get the error:
Code: MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.So basically, this errors: Code: showthread.php?tid=2&action=lastpostCode: showthread.php?tid=2Disabling the plug-in there is no error either way I click the thread. Edit: Pretty sure it's caused by this line in Showthread.php: Code: header("Location: ".htmlspecialchars_decode(get_post_link($newpost['pid'], $tid)).$highlight."#pid{$newpost['pid']}");Starting to think I have an encoding problem. |
|||
|
12-21-2010, 10:17 PM
Post: #4
|
|||
|
|||
|
RE: MyProtection 1.3
The problem is that you have edited the MyProtection plugin file with Notepad or a similar "notes" application which adds "invisible" characters to the code. Use Notepad+++ for example and you'll be fine
And by the way, put back the lines in their original place.
|
|||
|
12-22-2010, 04:13 AM
Post: #5
|
|||
|
|||
|
RE: MyProtection 1.3
nervo, please read thread about Gzip, i ask you something about gzip and MyProtection that crash the forum
|
|||
|
12-22-2010, 06:18 AM
Post: #6
|
|||
|
|||
RE: MyProtection 1.3
(12-22-2010 04:13 AM)habs Wrote: nervo, please read thread about Gzip, i ask you something about gzip and MyProtection that crash the forum If I do not reply, you do not have to post that in another thread, just wait until I reply please. Thanks. |
|||
|
12-22-2010, 10:07 AM
(This post was last modified: 12-22-2010 10:36 AM by th4natos.)
Post: #7
|
|||
|
|||
|
RE: MyProtection 1.3
Ok thanks, it was working great after that. However I have another issue; After I installed it, a user joined my forum. I want to add him to administrators. So, I first edit the myprotection.php line here:
define('MP_ADMINS_UIDS', '1'); to define('MP_ADMINS_UIDS', '1,4'); Then I added him to the administrator group. It blocks the board. I even tried setting MP_BLOCK_BOARD to 0, deactivating the plugin and reactivating. I set MP_BLOCK_BOARD back to 1 and it is blocked. Is there some other setting i need to change? Edit: Does this have anything to do with the email delay setting? Should I reset the delay somehow? Edit: The email reveals a bit about the problem: Quote:MyProtection found 1 administrators while you have specified only 2 admins. Instead of (intval($admin_count) != intval(count($admins))) maybe it should be (intval($admin_count) > intval(count($admins))) The problem was that the administrator group was set as a secondary group. Set it to primary, re-activated plugin, and it works well. Thanks |
|||
|
12-22-2010, 10:48 AM
Post: #8
|
|||
|
|||
|
RE: MyProtection 1.3
I'm glad it works now
I didn't make it to compare additional groups but I should probably do that, otherwise users can still be admins without being specified in the file I guess
|
|||
|
12-22-2010, 03:04 PM
Post: #9
|
|||
|
|||
|
RE: MyProtection 1.3
admin should be specified in the file, nervo..
if not, it will close the forum.
|
|||
|
12-22-2010, 09:26 PM
Post: #10
|
|||
|
|||
RE: MyProtection 1.3
(12-22-2010 03:04 PM)habs Wrote: admin should be specified in the file, nervo.. Hmm what? |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)


![[Image: s.png]](http://mybb-plugins.com/images/s.png)



