Jump to content

brian!

GearHead
  • Content count

    9,620
  • Joined

  • Last visited

  • Days Won

    242

Everything posted by brian!

  1. my firewall seriously let me down and allowed me back in here... i'd thought i'd locked myself out of this place! ๐Ÿ”’ but while i'm here... I did send you an email about this, but got an automated reply... somewhere in your ticket system is the answer! cart.php?a=add&pid=98&billingcycle=annually&sld=domainname&tld=.com&configoption[106]=538&configoption[99]=428&promocode=extra10discount it should just need a & before the promocode and not a ? and with that, multiple locks should prevent me returning here until the New Year! ๐Ÿ”๐Ÿ”๐Ÿ”
  2. brian!

    Cancellation Button don't change

    works fine in v7.6.1... can't remember if there was a bug in previous versions... returns to holiday. โ›ท๏ธ
  3. brian!

    Double search for domain

    it should work - and would with Six/Standard_cart as long as your templates are up to date... if you are using custom themes, that may be the issue. alternatives would be to use the Domainchecker Data Feed on the homepage... or changing the url to use domainchecker.php... or changing name="query" to name="domain" - but if the templates were up to date for your WHMCS version, you shouldn't have to do this.
  4. you could use the Email Marketer. https://blog.whmcs.com/?t=67270 always remember that upgrading does NOT change the renewal (next due) date. https://docs.whmcs.com/Automated_Upgrades_and_Downgrades ... so they may end up with two invoices... one for the upgrade to take them to the existing due date, and then a renewal invoice as normal at the upgraded/downgraded price.
  5. brian!

    Home Button on navbar

    use the action hook posted in the thread below - second block of code starting <?php .... create a .php file in /includes/hooks, paste the code into it, save and your home link should change.
  6. brian!

    Different signatures on ticket depts

    two further options spring to mind with this - an EmailPreSend / Mergefield hook that modifies the {$signature} mergefield value.. that would be simple enough to do... i'll bookmark the thread and feel free to let me know if you need me to look further into that type of hook in the New Year... wsa was reading it yesterday, so if he can think of any way to commercially exploit what i've posted, i'm sure that he will do so. also, we may be overcomplicating the solution if these support departments are the names of your websites - in that, you could keep {$signature} as they are (the admins name etc), and then just use {$ticket_department} to output the brand/site. {$signature}<br /> {ticket_department} and with that, I really am gone from this place for a month.
  7. thanks for the update and further explanation - I look forward to hearing the cause of this.
  8. https://docs.whmcs.com/Blank_or_Partially_Rendered_Pages there is a description of how to enable error reporting via the configuration file if you can't access the admin area. if it's a v5 admin template, then i'd be surprised if it isn't the issue - you're probably looking at the best part of 5 years between the two releases. the nuclear option if you can't get access to the admin area, would be to edit the tbladmins database table as that stores the admin template choice for each admin. switching to any of the latest versions of v4 or Blend templates should work - though it's highly probable that other v5 modules could be causing this, e.g old v5 widgets, v5 addons no longer compatible with v7.... but once you can see any error that its giving you, you should be able to start tracking down potential causes.
  9. that's normal - invoicenum is only used if you define a custom invoice number format - either through general settings->invoices (sequential), or by coding.
  10. brian!

    SIdebar to Remove & Show in Clientarea

    the source code will always tell you whether it's a primary or secondary sidebar - worst case, it's only a choice to two, so if one doesn't work, try the other.
  11. 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?
  12. 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! ๐Ÿ“…
  13. 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! ๐ŸŽ„
  14. in response to the thread below, please find attached two hooks to generate Homepage Panels to output a clients email history (with clickable links) - don't use both, just choose one! ๐Ÿ™‚ The "original" version, that I quickly wrote as a demo for the above thread, links each row to open that email in a new tab/window... The updated "popup" version includes a clickable "button" that opens the email in a popup window (as per the Email History page accessible from the secondary navbar menu)... both panels use Language Translations to display the phrases "Email History", "View All" and "View" in the client's language. the date output uses the Global Date Format (as specified in your general settings -> localisation) - you could easily make it use the Client Date Format, but because we only have limited space for date and subject, I thought it easier to use the shorter global format. currently, the hook obtains ALL of your clients email history - if you want to limit that to a certain amount, e.g 100, then you would add a limit to the query... $clientemails = Capsule::table('tblemails')->where('userid', $client->id)->select('id','subject','date')->orderBy('date','desc')->limit(100)->get(); with additional coding, and probably some new Language Overrides, you should be able to identify each email type (based on the subject), and color the "button" links accordingly... i'm not going to include that version here - not least because it would require a lot of coding (which I haven't done!) to thoroughly cover all email templates and languages , but it would be achievable given the required effort.
  15. 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.
  16. 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
  17. 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!

    kYr02yz.png

    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!

  18. 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.
  19. 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.
  20. 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! ๐Ÿ˜ข
  21. anything in terms of addon modules that are from so long ago, are very unlikely to work in any recent version of WHMCS...
  22. 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
  23. the addon would be irrelevant now - you can do the same thing using the built in Email Marketer... https://blog.whmcs.com/?t=67270
  24. brian!

    Cron.php is corrupted

    https://docs.whmcs.com/Cron_Job_Issues#The_file_.2Fpath.2Fto.2Fcrons.2Fcron.php_is_corrupted
  25. 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.
×

Important Information

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