Jump to content
Sign in to follow this  
Guest Haitham

ClientX not working with wordpress & Dns Manager module how to fix it?

Recommended Posts

Guest Haitham

Dears,
I appreciated your help if you can fix this issue:

I purchased some modules:
1- DNS Manager
2- WordPress Manager
3- SitePad Hook.

All these modules should appear if the customer has an active product/service in the product/service details page.

Example:
If the customer has a plan for WordPress, then if open the product/service details, he will see the tab of WordPress Manager belongs to the other services' tabs, but if he has a web hosting service, he will not see the WordPress Manager service tab because it is not included in his plan.
Note: it is showing normal if use the template "six".

Thanks for your cooperations

Share this post


Link to post
Share on other sites

Hi Guest Haitham,
Please follow these steps to add link over product detail page.

1) Go to following path -> "whmcsdir/templates/clientx/"
2) Open clientareaproductdetails.tpl
3) Find the following block of code its on line number 86 or 85
    {if $configoptionsupgrade}
        <li class="">
            <a href="upgrade.php?type=configoptions&amp;id={$id}">
                <div class="tbs-icone"> <i class="fas fa-cloud-upload-alt"></i></div>
                    {$LANG.upgradedowngradeconfigoptions}
            </a>
        </li>
    {/if}
4) Now add following blocks of code after it.
{if $dns_manager_is_active eq 'true'}
    <li class="">
        <a href="{$dns_manager_link}">
            <div class="tbs-icone"> <i class="fas fa-server"></i></div>
                {$LANG.dnsManageBox}
        </a>
    </li>
{/if}
{if $groupname eq 'Managed WordPress'}
    <li class="">
        <a href="index.php?m=WordpressManager">
            <div class="tbs-icone"> <i class="fa fa-wordpress"></i></div>
               {$LANG.wordpressManageBox}
        </a>
    </li>
{/if}

5) Now add language variable so that it will work with multiple language.

i) Go to Following path -> "whmcsdir/lang/overrides/"
ii) Open english.php
iii) add following code at the end of file

$_LANG['dnsManageBox'] = "DNS Manage";
$_LANG['wordpressManageBox'] = "WordPress Management";

Note-> Same process will follow for other languages.

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...