Jump to content

regrettably

Retired Forum Member
  • Posts

    3
  • Joined

  • Last visited

About regrettably

regrettably's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. It worked! Thank you very much! I'v spend weeks trying to figure this out! I'm also trying to setup a "foreach" for the domains displayed. Here is what I got: {foreach key=num item=service from=$services} {$domain} {foreachelse} {$LANG.norecordsfound} {/foreach} Do you know where I would find and get "$services" in the database? Where $services would equal the number of products and services a client has? Thanks again for all your help!
  2. Thanks for the assistance, but I'm still having trouble displaying assigned IPs as well as domains. Here's what I go: <?php define("CLIENTAREA",true); require("dbconnect.php"); require("includes/functions.php"); require("includes/clientareafunctions.php"); $pagetitle = $_LANG['clientareatitle']; $pageicon = "images/support/clientarea.gif"; $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>'; $breadcrumbnav .= ' > <a href="mypage.php">My Page</a>'; initialiseClientArea($pagetitle,$pageicon,$breadcrumbnav); if ($_SESSION['uid']) { # User is Logged In - put any code you like here $query="SELECT * FROM tblhosting WHERE id='".$_SESSION['uid']."'"; $result = mysql_query($query) or die('Error, query failed'); while ($data = mysql_fetch_array($result)) { $assignedips = $data['assignedips']; $domain = $data['domain']; } $smartyvalues['assignedips'] = $assignedips; $smartyvalues['domain'] = $domain; # To assign variables in Smarty use the following syntax. # This can then be used as {$variablename} in the template //$smartyvalues["variablename"] = $value; # Define the template filename to be used without the .tpl extension $templatefile = "mynewtemplate"; outputClientArea($templatefile); ?> {$assignedips} {domain} "{$assignedips}" is not showing up at all and "{domain}" is just showing a random domain in the database that is not related to an individual account. Any help on this matter is greatly appreciated! Thanks again!
  3. Hey everyone, I'm trying to create a few new pages in WHMCS (http://wiki.whmcs.com/Creating_Pages) and what I would like to do is display some client product details. For example I would like to display clients assigned IPs and hostname when they visit mydomain.com/whmcs/newpage.php. Unfortunately WHMCS doesn't seem to pick up product details outside of clientareaproductdetails.tpl and clientareaproducts.tpl. Is there a way for me to display clients hostname, IPs aswell as other product details outside of the clientareaproductdetails.tpl template? Thanks in advance!
×
×
  • 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