Jump to content

Atomic

Member
  • Posts

    67
  • Joined

  • Last visited

Everything posted by Atomic

  1. Cheers Brian, the last hook was what I was after. Works perfectly.
  2. Greetings, I would like Announcements to be viewable by logged in clients only. Is this possible with a ClientAreaPage hook? And would anyone have code they could share? It's just that we publish some of the Announcements on our blog and I don't want duplicated content penalties.
  3. Thank you both. I've had to put this on the backburner as we are in the middle of migrating our cloud. There goes my sleep for the next 8 weeks.
  4. Anyone got any ideas? WHMCS support gave me a nonsense answer.
  5. Does WHMCS have native support for Memcached? Most applications require some additional configuration to get it working.
  6. I'm looking for a somewhat complex Review Module which outputs some part of the review (thumbnail) on a non-WHMCS page. Please post of you are interested and I will PM the deets.
  7. Thank you sir. Going to attempt this tomorrow. Really appreciate the time especially on Christmas Day!
  8. Got it. But if I wanted to use something custom would I put the image path in the array? I highly doubt things like cPanel and Wordpress exist in Glyphicos or FontAwesome?
  9. Thanks. Sorry to be a dunce but I don't seem to have a "glyphicon" folder?
  10. We are going to be rapidly expanding our Knowledgebase with up to 500 articles and would like to make the layout a little more appealing. Is there a way to add custom icons? For example instead of a folder icons we'd like a WordPress icon. An email icon for Email articles etc. Merry Christmas!
  11. We use a custom hook that displays the departments and statuses. I'll just make sure our guys get used to the new layout.
  12. Ideally I just want Open, Answered, Closed. Until now we've used Kayako and it's hard getting techs used to check "Customer Reply". A few times now they've missed client updates and it's p!ssing me off.
  13. I love it when I make a post and then automatically get an idea and fix the problem. Looked in the database and found a bunch of ghost tickets.
  14. We switched our WHMCS installation to a new domain on a new server and now we are seeing some inconsistencies with the amount of tickets being shown as "Open" and tickets that are actually open. So in Linux Support it says (7) but we have 3 Open tickets and in Windows Support it also says (7) but we have 2 open tickets. Also both departments show (1) for In Progress but it's empty. Any ideas on how to resolve?
  15. Hey Brian, one of my techs just fixed this. Under Settings > Mail we had no SSL and "localhost" set. We had to put the server hostname, SSL port and enable SSL. This system was running on cPanel before and now it's Plesk so perhaps there is some internal way that cPanel handles encrypted mail that differs to Plesk. Can't be bothered to dig into now but it works. Thanks for looking though!
  16. I had a hook made years ago that sends an email to techs when a note is made. We just moved our installation to a new server and new domain. WHMCS version is the same (v6) and the only change was a move from PHP 5.2 to 5.6. This is the code, can anyone see any problems with it? <?php if (!defined("WHMCS")) die("This file cannot be accessed directly"); function emailonaddticketnote_SendEmail($fromemail,$toemail, $fromname, $toname, $subject, $message) { global $CONFIG; if($CONFIG['LogoURL']) { $sendmessage = '<p><a href="'.$CONFIG['Domain'].'" target="_blank"><img src="'.$CONFIG['LogoURL'].'" alt="'.$CONFIG['CompanyName'].'" border="0"></a></p>'; } $sendmessage .= '<font style="font-family:Verdana;font-size:11px"><p>'.$message.'</p>'; $mail = new PHPMailer(); $mail->From = $fromemail; $mail->FromName = $fromname; $mail->Subject = $subject; $mail->CharSet = $CONFIG['Charset']; if($CONFIG['MailType'] == "mail") { $mail->Mailer = "mail"; } elseif($CONFIG['MailType'] == "smtp") { $mail->IsSMTP(); $mail->Host = $CONFIG['SMTPHost']; $mail->Port = $CONFIG['SMTPPort']; $mail->Hostname = $_SERVER['SERVER_NAME']; if($CONFIG['SMTPSSL']) { $mail->SMTPSecure = $CONFIG['SMTPSSL']; } if($CONFIG['SMTPUsername']) { $mail->SMTPAuth = true; $mail->Username = $CONFIG['SMTPUsername']; $mail->Password = decrypt($CONFIG['SMTPPassword']); } $mail->Sender = $CONFIG['Email']; $mail->AddReplyTo($fromemail, $fromname); } $mail->AddAddress($toemail, $toname); $message_text = str_replace("</p>", "\r\n\r\n", $sendmessage); $message_text = str_replace("<br>", "\r\n", $message_text); $message_text = str_replace("<br />", "\r\n", $message_text); $message_text = strip_tags($message_text); $mail->Body = $sendmessage; $mail->AltBody = $message_text; $mail->Send(); $mail->ClearAddresses(); return true; } function emailonaddticketnote($vars) { global $CONFIG; $companyname = $CONFIG['CompanyName']; $whmcsurl = $CONFIG['SystemURL']; $readmins = mysql_query("SELECT `firstname`,`lastname` FROM `tbladmins` WHERE `id`='".$vars['adminid']."'"); $data = mysql_fetch_array($readmins); $query = mysql_query("SELECT `id` FROM `tbladminroles` WHERE `supportemails`='1'"); while ($row = mysql_fetch_assoc($query)) { $queryb = mysql_query("SELECT `email`,`firstname`,`lastname` FROM `tbladmins` WHERE `roleid`='".$row['id']."'"); while ($result = mysql_fetch_assoc($queryb)) { $ticketurl = $whmcsurl."/admin/supporttickets.php?action=view&id=".$vars['ticketid']; $message = "Hello ".$result['firstname'].",<br /><br />A note has been added to ticket #".$vars['ticketid']."<br /><br />Note: ".$vars['message']."<br />By admin: ".ucwords($data['firstname']." ".$data['lastname']."<br /><br />To view the ticket please click here:<br/><a href='".$ticketurl."'>".$ticketurl."</a><br /><br />Thank You,<br>".$companyname); $fullname = $result['firstname'].' '.$result['lastname']; $email = $result['email']; emailonaddticketnote_SendEmail($email,$email, $companyname, $fullname, 'Note added to ticket #'.$vars['ticketid'], $message); } } } add_hook("TicketAddNote",1,"emailonaddticketnote"); Cheers. It's a useful hook, feel free to use it and make a note and see if it works. If it does then there is a misconfig in our system due to the changeover.
  17. Any chance you feel like sharing the template code and hook? Hate to ask as you've been more than helpful.
  18. I want to add all the clients and have everyone start using it on the same day (so we can retire the old system without confusion). I guess I'll just mail mail and tell people to reset using the email address they received the mass mail. Or I could do a search for a client group and load them all up in a browser and do some mad clicking for a few hours. By the way, is it possible to add multiple client groups? I see multiple requests and it seems no-one ever made a module.
  19. So EzChimp and the mod from QiQ both seem dead. Is this the only working module for v6: https://forum.whmcs.com/showthread.php?108954-New-Mailchimp-addon-with-nice-Functions Anyone using anything else?
  20. Or at least all clients in a separate group. We are merging two brands and one doesn't have WHMCS so all 1000 clients need to be added and login details sent. Is there any way to do this? I'd prefer that everyone was sent login details on the same day so sending the login info as we add clients is not optimal. And adding all these clients might take a few months.
  21. How did you get the text displaying under the operating system? That would certainly be preferable.
×
×
  • 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