Jump to content

deltatech

Retired Forum Member
  • Posts

    15
  • Joined

  • Last visited

About deltatech

deltatech's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. I found a solution that has been working for me on 5.3.x and I am now testing it on version 6 and it seems to be working there too. I have been able to walk away from my computer for 3-4 days and come back and click a link and I am still logged in. I will gladly provide the code if anyone wants it. Here is the basics of what you have to do. create a small 1px by 1px transparent gif and save it. Write a simple small php file that starts with a header saying that it is ouputting a gif like header("Content-Type: image/gif"); this file is only about 6 lines long, pretty simple then... I am using the v4 template so, in the /admin/templates/v4/ directory you will find head.js and header.tpl. Immediatly after the body tag in header.tpl put in an image tag with the src= your php file you created above. Then in head.js add this inside the document.ready just above the closing }); window.setInterval("renewSession()", 60000); Then just below the closing }); of the document ready add the renewSession function function renewSession() { document.getElementById('renewSession').src='/sessionrenew.php?xyz=' + Math.floor(Math.random() * (999999 - 1)) + 1; } The way this works is, when the page is first loaded, the php file which outputs like a gif is output to the browser. it is invisable. Then when the entire doc is loaded, the document.ready function starts the interval timer which fires every 60 seconds calling the php file which keeps loading that gif. That is all that is needed to keep the session alive. Along with that, I edited the php.ini for the site and set session.gc_maxlifetime = 9600 which is probably an overkill and this may not have been necessary but I did it anyway because it keeps the client area from timing out so easily. It still dies when the user closes their browser. And just in case you need it, here is the sessionrenew.php script <? //WARNING, this will puke if there are any empty lines after the ending ? > foreach ($_COOKIE as $cookie => $value) { if (stripos($cookie, 'WHMCS') === 0 and strlen($cookie) >= 13) { session_name($cookie); if(!session_id()) { session_start(); } } } header("Content-Type: image/gif"); readfile($_SERVER['DOCUMENT_ROOT'] . '/images/spacer.gif'); ?>
  2. I am trying to modify a template using code that always worked in version 5 and before but doesn't work in 6. This sample from the documentation doesn't work, it crashes. {php} $userid = $this->_tpl_vars['clientsdetails']['userid']; echo 'User ID is '. $userid ; {/php} This code is working now in 5.3.13 but crashes in 6.0 {php} $cldetails=$this->get_template_vars("clientsdetails"); echo 'Users ID is '. $cldetails['userid']; {/php} What am I doing wrong? This is in /templates/mytemplate/clientareaproductdetails.tpl
  3. Rate limiting on whois.donuts.co?? After only 3 whois lookups within whmcs I am getting this now... Your request is being rate limited. Please reduce the frequency of your requests and try again later Has anyone found a way around this?
  4. Has anyone else noticed that the shadow effect used in the horizontal nav menu in version 5 looks awesome in every browser except Chrome? In chrome the text is so faint that it is barely readable. I can fix it by simply commenting out all the text-shadow: statements in bootstrap.css but, I rather like that effect in all other browsers. I was thinking of making a new stylesheet that would be called after the main one overriding those effects and ONLY load it if the user-agent says its chrome. Has anyone else seen this? Is this something that is already being worked on? I doubt it is only my installation but if someone wants to look to compare, here is the URL https://www.deltatechnicalservices.com/clients/ Or if you want to see it with the stock unmodified default template... https://www.deltatechnicalservices.com/clients/?systpl=default
  5. Has anyone been successful and running WHMCS and Plesk 10.1.1 on the same server? If so, I would appreciate hearing how you made it work. The problem is.. WHMCS has to send an API call to Plesk to create, terminate, suspend, or unsuspend a hosted domain and of course it expects to get a response back from that API call. Plesk10 does an immediate hard restart of httpd when this happens causing the WHMCS process and everything else on the server to be reset thus causing WHMCS to fail and not complete. I opened a support ticket with Parallels about this and they said "It has been determined that graceful restarts after changing apache configuration is neither safe nor reliable". They went on to say that they have no intentions of changing this behavior in the future. The only other workaround they gave is to go to the plesk server settings and change the apache restart interval which does not work and has no effect. I made a feeble attempt to circumvent this behavior by modifying apachectl and /etc/init.d/httpd so that even a restart does a graceful only to discover that plesk doesn't use either of these to do its reset Does anyone have any ideas on how to make these work short of moving WHMCS to another box?
  6. I am having the same exact problem, did you ever find the solution? It seems the radio button selections for US State/Province/Not Applicable is not being sent.. It isn't even on the configuration form.
  7. I am trying to locate someone that is an OpenSRS reseller. I have a customer that has a domain registered with an opensrs RSP and the rsp has gone out of business. We need to get his EPP code and I am told that the only way is to transfer to another opensrs RSP as an EPP code won't be necessary. If you are an Opensrs RSP/reseller, please provide the URL to your registration site and I will attempt to do a transfer to you.
  8. This is an old thread but did anyone ever get this to work? It displays on all pages but only works on the home page on 3.62
  9. I see that now but... When ordering a domain transfer, you can't get far enough to see that until you have entered the EPP code. One can get there by typing anything in as an EPP code then you can move to the part of the cart where the item can be removed. Not very intuitive for the customers.
  10. Is there anyway that one can remove something from the cart? Specifically, when doing a domain transfer, if someone mistypes the domain name, and then goes back and adds the correct domain name, both the incorrect domain and the new one shows up in the cart. It is impossible to continue with the order until the EPP code is entered for ALL domains including the one they really didn't want in their cart. Is there a way to remove items from the cart or to completely clear the cart? I tried logging out and coming back but it seems that as long as the session remains, the items remain in the cart. I think this would end up in a lost sale as the client would give up. I am a noob here and probably I am missing something obvious?
  11. I have the same question. The link that was provided here goes to the main documentation index. There seems to be nothing there related to this question.
  12. I am unable to upload anything to my downloads area and get the following message.. Permissions Warning! The downloads folder is not writable by WHMCS so you cannot upload files My downloads directory is chmod 777 Any idea why I can't get this to work?
  13. I have a server running Plesk that has about 100 domains that already exist. I have not been using a client management tool previously. What is the proper way to add these existing accounts into whmcs? I seem to be able to add the client easy enough but since the domain exists, I get an error in creating the domain obviously. But will it take care of managing/suspending that domain even though it didn't create it? Also, previously I never created a client account for each customer. Instead, just individual domains. Now whcms does properly create the client in plesk when I add the client in whmcs, it only fails on the domain since it exists. I can manually move the domains to that client but is that all I need to do?
×
×
  • 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