You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.
Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"
use null file don't need keyv3.17.6 - 7 August 2023 - Untouched
how to install this without key....
Hi, could you please explain the nulling process?use null file don't need key
View null code in function.php =)) copy it and done with any key or charactor input on.Hi, could you please explain the nulling process?
I will just like to know it, in case of future updates.
Thank you
<?php
/**
* Flatsome functions and definitions
*
* @package flatsome
*/
require get_template_directory() . '/inc/init.php';
update_option( 'flatsome_wup_purchase_code', 'B5E0B5F8DD8689E6ACA49DD6E6E1A930' );
update_option( 'flatsome_wup_supported_until', '01.01.2050' );
update_option( 'flatsome_wup_buyer', 'Licensed' );
update_option( 'flatsome_wup_sold_at', time() );
delete_option( 'flatsome_wup_errors', '' );
delete_option( 'flatsome_wupdates', '');
/**
* Note: It's not recommended to add any custom code here. Please use a child theme so that your customizations aren't lost during updates.
* Learn more here: http://codex.wordpress.org/Child_Themes
*/
I used your method to null the theme, I am getting a warning message tho. See attached file.For those who want to do the annulment on their own, do the following, download the non-annulled theme from the official link on the Babiato forum, and access the "flatsome" folder and then in functions.php, leave the code like this:
PHP:<?php /** * Flatsome functions and definitions * * @package flatsome */ require get_template_directory() . '/inc/init.php'; update_option( 'flatsome_wup_purchase_code', 'B5E0B5F8DD8689E6ACA49DD6E6E1A930' ); update_option( 'flatsome_wup_supported_until', '01.01.2050' ); update_option( 'flatsome_wup_buyer', 'Licensed' ); update_option( 'flatsome_wup_sold_at', time() ); delete_option( 'flatsome_wup_errors', '' ); delete_option( 'flatsome_wupdates', ''); /** * Note: It's not recommended to add any custom code here. Please use a child theme so that your customizations aren't lost during updates. * Learn more here: http://codex.wordpress.org/Child_Themes */
it only create fake register infomation to can be use full function theme then on screen backend show an alert. You can delete it on other file or contine use. In register of theme click on unregister to see registered =))))I used your method to null the theme, I am getting a warning message tho. See attached file.
Or even better. Use the child theme..update_option( 'flatsome_wup_purchase_code', 'B5E0B5F8DD8689E6ACA49DD6E6E1A930' ); update_option( 'flatsome_wup_supported_until', '01.01.2050' ); update_option( 'flatsome_wup_buyer', 'Licensed' ); update_option( 'flatsome_wup_sold_at', time() ); delete_option( 'flatsome_wup_errors', '' ); delete_option( 'flatsome_wupdates', '');
update_option( 'flatsome_wup_purchase_code', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' );
update_option( 'flatsome_wup_supported_until', '01.01.2050' );
update_option( 'flatsome_wup_buyer', 'Licensed' );
update_option( 'flatsome_wup_sold_at', time() );
delete_option( 'flatsome_wup_errors');
From
if ( in_array( $screen->id, array( 'update-core', 'update-core-network' ), true ) && ! flatsome_envato()->registration->is_registered() ) {
to
/**
* Outdated template files notice.
*
* @return void
*/
Why? Just gave a tip using the child-theme that is much more simple.. You can still use the auto-update on mail theme.. and maintain the registrationEdit file
functions.php
find
require get_template_directory() . '/inc/init.php';
Add before
Code:update_option( 'flatsome_wup_purchase_code', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' ); update_option( 'flatsome_wup_supported_until', '01.01.2050' ); update_option( 'flatsome_wup_buyer', 'Licensed' ); update_option( 'flatsome_wup_sold_at', time() ); delete_option( 'flatsome_wup_errors');
Edit file
/inc/admin/admin-notice.php
remove
Code:From if ( in_array( $screen->id, array( 'update-core', 'update-core-network' ), true ) && ! flatsome_envato()->registration->is_registered() ) { to /** * Outdated template files notice. * * @return void */
I used your method to null the theme, I am getting a warning message tho. See attached file.
'flatsome_wup_purchase_code'
flatsome_theme_key() . '_wup_purchase_code'
...
require get_template_directory() . '/inc/init.php';
update_option( get_template() . '_wup_purchase_code', 'ZqihUGpp-MjNr-oKco-hRit-PbJXLeLwwAqW' );
update_option( get_template() . '_wup_supported_until', '31.08.2077' );
update_option( get_template() . '_wup_buyer', 'Licensed' );
update_option( get_template() . '_wup_sold_at', time() );
delete_option( get_template() . '_wup_errors', '' );
delete_option( 'flatsome_wupdates', '');
/**
* Note: ...
$encoded_value = base64_encode( serialize( $value ) );
$encoded_value = base64_encode( wp_json_encode( $value ) );
$atts = json_decode( base64_decode( $value ), true );
Tried this on 2 site and it BROKE! curl errors and not being able to communicate with wordpress.org... Had to do a restore. I would be careful doing this (although not sure why OR how it breaks BUT for me it did on 2 sites!)That's becausehas been changed toPHP:'flatsome_wup_purchase_code'
at the latest update.PHP:flatsome_theme_key() . '_wup_purchase_code'
So the correct code for function.php should be:
PHP:... require get_template_directory() . '/inc/init.php'; update_option( get_template() . '_wup_purchase_code', 'ZqihUGpp-MjNr-oKco-hRit-PbJXLeLwwAqW' ); update_option( get_template() . '_wup_supported_until', '31.08.2077' ); update_option( get_template() . '_wup_buyer', 'Licensed' ); update_option( get_template() . '_wup_sold_at', time() ); delete_option( get_template() . '_wup_errors', '' ); delete_option( 'flatsome_wupdates', ''); /** * Note: ...
I've did some code tweaking for my own's satisfaction and would like to share it out here if you don't want to see alert notice telling you code is malform instead only consider plugin/theme is fully null when message in register page is thanking you for purchasing flatsome theme. Unzip the files i shared here, then replace them in the flatsome theme folder. If you are using files i share, ignore the code editing above, function.php is included.
Tried this on 2 site and it BROKE! curl errors and not being able to communicate with wordpress.org... Had to do a restore. I would be careful doing this (although not sure why OR how it breaks BUT for me it did on 2 sites!)
The best solution. PERFECT!!!Or even better. Use the child theme..
Insert the last 6 lines (exclude the top one) in the funtions.php in the flatsome-child folder. This way you can just update the theme with the original on - and you don't have to add license each time there is a new update
I would assume all web builders do code editing in a staging site(usually localhost) before making the final edit to production site. Cos you know... every one uses different combination of other plugins & themes, the server php version might even be different than others too.
@Babak where is the function??? I can't find it in the function-update.php fileIn the file flatsome/inc/functions/function-update.php
Near the bottom of the file, find function wupdates_prevalidate_purchase_code_JQ9eJ( $purchase_code ) and add this to the start of the function code:
Then in the function wupdates_process_purchase_code_JQ9eJ() { which starts around line 213 comment out lines 245-248 like so:PHP:return true;
And lines 251-253 like this:PHP:// $raw_response = wp_remote_post( $url, $http_args ); // if ( $ssl && is_wp_error( $raw_response ) ) { // $raw_response = wp_remote_post( $http_url, $http_args ); // }
And straight underneath that add this:PHP:// $errors[] = __( 'We are sorry but we couldn\'t connect to the verification server. Please try again later.', 'wupdates' ) . '<span class="hidden">' . print_r( $raw_response, true ) . '</span>'; // } else { // $response = json_decode( $raw_response['body'], true );
Change the details to whatever you want and now use any key to activate the theme.PHP:$response['purchase_code'] = 'valid'; $response['raw_response']['sold_at'] = 'April 1 2017'; $response['raw_response']['supported_until'] = 'Jan 23 2023'; $response['raw_response']['buyer'] = 'MrPloppy';
We get it, advertisements are annoying!
However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.
If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.