Jump to content

Dgital Essence

Member
  • Content Count

    64
  • Joined

  • Last visited

Everything posted by Dgital Essence

  1. Thank you, the first properly useful report in WHMCS!
  2. Thanks, I feel like an idiot now! Ah, even more of an idiot. I've read their docs, edited the LangVar but still no luck. Will contact support and see what the next steps are. Thank you.
  3. Hi, I have the same issue. I've added the code you pasted Brian and it gives me a text field to enter text into but this isn't being pushed to my registrar which is Netearthone. Have I missed something obvious? Thanks.
  4. Hi, The Domain Sync Cron is not updating a domains Expiry Date or Next Due Date correctly. The cron is running and showed the following in the Activity Log: Modified Domain - Registration Date changed from '2017-12-13 00:00:00' to '2017-12-13', Expiry Date changed from '2018-12-13 00:00:00' to '2018-12-13', Status changed from 'Expired' to 'Active', Next Due Date changed from '2019-12-13 00:00:00' to '2019-12-13' - User ID: 155 - Domain ID: 172 But the Expiry date at the Registrar (NETEARTHONE) is 2020-12-13 so it's a year out of date and the domain keeps on being set back to Status: Expired. My system details are: OS: CLOUDLINUX 7.7 v84.0.17 PHP: 7.3.11 WHMCS: 7.8.2 Loader version: 10.3.9 Domain Sync Enabled: Yes Sync Next Due Date: Enabled - Set to 0 Domain Sync Notify Only: Disabled Running php -q ./cron.php -F all -vvv didn't show any errors and came back with [OK] Completed. Wondering where to look next to try and troubleshoot this. Thanks for your help.
  5. Any news on this? I'm seeing the same issue here. Or shall I also open a ticket?
  6. That does indeed fix the issue. I think I will remove the default template and possibly some others. Then integrate the changes in Six into my own custom template and I'm back to where I started. Thanks for your help.
  7. Hi, I've compared all 9 files mentioned with what I have in Standard_cart and there are no differences.
  8. Hi, I've just updated from 7.71 to 7.8.2 and now get a Stripe error in Setup > Payments > Payments Gateway > Manage Existing Gateways. It was working previously. Required Template Changes Not Found: We were unable to detect the presence of the required WHMCS 7.1 template changes for Stripe compatibility in your active order form or client area template. Please ensure the changes itemised in the 7.1 upgrade here have been applied. Please see Template Changes for more information. I'm using the Default template and Standard Cart and have cleared the template cache. Running through the changes in the 7.01 > 7.12 doc which is linked from the error above is showing different versions of files than I currently have in my template. For example checkout.tpl. Comparing changes between 7.7.1 and 7.8.2 and it don't mention any template files under the standard cart. Where am I going wrong? Thanks.
  9. Hi, Up until now PayPal has been my default payment gateway. I've recently added a new Credit Card gateway and moved it to the top of the list under Setup > Payments > Payments Gateways > Manage Existing. I would like all existing customers who have their Payment Method set to either "Select to Change Default" (which I am assuming is still PayPal as that was the default) or "Paypal" to "Credit Card". I don't want to change any customers who have it set to any other method. Is this possible in the front end or will it require an SQL query? Thanks,
  10. Liberty? The pleasure is all mine ;-) Although I'm testing this and still seeing the same The URL created is: Before: http://mydomain/whmcsadmin/clientsnotes.php?userid=59&action=edit&id=59 After: http://mydomain/whmcsadmin/clientsnotes.php?userid=59&action=edit&id=59
  11. Hi, I'm not sure if this has already been done but I use Sticky Notes to record additional work that needs to be invoiced at a later date but kept on forgetting who I'd done extra work for. So I've created a widget for the Admin Summary page that displays all the Sticky Notes with links through to the Customers Note and also the customer summary. Just create a new file in modules/widgets and paste this code in. Then head over to Setup > Staff Management > Administrator Roles > Edit and scroll down to Widgets and then tick yours (in this example it's called "Display Customer\'s Sticky Notes". This was created in Version: 5.3.11 and is still working in 6.1.1 but it if breaks yours or makes the sky fall down, I'm not liable... ?php # WHMCS Widget to display sticky notes on the Admin Summary # Hedley Phillips - Digital Essence if (!defined("WHMCS")) die("This file cannot be accessed directly"); function widget_display_sticky_notes() { $content = '<table bgcolor="#cccccc" align="center" style="margin-bottom:5px;width:100%;" cellspacing="1"> <tr bgcolor="#efefef" style="text-align:center;font-weight:bold;"><td>Customer</td><td>Note</td><td>Modified</td></tr>'; $x=1; $range = "<= 364"; $result = mysql_query("SELECT * FROM `tblnotes` JOIN tblclients ON tblclients.id=tblnotes.userid WHERE `sticky` = '1'"); while ($data = @mysql_fetch_array ($result)) { $noteid = $data["id"]; $userid = $data["userid"]; $firstname = $data["firstname"]; $lastname = $data["lastname"]; $note = $data["note"]; $date = $data["modified"]; $content .= '<tr bgcolor="#ffffff" style="text-align:center;"><td><a href="/whmcsadmin/clientssummary.php?userid='.$userid.'">'.$firstname. ' ' .$lastname.'</a></td><td><a href="/whmcsadmin/clientsnotes.php?userid='.$userid.'&action=edit&id='.$noteid.'">'.$note.'</a></td><td>'.$date.'</td></tr>'; $x=0; } if($x) $content = '<tr bgcolor="#ffffff" style="text-align:center;"><td colspan="7">No Sticky Notes to display</td></tr>'; $content .= '</table>'; return array( 'title' => 'Display Customer\'s Sticky Notes', 'content' => $content ); } add_hook("AdminHomeWidgets",1,"widget_display_sticky_notes"); ?> NOTE: What I can't get to work and am looking for input from others on is the edit function. I'm using: <a href="/whmcsadmin/clientsnotes.php?userid='.$userid.'&action=edit&id='.$noteid.'"> where: $noteid = $data["id"]; $userid = $data["userid"]; but it keeps on putting the customer id in both $userid and $noteid and I can't work out why.
  12. This CSS should do it. #clientsummarycontainer .ticketstaffnotes {background: red;} Obviously you need to change the colour to suit...
  13. Hi, I'm not sure if this has already been done but I use Sticky Notes to record additional work that needs to be invoiced at a later date but kept on forgetting who I'd done extra work for. So I've created a widget for the Admin Summary page that displays all the Sticky Notes with links through to the Customers Note and also the customer summary. Just create a new file in modules/widgets and paste this code in. Then head over to Setup > Staff Management > Administrator Roles > Edit and scroll down to Widgets and then tick yours (in this example it's called "Display Customer\'s Sticky Notes". This was tested in Version: 5.3.11. it works on my install but it if breaks yours or makes the sky fall down, I'm not liable... ?php # WHMCS Widget to display sticky notes on the Admin Summary # Hedley Phillips - Digital Essence if (!defined("WHMCS")) die("This file cannot be accessed directly"); function widget_display_sticky_notes() { $content = '<table bgcolor="#cccccc" align="center" style="margin-bottom:5px;width:100%;" cellspacing="1"> <tr bgcolor="#efefef" style="text-align:center;font-weight:bold;"><td>Customer</td><td>Note</td><td>Modified</td></tr>'; $x=1; $range = "<= 364"; $result = mysql_query("SELECT * FROM `tblnotes` JOIN tblclients ON tblclients.id=tblnotes.userid WHERE `sticky` = '1'"); while ($data = @mysql_fetch_array ($result)) { $noteid = $data["id"]; $userid = $data["userid"]; $firstname = $data["firstname"]; $lastname = $data["lastname"]; $note = $data["note"]; $date = $data["modified"]; $content .= '<tr bgcolor="#ffffff" style="text-align:center;"><td><a href="/whmcsadmin/clientssummary.php?userid='.$userid.'">'.$firstname. ' ' .$lastname.'</a></td><td><a href="/whmcsadmin/clientsnotes.php?userid='.$userid.'&action=edit&id='.$noteid.'">'.$note.'</a></td><td>'.$date.'</td></tr>'; $x=0; } if($x) $content = '<tr bgcolor="#ffffff" style="text-align:center;"><td colspan="7">No Sticky Notes to display</td></tr>'; $content .= '</table>'; return array( 'title' => 'Display Customer\'s Sticky Notes', 'content' => $content ); } add_hook("AdminHomeWidgets",1,"widget_display_sticky_notes"); ?> NOTE: What I can't get to work is the edit function. I'm using: <a href="/whmcsadmin/clientsnotes.php?userid='.$userid.'&action=edit&id='.$noteid.'"> where: $noteid = $data["id"]; $userid = $data["userid"]; but it keeps on putting the customer id in both $userid and $noteid and I can't work out why.
  14. Hi Alex, thank you for your reply. This worked a treat. For anyone else needing to do this: I logged into WHM and went to Modify an Account > Domain Name > Primary Domain and changed the domain name there. Just to note: As you said, email accounts had to be created on the new domain and then I copied the emails over from the old domain to the new domain using: cp -rp /home/USERNAME/mail/OLD DOMAIN/EMAIL ADDRESS /home/USERNAME/mail/NEW DOMAIN/ I now have a happy customer. Thanks again.
  15. Hi, A customer I host has just found out that his domain name is still with another company who are demanding he settles his account for services he cancelled a long time ago and won't let him transfer his domain out and he just wants to give up on that domain name and start afresh with a new one. He currently has his Product/Service set up, website hosted and emails all working on domain A and we now need to ditch that completely and add a new domain B. Normally I would just add an alias but seeing as domain A will soon expire and be lost we have to move everything over to the new domain. What is the easiest way to proceed? I know I could set him up a new Product/Service using the new domain, setting it all up and then cancelling the old one but this would mean two accounts. Thanks,
  16. It's worked out very well. I created a package called DNS management, removed all of the features from it, zero space, bandwidth, ftp etc etc and then created a new features list with just DNS management and applied it. I can then have a client with their own login and access to their DNS. None of my clients actually want to fiddle with it themselves, they just want it looked after which is why I decided not to go down the 3rd part route. Also because I'm tight and didn't fancy paying out more cash.
  17. Thanks Ryan, I've looked into both 3rd party modules and decided that for what I need, a new product with no features apart from zone records was the cheap and easy way to proceed.
  18. Remember all I did was slap some code around it to make it into a widget. Sparky did all the complicated magic!
  19. Hi, I have a customer who doesn't host with me but will be transferring their domains over to me but I can't see any way to create records for their domains. Without running the create module with a hosting package, they don't have a CPanel account and there is no record of them in WHMCS. How do I go about managing their domain records? Thanks,
  20. If anyone is interested, I've taken Sparky's code and created a Widget for the homepage. This is running on my version 5.3.5 Just create a new file in modules/widgets and paste this code in. Then head over to Setup > Staff Management > Administrator Roles > Edit and scroll down to Widgets and then tick yours (in this example it's called "Expiring Domains". I've no idea if this is the correct way to do it or won't break everything and make the sky fall down but it works for me. <?php if (!defined("WHMCS")) die("This file cannot be accessed directly"); function widget_domains_expiring() { $content = '<table bgcolor="#cccccc" align="center" style="margin-bottom:5px;width:100%;" cellspacing="1"> <tr bgcolor="#efefef" style="text-align:center;font-weight:bold;"><td>Domain</td><td>Registrar</td><td>Period</td><td>Next Due Date</td><td>Expiration Date</td><td>Amount</td><td>Do Not<br />Renew</td></tr>'; $x=1; $range = "<= 90"; $result = mysql_query("SELECT * FROM `tbldomains` WHERE DATEDIFF(`expirydate`, Now()) $range AND `status` = 'Active' ORDER BY `expirydate` ASC"); while ($data = @mysql_fetch_array ($result)) { $content .= '<tr bgcolor="#ffffff" style="text-align:center;"><td><a href="clientsdomains.php?userid='.$data['userid'].'&id='.$data['id'].'">'.$data['domain'].'</a></td><td>'.$data['registrar'].'</td><td>'.$data['registrationperiod'].'</td><td>'.fromMySQLDate($data['nextduedate']).'</td><td>'.fromMySQLDate($data['expirydate']).'</td><td>'.formatCurrency($data['recurringamount']).'</td><td>'.$data['donotrenew'].'</td></tr>'; $x=0; } if($x) $content = '<tr bgcolor="#ffffff" style="text-align:center;"><td colspan="7">No upcoming domain renewals</td></tr>'; $content .= '</table>'; return array( 'title' => 'Expiring Domains', 'content' => $content ); } add_hook("AdminHomeWidgets",1,"widget_domains_expiring"); ?>
  21. Hi, I have two invoicing issues here that I can't get my head round. 1) Customer was on monthly billing, one invoice sent out, hasn't paid yet but now wants to be on annual billing. I cancelled his existing invoice and changed the Billing Cycle to annually, First Payment Amount & Recurring Amount changed to annual cost and Next Due Date left at 09/08/2012 (9th August) This was last night and I expected the billing run this morning to issue him a new invoice but nothing was sent. What should I have done? 2) Customer wanted one hosting package and 4 domains (two .com and two .co.uk), one of which is a freebie for the first year. Customer wants one invoice with everything included. I set the orders up with no invoice due but it sent out invoices the next day. I then deleted all but one of them and added all the lines into the remaining invoice but the next day it issued two new invoices. One containing the .com domains and the hosting and the other containing the two .co.uk I have tried merging the invoices but the very next day new ones were sent out. I have deleted them and manually created one invoice but the next day it sent out new invoices again. How can I combine all of these into one invoice (retaining the free .com domain) but so that on the anniversary date, the correct invoice goes out with all 5 billable items? thanks, yours very confused.
  22. I have read the docs, followed examples and am still not able to get my Javascript to work correctly. I am using this js to load Tweets into my footer: <script type="text/javascript"> $(document).ready(function() { $("#twitter").getTwitter({ userName: "dedesignandhost", loaderText: "Loading tweets..." }); }); </script> I have tried wrapping the entire block, including the <script> </script> in {literal} {/literal}, then inside of that, and all over the place. Currently I have: <script type="text/javascript"> {literal} $(document).ready(function() { $("#twitter").getTwitter({ userName: "dedesignandhost", loaderText: "Loading tweets..." }); }); {/literal} </script> and the error I get is: $("#twitter").getTwitter is not a function (?)()hosting.php (line 29) noConflict(j=function())jquery.min.js (line 29) j = function() inArray()jquery.min.js (line 37) [break On This Error] loaderText: "Loading tweets..." hosting.php (line 29) This function is working in a normal HTML template and I am at a loss as to why I can't get it to work in my templates. Is this suitable for this forum or should I take it over the Smarty forum? Thanks.
  23. Ah, I have been firmly. but politely told to RTFM for which I thank you squire! I had completely forgotten WHMCS was Smarty templates and spent far too long searching this forum using the wrong search queries and coming up with nothing. I will go now and read the manual... thanks, Hedley
×
×
  • 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