Hostiko - WordPress WHMCS Hosting Theme

Hostiko - WordPress WHMCS Hosting Theme v2.5.2

No permission to download

zerozu

New member
Nov 20, 2019
15
3
3
yea, i cant get this to work. still asking for license. and the explenation on the code to change was confusing to put it mild.
There isnt anyplace in the functions.php file i got in the main directory that contains any

display_construction_page

So if someone could please update what to change.

THanks



open functions.php in main folder
find the code around line 730 to 757

PHP:
function check_theme_xyz()
    {
        if ( is_admin() ) {
            return;
        }
        $plugins_url = plugins_url();
        $val = get_option('enable_full_version');
        if(isset($val) && $val==0){
            wp_enqueue_style( 'popuptlm-remodal', $plugins_url."/AKD-Framework/frameworks/ReduxCore/inc/extensions/tlm/tlm/remodal-default-theme.css",false,'1','all');
            wp_enqueue_style( 'popuptlm', $plugins_url."/AKD-Framework/frameworks/ReduxCore/inc/extensions/tlm/tlm/remodal.css",false,'1','all');
            //echo "<script>alert('Please active your theme.')</script>";
            $popup_content = __('Dear customer, Please Active your theme. <br/>','hostiko');
            $html = '<div class="popup-license remodal" data-remodal-id="popup_license" role="dialog" aria-labelledby="modal1Title" aria-describedby="modal1Desc">
                                  <button data-remodal-action="close" class="remodal-close" aria-label="Close"></button>
                                  <div>
                                    <h2 id="modal1Title">'.__('Theme Registration','hostiko').'</h2>
                                    <p id="modal1Desc">'.
                $popup_content
                .'</p><p align="center"><a href="https://www.youtube.com/watch?v=nzBQf3nnJA8" target="_blank">how to obtain purchase code?</a></p><br><a href="wp-admin/admin.php?page=Hostiko&tab=1#popup_license" class="remodal-confirm">Register now</a><a href="https://themeforest.net/item/hostico-wordpress-whmcs-hosting-theme/20786821" class="remodal-cancel">Buy License</a>
                                  </div>
                                </div>';
            $html .= '<script type="text/javascript" src="'.$plugins_url.'/AKD-Framework/frameworks/ReduxCore/inc/extensions/tlm//tlm/remodal.js"></script>';
            $html .= "<script> var inst = jQuery('[data-remodal-id=popup_license]').remodal(); setTimeout(function(){ inst.open(); }, 2500); </script>";
            echo $html;
        }
    }
    //add_action('init', 'check_theme_xyz',11);
    add_action('wp_footer', 'check_theme_xyz');

Change these codes to this code:

PHP:
update_option( 'enable_full_version', 1 );
 

tuton012

Strive for progress, not perfection
Babiato Lover
Trusted Uploader
May 23, 2019
1,607
2,061
120
Near You
Last Update9 January 20

Changelog:
-Added New Layout No 36

 
  • Like
Reactions: tanierlyons

Romantiq

Active member
Dec 19, 2019
294
88
28
India
can anyone help me to activate elementor theme? its saying purchase code is not valid
 
Last edited:

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