How to Null and Activate Premium WordPress Themes and Plugins [Valuable info]


This is a ThemRex theme. I already posted a generic solution for all Themerex themes in this forum thread.

You look in the main theme folder, find the "functions.php" file, and at the top of the file, right after the following:

Code:
<?php
/**
 * Theme functions: init, enqueue scripts and styles, include required files and widgets
 *
 * @package PROGRESS
 * @since PROGRESS 1.0
 */

Put this:

Code:
$mytheme = get_template();
update_option( 'trx_addons_theme_' . $mytheme . '_activated', true );
update_option( 'purchase_code_' . $mytheme, 'L12345678' );
update_option( 'purchase_code_src_' . $mytheme, 'L12345678' );

I could activate it and import the demo site with no problem.

To import the demo, use a fresh WP installation and first install all the needed plugins before importing the demo. To import the demo, use the "Theme Dashboard"-> "Demo Data" -> "Full import".

This should be a "sticky". People keep asking to activate Themerex themes, and the solution has been here for ages.
 
This is a ThemRex theme. I already posted a generic solution for all Themerex themes in this forum thread.

You look in the main theme folder, find the "functions.php" file, and at the top of the file, right after the following:

Code:
<?php
/**
 * Theme functions: init, enqueue scripts and styles, include required files and widgets
 *
 * @package PROGRESS
 * @since PROGRESS 1.0
 */

Put this:

Code:
$mytheme = get_template();
update_option( 'trx_addons_theme_' . $mytheme . '_activated', true );
update_option( 'purchase_code_' . $mytheme, 'L12345678' );
update_option( 'purchase_code_src_' . $mytheme, 'L12345678' );

I could activate it and import the demo site with no problem.

To import the demo, use a fresh WP installation and first install all the needed plugins before importing the demo. To import the demo, use the "Theme Dashboard"-> "Demo Data" -> "Full import".

This should be a "sticky". People keep asking to activate Themerex themes, and the solution has been here for ages.
It worked. Thank you so much, sir. I'm new here, so I didn't see the previously posted solution in the thread.
 
This is a ThemRex theme. I already posted a generic solution for all Themerex themes in this forum thread.

You look in the main theme folder, find the "functions.php" file, and at the top of the file, right after the following:

Code:
<?php
/**
 * Theme functions: init, enqueue scripts and styles, include required files and widgets
 *
 * @package PROGRESS
 * @since PROGRESS 1.0
 */

Put this:

Code:
$mytheme = get_template();
update_option( 'trx_addons_theme_' . $mytheme . '_activated', true );
update_option( 'purchase_code_' . $mytheme, 'L12345678' );
update_option( 'purchase_code_src_' . $mytheme, 'L12345678' );

I could activate it and import the demo site with no problem.

To import the demo, use a fresh WP installation and first install all the needed plugins before importing the demo. To import the demo, use the "Theme Dashboard"-> "Demo Data" -> "Full import".

This should be a "sticky". People keep asking to activate Themerex themes, and the solution has been here for ages.
Hi
i have (nll) version of newspaper v12.7 wordpress theme
it's ok but when i want to go to theme options error apears and td-cloud-library do not working
can anyone solve this problem ?
Thanks
 
Hi
i have (nll) version of newspaper v12.7 wordpress theme
it's ok but when i want to go to theme options error apears and td-cloud-library do not working
can anyone solve this problem ?
Thanks

Post your version here, and I will take a look as soon as possible.

By the way, if the error is the following:

Code:
Your license of Newspaper Theme is not assigned on this website!

then, I already posted the solution in another forum:

Code:
That error is created in one of the plug-ins installed, not in he theme itself.

Plugin: td-composer

Fix:

Look in the plugins folder of your WP installation and look for the file:

td-composer / legacy / common / wp_booster / td_js.php

In that file, look for the function "check_if_is_our_page()" around line #478.

At the end of that line, add "return true;" (without the quotes).

It should look like this:

private function check_if_is_our_page() { return true;

Done!

Keep in mind that you can update the plugin, but any time you do, you will need to do the same modification to the same file each time you update.
 
Post your version here, and I will take a look as soon as possible.

By the way, if the error is the following:

Code:
Your license of Newspaper Theme is not assigned on this website!

then, I already posted the solution in another forum:

Code:
That error is created in one of the plug-ins installed, not in he theme itself.

Plugin: td-composer

Fix:

Look in the plugins folder of your WP installation and look for the file:

td-composer / legacy / common / wp_booster / td_js.php

In that file, look for the function "check_if_is_our_page()" around line #478.

At the end of that line, add "return true;" (without the quotes).

It should look like this:

private function check_if_is_our_page() { return true;

Done!

Keep in mind that you can update the plugin, but any time you do, you will need to do the same modification to the same file each time you update.

Thanks for your assistance very passionate,

However, the homepage still shows the message: "License inactive on domain", the homepage cannot be edited and the Cloud templates cannot be created.
In version 12.6.9 everything still works fine, only v12.7 does not.
 
Thanks for your assistance very passionate,

However, the homepage still shows the message: "License inactive on domain", the homepage cannot be edited and the Cloud templates cannot be created.
In version 12.6.9 everything still works fine, only v12.7 does not.

No problem. Share your version here. I don't know who nulled it but maybe the way that it was nulled is causing the issue.
 
No problem. Share your version here. I don't know who nulled it but maybe the way that it was nulled is causing the issue.
This link: https://www.mediafire.com/file/sise24v61lkb1vl/newspaper-127.rar/file
Thanks sir, :)
 
No problem. Share your version here. I don't know who nulled it but maybe the way that it was nulled is causing the issue.
I have share link on page 33,
Can you check help me! Thank you so much.
 
I have share link on page 33,
Can you check help me! Thank you so much.


The problem seems to be that even if the theme is nulled, the cloud contents is only available with a valid license.

In the file you shared, you can see this block of code in the "functions.php" file:

Code:
add_filter('pre_http_request', function($pre, $args, $url) {
    if ($url === 'https://cloud.tagdiv.com/api/templates/get_all') {
        if ($args['method'] === 'POST' && !empty($args['body']) && isset($args['body']['wp_type'])) {
            $wp_type = sanitize_text_field($args['body']['wp_type']);
            $new_url = 'https://f004.backblazeb2.com/file/gpltimes/newspaper/' . $wp_type . '.json';
            return wp_remote_get($new_url, ['timeout' => 60, 'sslverify' => false]);
        }
    }
    if ($url === 'https://cloud.tagdiv.com/api/templates/check_domains' || $url === 'https://cloud.tagdiv.com/api/templates/activate_domain') {
        return ['response' => ['code' => 200, 'message' => 'OK']];
    }
    return $pre;
}, 10, 3);

That means, if you look into the 5th line, that whoever did the job, bypassed the issue of needing a license by using an installation with a license, copying the templates from it in JSON format, and then hosting it in a place of his, her, or their own. In this case, that place was:

Code:
https://f004.backblazeb2.com/file/gpltimes/newspaper/' . $wp_type . '.json

With one of the possibilities of the variable "$wp_type", it would turn into:

Code:
https://f004.backblazeb2.com/file/gpltimes/newspaper/templates.json

So what happened?

#1. The place is empty. I tried different possibilities by linking to it directly, and the JSON contents is not there any longer. He, she, or they are no longer hosting it, or at least, not there. That is why you get one of the errors and the lack of functionality.

#2. Since that is (was) non-official content, hosted by someone unknown, it is a HUGE security risk. Maybe he, she, or they had good intentions, but we will never know, and it could be a problem in the future if the "intentions" and the contents on that URL are replaced by malicious content. It would pass any security test, including VirusTotal, because the contents is not there until it is called by the theme.

Any solutions?

Solution #1. Trying to get hold of the lost contents and somehow inject it into the installation, either directly or by hosting it yourself on a server. The problem with this is first getting the contents, let alone getting updates of that contents when available.

Solution #2. You said that with an older version of the theme it was working, then check the "functions.php" file of that version if you have it available, and check if in that same block of code, the URL of the contents is different. If it is the same, then they are no longer hosting it or have changed the URL. If the URL is different, then just pass it to the new version.

Solution #3. There might be others offering that plugin nulled too, with the contents available, but again, it would be at your own risk because of what I explained above.

Solution #4. Getting a license.
 
By the way guys, any time you see a block of code like that, using the "pre_http_request" filter, it is what I call an "interceptor".

It is used on plugins and themes to monitor any time the plugin or theme calls the licensing server, so it then spoofs the response with a "pre-cooked" response. In this case, the response was the URL that contained the themes of the cloud.

I personally do not like to use that method, but it works partially for nulling themes and plugins.
 
By the way guys, any time you see a block of code like that, using the "pre_http_request" filter, it is what I call an "interceptor".

It is used on plugins and themes to monitor any time the plugin or theme calls the licensing server, so it then spoofs the response with a "pre-cooked" response. In this case, the response was the URL that contained the themes of the cloud.

I personally do not like to use that method, but it works partially for nulling themes and plugins.
I don't know much about this, but your post is very insightful.
 
The problem seems to be that even if the theme is nulled, the cloud contents is only available with a valid license.

In the file you shared, you can see this block of code in the "functions.php" file:

Code:
add_filter('pre_http_request', function($pre, $args, $url) {
    if ($url === 'https://cloud.tagdiv.com/api/templates/get_all') {
        if ($args['method'] === 'POST' && !empty($args['body']) && isset($args['body']['wp_type'])) {
            $wp_type = sanitize_text_field($args['body']['wp_type']);
            $new_url = 'https://f004.backblazeb2.com/file/gpltimes/newspaper/' . $wp_type . '.json';
            return wp_remote_get($new_url, ['timeout' => 60, 'sslverify' => false]);
        }
    }
    if ($url === 'https://cloud.tagdiv.com/api/templates/check_domains' || $url === 'https://cloud.tagdiv.com/api/templates/activate_domain') {
        return ['response' => ['code' => 200, 'message' => 'OK']];
    }
    return $pre;
}, 10, 3);

That means, if you look into the 5th line, that whoever did the job, bypassed the issue of needing a license by using an installation with a license, copying the templates from it in JSON format, and then hosting it in a place of his, her, or their own. In this case, that place was:

Code:
https://f004.backblazeb2.com/file/gpltimes/newspaper/' . $wp_type . '.json

With one of the possibilities of the variable "$wp_type", it would turn into:

Code:
https://f004.backblazeb2.com/file/gpltimes/newspaper/templates.json

So what happened?

#1. The place is empty. I tried different possibilities by linking to it directly, and the JSON contents is not there any longer. He, she, or they are no longer hosting it, or at least, not there. That is why you get one of the errors and the lack of functionality.

#2. Since that is (was) non-official content, hosted by someone unknown, it is a HUGE security risk. Maybe he, she, or they had good intentions, but we will never know, and it could be a problem in the future if the "intentions" and the contents on that URL are replaced by malicious content. It would pass any security test, including VirusTotal, because the contents is not there until it is called by the theme.

Any solutions?

Solution #1. Trying to get hold of the lost contents and somehow inject it into the installation, either directly or by hosting it yourself on a server. The problem with this is first getting the contents, let alone getting updates of that contents when available.

Solution #2. You said that with an older version of the theme it was working, then check the "functions.php" file of that version if you have it available, and check if in that same block of code, the URL of the contents is different. If it is the same, then they are no longer hosting it or have changed the URL. If the URL is different, then just pass it to the new version.

Solution #3. There might be others offering that plugin nulled too, with the contents available, but again, it would be at your own risk because of what I explained above.

Solution #4. Getting a license.
Thank you reply,
I found this info from the developer:
In the latest theme version we added a license check to verify if the license key is assigned to the website. If the license key is not assigned to the website, then there will be limitations. The option to edit with the composer is one of the limitations. Instead of the composer edit button there should be a button to check the license assignation in the license panel. Normally the license key is assigned to the website where the theme is used.

In version v12.6.9 still uses the above code to null and it works normally.
Thank you so much,
 
Thank you reply,
I found this info from the developer:
In the latest theme version we added a license check to verify if the license key is assigned to the website. If the license key is not assigned to the website, then there will be limitations. The option to edit with the composer is one of the limitations. Instead of the composer edit button there should be a button to check the license assignation in the license panel. Normally the license key is assigned to the website where the theme is used.

In version v12.6.9 still uses the above code to null and it works normally.
Thank you so much,

I see. Then I am not aware of the limitations because I tried version 12.7 from another place that did something similar, but calling a different server in that code block to download the cloud themes, and it seemed to work fine. However, I do not use the theme, I was trying it to see if I could find any problem and I found no of the limitations. But again, maybe I do not understand how it is supposed to work.
 
Hi @zilog357 ,
Can you help me null this theme?
Link: https://www.mediafire.com/file/bqxqwfgynxy5hcw/foxiz-v2.6.1.zip/file
Thank you very much,
 
I have tried it a few times—most of the time, you just need to find the file that checks for the license and remove or edit it. Each plugin or theme is a bit different, so I always test it on a demo site first to be safe.
 
Back
Top