Okay I want to make 2 email template into one
Dedicated server Linux and Dedicated server windows.
Question 1, How do it make it look at the correct Configurable Option
Question 2, I'm gusseting windows would be the easiest option if we can use wild card?
if we can not use if tag is there any other way?
Yes it was with the email template
This is how it should look.
A new support ticket has been flagged to you.
Ticket #: {$ticket_tid}
Client Name: {$client_name} (ID {$client_id})
Department: {$ticket_department}
Subject: {$ticket_subject}
Priority: {$ticket_priority}
----------------------
{$ticket_message}
----------------------
{$whmcs_admin_url}supporttickets.php?action=viewticket&id={$ticket_id}
I have notice since the last update when a ticket is flaged to me the auto email is empty.
A new support ticket has been flagged to you.
Ticket #:
Client Name: (ID )
Department:
Subject:
Priority:
----------------------
----------------------
supporttickets.php?action=viewticket&id=
This is the email I get.
Okay I'm have an issue with my website looking to see if the user is logged in when browsing site.
I have tired lots of ways.
Lets say my WHMCS is in /home/username/subdomains/whmcsfolder/
and website is in /home/username/public_html/
I have tired to do this many ways but does not work if I put this in my WHMCS folder it works fine but in my public_html it does not seem to wanna work?
when in web folder it just shows the login box even if already login!!
<?php
require("/home/username/path/to/whmcs/dbconnect.php");
if ($_SESSION['uid']) {
$query="SELECT * FROM tblclients WHERE id='" .$_SESSION['uid'] . "'";
$result = mysql_query($query) or die(mysql_error());
if($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
$clientsdetails['firstname']=$row['firstname'];
$clientsdetails['lastname']=$row['lastname'];
$clientsdetails['email']=$row['email'];
}
echo "
<ul>
<li>Welcome back ".($row['firstname']). " ". ($row['lastname']). "!</li>
<li><a href=\"https://domain.com/clientarea.php\" title=\"My Dashboard\">My Dashboard</a></li>
<li><a href=\"https://domain.com/clientarea.php?action=changepw\" title=\"Change Password\">Change Password</a></li>
<li><a href=\"https://domain.com\" title=\"Logout\" style=\"border: none;\">Logout</a></li>
</ul>
";
} else {
echo '<form method="post" action="https://domain.com/dologin.php">
<fieldset style="margin: 5px;">
<legend><li class="nav-header">Login</li></legend>
<input type="hidden" name="token" value="<Taken Ouy>" />
<label for="username">Email Address:</label>
<input type="text" id="username" name="username" /><br />
<label for="password">Password:</label>
<input type="password" name="password" id="password" /><br />
<button type="submit" class="btn btn-success">Login</button></form>';