Jump to content

Custom page added design not work properly


Pradip

Recommended Posts

Dear,

I have added my custom page in whmcs directory and its mention as a vps.php and I used bellow code for assign vps.tpl

but in home its showing width 100% but in custom page its not showing 100% you can compare with namastehost.com and namastehost.com/vps.php

code provided bellow.

<?php

use WHMCS\ClientArea;
use WHMCS\Database\Capsule;

define('CLIENTAREA', true);

require __DIR__ . '/init.php';

$ca = new ClientArea();

$ca->setPageTitle('Cheap VPS plan');


$ca->initPage();


$ca->setTemplate('vps');

$ca->output();

Link to comment
Share on other sites

5 hours ago, Pradip said:

I have added my custom page in whmcs directory and its mention as a vps.php and I used bellow code for assign vps.tpl

as this is a custom template (e.g obtained from a developer - AKD), then you should really direct customisation questions to them as they will know their templates better than anyone else.

5 hours ago, Pradip said:

but in home its showing width 100% but in custom page its not showing 100% you can compare with namastehost.com and namastehost.com/vps.php

then my first thought would that there is something defined in header.tpl that applies to index.php or homepage.tpl that is not getting utilised in custom pages.

at a guess, it will be the line below and you'll need to add $filename eq 'vps' to the IF statement as another condition.

{if $filename eq 'index' || $filename eq 'web-hosting' || $filename eq 'privacy-policy' || $filename eq 'tos' || $filename eq 'reseller-hosting' || $filename eq 'shared-hosting' || $filename eq 'vps-hosting' || $filename eq 'dedicated-hosting'|| $filename eq 'contact' || $filename eq 'domainchecker' || ( $filename eq 'clientarea' && !$loggedin) || $filename eq 'logout' || $filename eq 'pwreset' || $filename eq 'logintwofa' || $filename eq 'cart'}

but if that's not right, AKD should know what the solution is.

Link to comment
Share on other sites

4 minutes ago, brian! said:

as this is a custom template (e.g obtained from a developer - AKD), then you should really direct customisation questions to them as they will know their templates better than anyone else.

then my first thought would that there is something defined in header.tpl that applies to index.php or homepage.tpl that is not getting utilised in custom pages.

at a guess, it will be the line below and you'll need to add $filename eq 'vps' to the IF statement as another condition.


{if $filename eq 'index' || $filename eq 'web-hosting' || $filename eq 'privacy-policy' || $filename eq 'tos' || $filename eq 'reseller-hosting' || $filename eq 'shared-hosting' || $filename eq 'vps-hosting' || $filename eq 'dedicated-hosting'|| $filename eq 'contact' || $filename eq 'domainchecker' || ( $filename eq 'clientarea' && !$loggedin) || $filename eq 'logout' || $filename eq 'pwreset' || $filename eq 'logintwofa' || $filename eq 'cart'}

but if that's not right, AKD should know what the solution is.

in vps.php or on vps.tpl? 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated