Jump to content

edwardtate

Member
  • Posts

    6
  • Joined

  • Last visited

Everything posted by edwardtate

  1. Hello all. I've recently decided to move everything over to WHMCS as billing was beginning to become a real issue. I'm wondering if there's a simple way to assign a new customer to an existing hosting account? Thanks.
  2. I know this thread is old and outdated, but seeing as I came across it through a Google Search my input may still be useful. Take your logout.tpl file, delete all it's contents, and just add the following: {php} header('Location: /YourIndexFolder/'); {/php} Hope this helps some people; ~ Edward Tate.
  3. Hello, I already have WHMCS installed on my web server, but I'm making a new website for my hosting company. My question is am I allowed to install WHMCS locally just for getting everything ready for integration? Cheers, ~ Eddie.
  4. Firstly, you need to create a file, name it anything you want, as long as it's not overwriting a system file, containing the following: <?php require("dbconnect.php"); if ($_SESSION['uid']) { $result = mysql_query("SELECT firstname FROM tblclients WHERE id='".$_SESSION['uid']."' LIMIT 1;"); while($row = mysql_fetch_array($result)) echo "<p id='login'>".$_LANG['welcomeback'].', '.$row['firstname'].' <a href="/clients/clientarea.php"><strong>'.$_LANG['clientareanavdetails'].'</strong></a> <a href="/clients/logout.php"><strong>'.$_LANG['logouttitle'].'</strong></a></p>'; } else{ echo "<p id='login'>".$_LANG['please'].' <a href="/clients/clientarea.php" title="Login"><bold>'.$_LANG['loginbutton'].'</bold></a> '.$_LANG['or'].' <a href="/clients/register.php" title="Register"><bold>'.$_LANG['clientregistertitle'].'</bold></a></p>'; } ?> And place it in the WHMCS directory. Then, on whatever page you want, add this line where you want the output to be displayed: <?php include('your/WHMCS/directory/fileyounamed.php'); ?> That will check to see if a user is logged in or not, and displays the appropriate greeting. You can change the text displayed by editing WHMCS/lang/which-ever-language-file-you-are-using.php, and doing a quicksearch in the file for example: "clientareanavdetails".
  5. Hello, I've been digging through the forums for a few hours now, and with no luck. I saw a lot of similar topics, where the solutions worked for others, but they aren't working for me. Basically, I've built my websites homepage and some other pages outside of the WHMCS installation folder, and I'd like to be able to display on my homepage whether a user is already logged on, and if so display a welcome message and have a link to the client area, and if not, a welcome message to the guest and a link to the login page. I know there are a lot of forum posts about this, but they are outdated and none of the methods worked for me. I'm using WHMCS version 5.1.3. I know it's a pain, and I feel slack for asking, but I've been stumped for hours upon hours, if someone could please show me some sample code that works with later versions, that'd be absolutely fantastic. Thanks sincerely in advance. ~ Eddie.
×
×
  • 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