Ho provato ma senza esito.
da premettere che sto usando il sistema come sul doc che ti ho linkato sopra. Questo e il codice, dove sbaglio?
Quali file del template vanno anche messi nella cartella del template di whmcs?Codice:<?php define("CLIENTAREA",true); //define("FORCESSL",true); # Uncomment to force the page to use https:// require("dbconnect.php"); require("includes/functions.php"); require("includes/clientareafunctions.php"); $pagetitle = $_LANG['clientareatitle']; $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>'; $breadcrumbnav .= ' > <a href="mypage.php">My Page</a>'; initialiseClientArea($pagetitle,'',$breadcrumbnav); # To assign variables to the template system use the following syntax. # These can then be referenced using {$variablename} in the template. $smartyvalues["variablename"] = $value; # Check login status if ($_SESSION['uid']) { # User is logged in - put any code you like here # Here's an example to get the currently logged in clients first name $result = mysql_query("SELECT firstname FROM tblclients WHERE id=".(int)$_SESSION['uid']); $data = mysql_fetch_array($result); $clientname = $data[0]; $smartyvalues["clientname"] = $clientname; } else { # User is not logged in } # Define the template filename to be used without the .tpl extension $templatefile = "homepage"; outputClientArea($templatefile); ?> </body> <div id="header"> <div id="wrapper1"> <object type="application/x-shockwave-flash" data="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" width="100%" height="280"> <param name="wmode" value="transparent" /> <param name="movie" value="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/header.swf" /> </object> </div> </div> <?php endif; ?> <div id="footer"> <div class="scroll"> <a href="#" onclick="scrollToTop();return false;"><img src="templates/<?php echo $this->template ?>/images/top.png" width="24" height="15" alt="top" /></a></div> <jdoc:include type="modules" name="footerload" style="none" /> <div class="copy"> <?php defined( '_JEXEC' ) or die( 'Restricted access' ); global $_VERSION; require_once('libraries/joomla/utilities/date.php'); $date = new JDate(); $config = new JConfig(); ?> Copyright © <?php echo $date->toFormat( '%Y' ) . ' ' . $config->sitename;?>. Designed by <a href="http://www.mysite.com/" title="Visit mysite.com!" target="blank">mixwebtemplates</a> </div> </div> <div id="debug"> <jdoc:include type="modules" name="debug" style="none" /> </div> </div> </body> </html>


LinkBack URL
About LinkBacks


Rispondi Citando

Segnalibri