Jump to content

Jomart_123

Member
  • Posts

    8
  • Joined

  • Last visited

About Jomart_123

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Jomart_123's Achievements

Junior Member

Junior Member (1/3)

1

Reputation

  1. Thank you @LosBooom your code worked just fine {$sslStatus = WHMCS\Domain\Ssl\Status::factory($client->id, $site.domain)} {if $sslStatus == 1} {assign var="prot" value="https"} {else} {assign var="prot" value="http"} {/if}
  2. I'm doing some minor changes to our client clientareahome.tpl to display list of available hosting services associated with this user no client area home page, using the {$customerHostingData} that is already available on the page through a hook, <?php use Illuminate\Database\Capsule\Manager as Capsule; function hook_pullingLastCustomerWebsite($vars){ $client = Menu::context('client'); $hostingData = Capsule::table('tblhosting') ->where('userid', $client->id) ->where('domain','<>','') ->select('id','domain','domainstatus','packageid') ->orderBy('id', 'DESC') ->get(); $encodedata = json_encode($hostingData); $decodedata = json_decode($encodedata, true); return array("customerHostingData" => $decodedata); } add_hook("ClientAreaPageHome", 1, "hook_pullingLastCustomerWebsite"); i was able to loop through the {$customerHostingData} array as {$site} and display all the information i need my customers. This is my $customerHostingData as provided by WHMCS default installation array(5) { [0]=> array(4) { ["id"]=> int(1856) ["domain"]=> string(19) "example.net" ["domainstatus"]=> string(6) "Active" ["packageid"]=> int(1) } [1]=> array(4) { ["id"]=> int(1851) ["domain"]=> string(17) "example2.net" ["domainstatus"]=> string(6) "Active" ["packageid"]=> int(54) } [2]=> array(4) { ["id"]=> int(1481) ["domain"]=> string(12) "example3.net" ["domainstatus"]=> string(6) "Active" ["packageid"]=> int(54) } [3]=> array(4) { ["id"]=> int(1320) ["domain"]=> string(17) "example4.com" ["domainstatus"]=> string(6) "Active" ["packageid"]=> int(54) } [4]=> array(4) { ["id"]=> int(667) ["domain"]=> string(24) "example5.com" ["domainstatus"]=> string(6) "Active" ["packageid"]=> int(54) } } Now i have implemented a login button on every hosting account on the list to redirect customer to their website dashboard URL URL: can be http or https://{$site.domain}/dashboard/login the problem that i'm facing with the code above is that the {$customerHostingData} array do not contain any information about the ssl status on account, to basically i cant check if the ssl is active or not? So how can i make this type of check to determine which hosting account on the array has active SSL certificate? Any ideas?
  3. you are my saviour, Thanks to you, i have just completed my new client area page. All the best
  4. im pulling data from DB to pass them to smarty clientareahome.tpl from a hook <?php use Illuminate\Database\Capsule\Manager as Capsule; function hook_pullingCustomerData($vars){ $customerID = $_SESSION['uid']; $hostingData = Capsule::table('tblhosting') ->where('userid', $customerID) ->get(); return array("customerHostingData" => $hostingData); } add_hook("ClientAreaPage", 1, "hook_pullingCustomerData"); on the template file i have this {$customerHostingData.domain} im getting an empty space, instead of the domain name, Any ideas???
  5. im trying to build a new customer home page (clientarea.php) as per image bellow, i need to pull customers data and add them to area marked in red, some of my customers have multiple website hosted on my server so i need to give them an option to select deferent websites (from the drop up menu) and to display data accordingly. I think all the data that i need are stored on tblhosting + tbldomains tables but im not sure how to make every thing to work (using hooks, models ????? if models = Where to store the model files??? ) and then i need to know how to pass these data to clientareahome.tpl file. IM TOTALY STOCKED , ... I hope someone have the time to look this up for me? ASAP
  6. Hello everyone, i've been searching the internet for a script installer like softaculous but i want it to install a custom made CMS that we have developed internally. im ont sure if other members in this forum are facing the same issue. Is there is any auto installer script for custome CMS? (im using whmcs + cPanel) Thank you
  7. Hi every body, i have created a hosting plan with subdomain from WHMCS, So our customers host there website under a subdomain. The thing im struggling with is where dose WHMCS store the subdomain name value entered by the user, CANT FIND IT ANY WHERE. ANY IDEAS? Thanx
  8. hi everybody, i'm still new on customizing WHMCS. Im trying to code a website installer wizard to help unskilled users to setup there hosting and domain name and install our custom CMS and. The wizard have 3 steps Choose hosting package Register a domain Install CMS for step 1 and 2 the wizard should check if current loggedin client has an active hosting plane and domain name, then i can echo out proper massage on the wizard. for step 3 i need to creat a custome table column to mark if the client has already installed my CMS or not (1= installed, 0= not installed). NOTE: i coded HTML markup of the wizard (see attached image) directly on clientareahome.tpl page (becouse this is the only way i could make). What i need to move on is : Connect to database retreave data from database create conditions and if statement to show propers massages on the wizard. Unfortunately my knowladge of WHMCS stope at this point, ... any ideas on how to do these???? Thank you
×
×
  • 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