MagPlus - Blog & Magazine WordPress theme for Blog, Magazine

MagPlus - Blog & Magazine WordPress theme for Blog, Magazine v6.4

No permission to download

testin41

New member
Feb 23, 2019
4
0
1
Same as @jjay cannot find the code anywhere do we have to do something else? Need answer. or none can fix it since they updated the code ? :)
 
Last edited:

dev25axl

New member
Sep 3, 2019
18
5
3
Search this code in /magplus/framework/admin/api/
public function is_registered() {
$registered = get_option($this->registered_key);
return ($registered) ? true : false;
}
and replace
return ($registered) ? true : false;
with
return true;
 
Last edited:

TassieNZ

Premium Uploader and Sometimes Hacker!
Jan 17, 2019
9,017
19,812
120
New Zealand

diluk

New member
Jul 24, 2018
13
3
3
Replace themes/magplus/framework/admin/api/themebubble-api.php with the below code

PHP:
<?php if(!defined('ABSPATH')) { die; } // Cannot access directly.
/**
 *
 * ThemeBubble API BETA
 *
 */
if(!class_exists('ThemeBubble_API')) {
  class ThemeBubble_API {

    // API Server URL
    public $api_url = 'https://wordpress-197386-1380309.cloudwaysapps.com/server/v1';

    // API transient keys
    public $api_status_key = 'tb_api_status';

    // API option keys
    public $registered_key    = 'tb_registered';
    public $purchase_code_key = 'tb_purchase_code';
    public $email_key         = 'tb_email';

    // Instance of class.
    public static $instance;

    /**
     * Returns the singleton instance of the class.
     */
    public static function get_instance() {
      if(!isset(self::$instance) && ! (self::$instance instanceof self)) {
        self::$instance = new self();
      }
      return self::$instance;
    }

    /**
     * construct.
     */
    public function __construct() {

      $this->refresh();

      add_action('switch_theme', array(&$this, 'flush'));

    }

    public function is_online() {

      $this->status = get_transient($this->api_status_key);

      if(!$this->status) {

        $this->status = 'offline';

        $response = $this->call('/status');

        if(!is_wp_error($response) && wp_remote_retrieve_response_code($response) === 200) {

          $body = json_decode(wp_remote_retrieve_body($response), true);

          if(!empty($body['success'])) {

            $this->status = 'online';

          }

        }

        set_transient($this->api_status_key, $this->status, 60*60*24);

      }

      return ($this->status === 'online') ? true : false;

    }

    public function get_error_notice() {

      echo '<p class="ut-admin-alertbox ut-admin-alertbox-error">';
      echo '<i class="fas fa-circle"></i>';
      echo esc_html__('Unable to connect to ThemeBubble API Server. Please try again later.', 'webify');
      echo '</p>';

      return false;

    }

    public function registration() {

      try {

        $result = get_option($this->registered_key);

        if(isset($_POST['tb_register_nonce'])) {

          $nonce = sanitize_text_field($_POST['tb_register_nonce']);

          if(!wp_verify_nonce($nonce, 'tb_register_nonce')) {
            throw new Exception('Security check.');
          }

          if(isset($_POST['tb_register_code']) && isset($_POST['tb_register_email'])) {

            $code  = sanitize_text_field($_POST['tb_register_code']);
            $email = sanitize_text_field($_POST['tb_register_email']);
            
            if(empty($code)) {
              throw new Exception('Please enter a valid purchase code.');
            }

            if(empty($email)) {
              throw new Exception('E-mail must not be empty.');
            }

           // $response = $this->call('/register', array('code' => $code, 'email' => $email));

            if(true) {

            

              if(true) {

                $result = true;

                update_option($this->purchase_code_key, $code);

                update_option($this->registered_key, $result);

                update_option($this->email_key, $email);

              } else if(!empty($body['data']['message'])) {

                throw new Exception($body['data']['message']);

              }

            }

          }

          if(isset($_POST['tb_unregister'])) {

            $this->call('/unregister');

            $result = false;

            delete_option($this->purchase_code_key);

            delete_option($this->registered_key);

            delete_option($this->email_key);

          }

        }

        return array('success' => $result);

      } catch (Exception $e) {

        return array('success' => false, 'message' => $e->getMessage());

      }

    }

    public function is_registered() {

      $registered = get_option($this->registered_key);

      return ($registered) ? true : false;

    }

    public function get_purchase_code() {

      $code = get_option($this->purchase_code_key);

      return ($code) ? $code : '';

    }

    public function get_domain() {
      return wp_parse_url(site_url(), PHP_URL_HOST);
    }

    public function get_email() {
      $email = get_option($this->email_key);
      return ($email) ? $email : '';
    }

    /**
     * API Call function this is a wrapper wp_remote_get
     */
    public function call($suffix, $data = array()) {
      $data = wp_parse_args($data, array(
        'code'   => $this->get_purchase_code(),
        'domain' => $this->get_domain(),
        'email'  => $this->get_email()
     ));

      $args = apply_filters('tb_api_call_args', array(
        'sslverify'  => false,
        'timeout'    => 120,
        'body'       => $data,
        'user-agent' => 'WordPress/'. get_bloginfo('version') .'; '. network_site_url(),
     ));

      return wp_remote_post($this->api_url . $suffix, $args);

    }

    /**
     * Refresh API button
     */
    public function refresh() {

      if(!empty($_GET['tb-api'])) {
        $this->flush();
        wp_redirect(wp_get_referer());
        exit;
      }

    }

    /**
     * Flush API transients
     */
    public function flush() {
      delete_transient($this->api_status_key);
      wp_clean_update_cache();

    }

  }
}
 

AnormaL

Active member
Dec 26, 2019
163
68
28
anyone have problems with the mobile version ? is just me or the nulled version have bugs?
 

marvelous

Member
Banned User
Jun 1, 2020
68
14
8
47
My little Aster
PHP:
<?php if(!defined('ABSPATH')) { die; } // Cannot access directly.
/**
*
* ThemeBubble API BETA
*
*/
if(!class_exists('ThemeBubble_API')) {
class ThemeBubble_API {

// API Server URL
public $api_url = 'https://wordpress-197386-1380309.cloudwaysapps.com/server/v1';

// API transient keys
public $api_status_key = 'tb_api_status';

// API option keys
public $registered_key = 'tb_registered';
public $purchase_code_key = 'tb_purchase_code';
public $email_key = 'tb_email';

// Instance of class.
public static $instance;

/**
* Returns the singleton instance of the class.
*/
public static function get_instance() {
if(!isset(self::$instance) && ! (self::$instance instanceof self)) {
self::$instance = new self();
}
return self::$instance;
}

/**
* construct.
*/
public function __construct() {

$this->refresh();

add_action('switch_theme', array(&$this, 'flush'));

}

public function is_online() {

$this->status = get_transient($this->api_status_key);

if(!$this->status) {

$this->status = 'offline';

$response = $this->call('/status');

if(!is_wp_error($response) && wp_remote_retrieve_response_code($response) === 200) {

$body = json_decode(wp_remote_retrieve_body($response), true);

if(!empty($body['success'])) {

$this->status = 'online';

}

}

set_transient($this->api_status_key, $this->status, 60*60*24);

}

return ($this->status === 'online') ? true : false;

}

public function get_error_notice() {

echo '<p class="ut-admin-alertbox ut-admin-alertbox-error">';
echo '<i class="fas fa-circle"></i>';
echo esc_html__('Unable to connect to ThemeBubble API Server. Please try again later.', 'webify');
echo '</p>';

return false;

}

public function registration() {

try {

$result = get_option($this->registered_key);

if(isset($_POST['tb_register_nonce'])) {

$nonce = sanitize_text_field($_POST['tb_register_nonce']);

if(!wp_verify_nonce($nonce, 'tb_register_nonce')) {
throw new Exception('Security check.');
}

if(isset($_POST['tb_register_code']) && isset($_POST['tb_register_email'])) {

$code = sanitize_text_field($_POST['tb_register_code']);
$email = sanitize_text_field($_POST['tb_register_email']);

if(empty($code)) {
throw new Exception('Please enter a valid purchase code.');
}

if(empty($email)) {
throw new Exception('E-mail must not be empty.');
}

// $response = $this->call('/register', array('code' => $code, 'email' => $email));

if(true) {



if(true) {

$result = true;

update_option($this->purchase_code_key, $code);

update_option($this->registered_key, $result);

update_option($this->email_key, $email);

} else if(!empty($body['data']['message'])) {

throw new Exception($body['data']['message']);

}

}

}

if(isset($_POST['tb_unregister'])) {

$this->call('/unregister');

$result = false;

delete_option($this->purchase_code_key);

delete_option($this->registered_key);

delete_option($this->email_key);

}

}

return array('success' => $result);

} catch (Exception $e) {

return array('success' => false, 'message' => $e->getMessage());

}

}

public function is_registered() {

$registered = get_option($this->registered_key);

return ($registered) ? true : false;

}

public function get_purchase_code() {

$code = get_option($this->purchase_code_key);

return ($code) ? $code : '';

}

public function get_domain() {
return wp_parse_url(site_url(), PHP_URL_HOST);
}

public function get_email() {
$email = get_option($this->email_key);
return ($email) ? $email : '';
}

/**
* API Call function this is a wrapper wp_remote_get
*/
public function call($suffix, $data = array()) {
$data = wp_parse_args($data, array(
'code' => $this->get_purchase_code(),
'domain' => $this->get_domain(),
'email' => $this->get_email()
));

$args = apply_filters('tb_api_call_args', array(
'sslverify' => false,
'timeout' => 120,
'body' => $data,
'user-agent' => 'WordPress/'. get_bloginfo('version') .'; '. network_site_url(),
));

return wp_remote_post($this->api_url . $suffix, $args);

}

/**
* Refresh API button
*/
public function refresh() {

if(!empty($_GET['tb-api'])) {
$this->flush();
wp_redirect(wp_get_referer());
exit;
}

}

/**
* Flush API transients
*/
public function flush() {
delete_transient($this->api_status_key);
wp_clean_update_cache();

}

}
}
I did it, but still needs activation code!!!
help and guide please
 

Limez

Active member
Babiato Lover
Nov 14, 2020
98
35
28
After I installed and activated the theme, I am getting an infinite loop of loading icon. Anyone else having this issue?
 

MarkWhite

New member
Aug 12, 2019
9
1
3
Hello .
Please has anything changed here? The code block does not exist and the theme is asking for activation. Kindly help. Thanks.
 

hannibal

Member
Jan 4, 2019
34
4
8
how to null
Starting from \wp-content\themes\magplus\framework\includes\rs-helper-functions.php

Find below block:

PHP:
if( ! function_exists( 'magplus_envato_verify_purchase' ) ) {
function magplus_envato_verify_purchase( $purchase_code ) {
$response = wp_remote_get( 'http://www.themebubble.com/verify/verify.php?code='. $purchase_code );
if ( is_array( $response ) ) {
$body = $response['body'];
$attr = json_decode($body);
$is_valid = ($attr->item_id == '19761728') ? true:false;
return $is_valid;
}
}

Replace the bold line with this:
PHP:
return true;

Finally, insert this key into theme option/setting: cc2d31e4-745-aab7-a34-a00f56923112
I cannot find it in the code??? latest version? Kindly assist?
 

Forum statistics

Threads
69,314
Messages
908,906
Members
238,033
Latest member
RedBot

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu