Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


brian! last won the day on December 8

brian! had the most liked content!

Community Reputation

1,718 Excellent

About brian!

  • Rank
    WHMCS GearHead

Recent Profile Visitors

20,605 profile views
  1. brian!

    Different signatures on ticket depts

    another option would be to ignore using any hooks and just add the custom signatures in the email templates in Smarty... {if $ticket_department eq "Technical Support"}Brian @ TechSupport{elseif $ticket_department eq "Billing"}Brian @ Billing{/if} as these templates are stored in the database, your changes should be safe from WHMCS upgrades (unless they mess it up!)... and you should be able to add your HTML into the output... using this may come unstuck if you have multiple support operators as I don't think the template can determine which admin is replying to a ticket. as with all Smarty code in the email templates, use the Source Code button (via help) to enter/edit your signature code. is that the answer you had in mind?
  2. brian!

    Different signatures on ticket depts

    can you give an example of what you mean... i'll have forgotten about this in four weeks time - best to carry on while it's already in my head... break can start tomorrow! πŸ“…
  3. brian!

    Different signatures on ticket depts

    goddammit - i'm supposed to be on holiday, but this question intrigued me... like a moth to a flame! πŸ¦‹ you could use a hook to tweak the $signature variable on the supporttickets page in the admin area based on the dept ID value (you could do it by department name if you had to, but it's quicker for me to use ID). <?php # Ticket Signature Based on Support Department Hook # Written by brian! function ticket_signature_by_department_hook($vars) { if ($vars['filename'] == 'supporttickets') { $deptid = $vars['deptid']; if ($deptid == '1') { // Technical Support $signature = "Brian @ Technical Support"; } elseif ($deptid == '2') { // Billing $signature = "Brian @ Billing"; } if ($signature) { return array("signature" => $signature); } } } add_hook("AdminAreaPage", 1, "ticket_signature_by_department_hook"); ?> so this can overwrite the support ticket signature defined in your admin user account... for simplicity, i'm assuming there is only you, but you could easily expand the hook to get the adminid of the admin user and alter the signature accordingly for each admin user... the modified signature will be used in the support ticket emails generated via the supporttickets page too. in that case, i'll sell you the above hook for $199.99 - a bargain! πŸ˜› now, unless you tell me this hook has a fatal flaw and doesn't work, I really am going to disappear for my break! πŸŽ„
  4. brian!

    Email History Homepage Panel

    i'm supposed to be on holiday! πŸŽ„ no effort... using the original hook version... ->addChild($key)->setLabel('span class="xyz">'.fromMySQLDate($child->date,true,false).'</span> - '.$child->subject)->setUri('viewemail.php?id='.$child->id)->setAttribute('target','_blank'); not really - the code in the template is just a way of displaying the array that you're creating in the hook - you could give a child item a css class by using setClass in the hook, but it would apply to the entire chiild, not a particular part of it, e.g the date.
  5. brian!

    SIdebar to Remove & Show in Clientarea

    i'm supposed to be on holiday! πŸŽ„ then just remove them with a hook - once removed, the page width will adjust... I think nearly all of the sidebars in the client area have unique names, so you shouldn't particularly need to check that they're clients before removing them because only clients can get into the clientarea pages where these sidebars are.. though even if you do, there are plenty of navigation hook examples of checking if a client is logged in posted in the community... though generally speaking, they're only really relevant when you want to hide/show a sidebar to one group (clients / non clients) that is available to everyone, e.g knowledgebase / announcements sidebars etc. the short answer is that you cannot... long answer is that you theoretically possibly can, but only with an extraordinary amount of coding that I wouldn't bother to try to code even if wasn't near Christmas - and not even for money! the real answer is that you're going to have to recreate the links in the appropriate template - basically, those sidebars are just links and there's nothing special about them, *except* that most of them are conditional - so cpanel/webmaill links appear on cpanel products; upgrade/downgrade only appears if the product is upgradeable; up/down options only shows in the configurable options are upgradeable; cancel link only shown if enabled in general settings etc. to answer a question before you even ask it - "are these conditions publicly listed anywhere?" - the answer is no, you'll have to figure them out yourself... welcome to WHMCS. πŸ™‚ that page from your screenshot is basically covered by at least two templates - clientareaproductdetails.tpl is generally used if it's a non-cpanel product; if it's a cpanel product, that will use /modules/servers/cpanel/templates/overview.tpl - there will be enough Smarty variables available to the overview template to recreate the conditions (and i've just doubled-checked, so I know that for a fact!)... so then it's just a case of editing the template and creating the appropriate output, e.g I don't suppose you would recreate the look of the sidebars, just accommodate the links in their own table/div etc... so you're just looking at using a lot of if statements to check various conditions, and if true, show that link/info. if you're going to start modifying overview.tpl, then read the link below about adding a custom version to your template... https://docs.whmcs.com/Working_with_Module_Templates
  6. 206470-OZTD7-H-230b.png

    ... and that's it from me for 2018 - i'm taking a break from here for Christmas & New Year! πŸŽ„

    i'm thus avoiding both the 7.7 beta releases and the possibility of Chris enabling the Christmas lights and animated snow effect again. ❄️

    with the v7.7 betas, there should be more than the usual minimal WHMCS staff floating around this place to answer the threads -

    so take advantage of them being around, because once the beta testing is over, they'll disappear back into the ether as usual! πŸ™„

    if you want to ensure that I look at a particular thread on my return, just mention me with @brian! and i'll get a notification.

    I expect to be back here around the second week of January 2019... enjoy yourselves everyone!


    P.S - for anyone yet to have paid what they owe me, the PayPal account and bank don't close over the festive period, so I will look forward to receiving payments - I won't forget if you don't pay!

    1. WHMCS ChrisD

      WHMCS ChrisD

      Ha! Using an image to avoid the filters that's evil πŸ˜› Have a great break @brian!

  7. brian!

    Single addon for single product

    currently not from the settings - you'd need an action hook that would detect (e.g query the database) if the user already had this particular active addon, and if so, remove that addon as a purchase option from the addons cart page. the different cycle prices are available to the cart per addon, but could not be used effectively without rewriting the cart templates - maybe this will be resolved in the forthcoming v7.7 betas.
  8. brian!

    Cron.php is corrupted

    if applicable, the best option would be to get your hosting company / supplier to do it for you - failing that, you can download an installer or zip from IonCube... their FAQ may be a useful read too.
  9. not in a pleasant mood this morning, Brent ? πŸ™‚ I take it the one below is the USD version that also has a Canadian price ? i'm going to assume that the client uses CAD, otherwise if they were set to use USD, that could explain the situation. also, when you save the product/service, check the database (specifically the tblpricing table to see if the database is storing the updated values).... i'm not convinced your CAD equivalent product (pid 13 ?) is actually priced in CAD. then I assume that you have "Apply Tax To" enabled for Billable Items in the Tax Rules page - if so, that's a global setting and does not take into account line item tax statuses, as demonstrated by this feature request... four votes in four years is not exactly overwhelming support for the feature! if you like, I can also give you numerous threads, like this one from over 9 years ago, asking about doing this. that wouldn't be the conclusion I would come to - I wouldn't expect it to delete/disable prices when there is not a USD value assigned... in fact, i'd be amazed if the core program was doing that... i'd be more inclined to think that the database isn't updating correctly when you are entering the price... whether that's a PHP memory issue, a SQL database issue, an admin template issue or some other cause, you may need to open a ticket with support to find out - and i'd encourage you to do so and update the thread with the results. I wouldn't argue with that one... but then WHMCS is I think doing what the developers intend it to do, and if that's the case, they wouldn't class it as a bug... you can argue that it shouldn't be applying, or not applying tax, in the way it does to billable items, but I sincerely doubt that a post here is going to change their perception of the functionality. oh if only everything in life could be solved with a large font! 😒
  10. anything in terms of addon modules that are from so long ago, are very unlikely to work in any recent version of WHMCS...
  11. seeing as he hasn't visited for 6 years, and his domain fails the license verification, I think it's a safe assumption that is he no longer using WHMCS! πŸ™‚ sometimes, archive.org can be your friend with dead links.. FWIW, i've downloaded the file from there and attached it to this post... though how useful a 7 year old v4.4.2 admin language file would be in any recent version, I couldn't say! Portuguese-pt.rar
  12. the addon would be irrelevant now - you can do the same thing using the built in Email Marketer... https://blog.whmcs.com/?t=67270
  13. brian!

    Cron.php is corrupted

  14. brian!

    Already registered button not responding

    if you aren't already, check the site using clean unaltered versions of Six and Standard_cart... if it works fine with them, then the issue would likely lie with a custom template and a css/js clash.
  15. brian!


    is this the one in Marketplace, written and encoded by WHMCS themselves, not updated for 2 years and marked as compatible upto v7.5 ? as WHMCS wrote it, it might be worth opening a Support ticket as that may be faster than getting an official reply here... perhaps it's incompatible with v7.6 and/or getting fixed in v7.7 - only WHMCS will know the answer to those questions. I doubt it's a PHP issue as it's supposedly been updated for 7.1 and 7.2.

Important Information

By using this site, you agree to our Terms of Use & Guidelines