neemisha Posted November 14, 2007 Share Posted November 14, 2007 I m new to whmcs. On my site template I m applying the login form for the whmcs site which we are provided in integration code. now I need to display the status, whether logged in or not in whmcs, on my site. Do the whmcs site provide a code or any function which displays the logged in status on my site for whmcs. thanks 0 Quote Link to comment Share on other sites More sharing options...
Chrisw Posted November 20, 2007 Share Posted November 20, 2007 I'm curious if any examples exist as well. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted November 20, 2007 Share Posted November 20, 2007 If the page you want this on is within the WHMCS system, you can use Smarty code to do this easily. {if $loggedin} You are logged in {else} You are not logged in {/if} If it's not within the WHMCS system, I'm not sure how to go about it. 0 Quote Link to comment Share on other sites More sharing options...
chaloupe Posted November 20, 2007 Share Posted November 20, 2007 That could be a great addon to our website also for when user are already login. I look forward to be able to intergrate this to our website. Best Regards, 0 Quote Link to comment Share on other sites More sharing options...
magga Posted November 23, 2007 Share Posted November 23, 2007 I think you could do it like this: <?php require("dbconnect.php"); require("includes/functions.php"); $pagetitle = $_LANG['clientareatitle']; $pageicon = "images/support/clientarea.gif"; $breadcrumbnav=''.$_LANG['globalsystemname'].''; require("init.php"); if ($_SESSION['loggedinstatus']=="true") { You are logged in } else { You are not logged in } # Define the template filename to be used without the .tpl extension $templatefile = "homepage"; /* To assign variables in Smarty use the following syntax. $smarty->assign('variablename', $value); This can then be used as {$variablename} in the template */ include("display.php"); ?> 0 Quote Link to comment Share on other sites More sharing options...
Chrisw Posted November 24, 2007 Share Posted November 24, 2007 That is to create a new page inside the WHMCS system. In my case, I would like to expand the my remote login form to change to a message with link on our site if the user is logged in. WHMCS is installed on the same server, but different hosting account. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.