23.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

01-21-2017, 02:17 AM
Post: #1
Get Premum Wordfence plugin.
I DO NOT TAKE CREDIT FOR THIS :



change this


Go in \lib\wfConfig.php

change the following function for :

public static function cbp($key){
wfConfig::set('isPaid', '1');
echo ' checked ';
}


How to null yourself
#1 download plugin from https://wordpress.org/plugins/wordfence/
#2 Unzip to folder
#3 Edit file \lib\wfConfig.php with code above.
#4 Save and re-zip the wordfence folder
#5 upload to your webhost
#6 Activate it and go to settings then press SAVE (very important or it won't activate)
#7 PREMIUM is activated

Proof.
01-22-2017, 01:08 AM
Post: #2
RE: Get Premum Wordfence plugin.
Works For Me...Thank bro. Give REpThanks
01-22-2017, 02:18 AM
Post: #3
RE: Get Premum Wordfence plugin.
My pleasure sir
01-22-2017, 04:44 AM
Post: #4
RE: Get Premum Wordfence plugin.
Didn't work.
Followed steps exactly wordfence6.2.10.zip, got this:
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /home/xxxxxxx/public_html/blog/wp-content/plugins/wordfence/lib/wfConfig.php on line 574

From wfConfig.php-
Code:
    public static function cbp($key){
        if(self::get('isPaid') and& self::get($key)){         <---this is original Line 570, which gets deleted

        wfConfig::set('isPaid', '1');         <---this is Line 570 changed per OP

        echo ' checked ';
        }
    }
    public static function cb($key){         <---this is Line 574
        if(self::get($key)){
            echo ' checked ';
        }
01-22-2017, 08:14 AM
Post: #5
RE: Get Premum Wordfence plugin.
Code:
echo ' checked ';
        }
    }

change to

Code:
echo ' checked ';
      
    }
24.gif
01-22-2017, 08:58 AM (This post was last modified: 01-22-2017 08:58 AM by MUZIK.)
Post: #6
RE: Get Premum Wordfence plugin.
Thanks, It worked. Is this mean we can update the plugin or we have to do the same thing when we do? Max reps for you
01-22-2017, 09:35 AM
Post: #7
RE: Get Premum Wordfence plugin.
Wow, thank you for this. I've been using the free version for about a year on multiple websites and it has helped me out tremendously.

Will be upgrading soon!
01-22-2017, 06:20 PM
Post: #8
RE: Get Premum Wordfence plugin.
(01-21-2017 02:17 AM)chrystianbourassa Wrote:  I DO NOT TAKE CREDIT FOR THIS :



change this


Go in \lib\wfConfig.php

change the following function for :

public static function cbp($key){
wfConfig::set('isPaid', '1');
echo ' checked ';
}


How to null yourself
#1 download plugin from https://wordpress.org/plugins/wordfence/
#2 Unzip to folder
#3 Edit file \lib\wfConfig.php with code above.
#4 Save and re-zip the wordfence folder
#5 upload to your webhost
#6 Activate it and go to settings then press SAVE (very important or it won't activate)
#7 PREMIUM is activated

Proof.

Replace line 569
public static function cbp($key){
wfConfig::set('isPaid', '1');
echo ' checked ';
}
and save it and upload on server and activate it after that go to wordfence option simply click save settings finally it worksThanks
01-23-2017, 06:52 AM
Post: #9
RE: Get Premum Wordfence plugin.
Wow - so simple, didn't even notice that extra '}' !
Thanks, it works!

(01-22-2017 08:14 AM)masterking Wrote:  
Code:
echo ' checked ';
        }
    }

change to

Code:
echo ' checked ';
      
    }
01-23-2017, 07:37 AM (This post was last modified: 01-23-2017 08:11 AM by kafirbaz12.)
Post: #10
RE: Get Premum Wordfence plugin.
My understanding is you have to change around line 569

Code:
public static function cbp($key){
        if(self::get('isPaid') and& self::get($key)){
            echo ' checked ';
        }
    }

to:

Code:
public static function cbp($key){
wfConfig::set('isPaid', '1');
echo ' checked ';
}
72.gif




38.gif