WHMCS Version 5.1 Fixes for “Sticky Client Notes”

WHMCS Version 5.1 contains a couple of simple administration template bugs that make using the “Sticky Notes” difficult at best.  I just downloaded a fresh copy of WHMCS 5.1 to make sure that this wasn’t already fixed, and it’s not.  I’m creating this post so that you can apply the fix yourself and make use of the sticky notes if you wish.

As it stands on the “V4” template, which I prefer, any ticket viewed with a sticky note will push all contents of the ticket down below the end of the left side-bar.  If you use the “V4” administration template and have tried sticky notes, you’ve surely seen this yourself.  The second issue with the templates affects the “V4”, “Blend”, and “Original” administration templates.  When viewing a ticket with a “Sticky Note” the edit button does not link to the proper location as it does not contain the client ID.

The fix for the CSS issue on the “V4” template is simple, and requires removing “clear:both;” from this block of code in the /admin/templates/v4/viewticket.tpl file.  I have bolded the text that needs removed:

{if $clientnotes}
<div style=”clear:both;overflow:auto;margin:15px 0;padding:5px; max-height:150px;border:2px dashed #e0e0e0;border-right:0;background-color:#fff;-moz-border-radius: 6px;-webkit-border-radius: 6px;-o-border-radius: 6px;border-radius: 6px;”>
{foreach from=$clientnotes item=note}

After the modification:

{if $clientnotes}
<div style=”overflow:auto;margin:15px 0;padding:5px; max-height:150px;border:2px dashed #e0e0e0;border-right:0;background-color:#fff;-moz-border-radius: 6px;-webkit-border-radius: 6px;-o-border-radius: 6px;border-radius: 6px;”>
{foreach from=$clientnotes item=note}

The second fix is simple as well, and involves making a change in the very same file, although it applies to the “V4”, “Blend”, and the “Original” templates.  The change is another simple removal which I have bolded:

<a href=”clientsnotes.php?userid={$clientsdetails.userid}&action=edit&id={$note.id}”>

After the modification:

<a href=”clientsnotes.php?userid={$userid}&action=edit&id={$note.id}”>

Once these modifications have been made, you will be able to use the sticky notes without experiencing any display issues.  You will also be able to directly edit/modify the sticky note using the “edit icon” on the tickets page rather than having to navigate to the client page, then their notes, then editing the note.

Share

Leave a Reply

Your email address will not be published. Required fields are marked *