Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by wp4all

  1. Hi @ all, is it possible to change / translate or replace the result of an Data Feed ? Why I'm asking is I would like to use the data feed to show the price on an external Page but I won't show the Prefix. <script language="javascript" src="feeds/productsinfo.php?pid=1&get=price&billingcycle=monthly"></script> In my little stupid world I would use : document.body.innerHTML = document.body.innerHTML.replace(/โ‚ฌ/g, ' '); which works already but this affects the entire page. Thanks and best regards Christian
  2. wp4all

    Data Feed & replacement possible ?

    Hi @brian!, I like to descend into your world again and again Sometimes i just think too complicated I have the feeling ๐Ÿ™„ Thanks Brian
  3. wp4all

    Color Changes

    Hi, sorry have just seen that the compression was to high here is the video in 1080p Inspector video Greetings Christian
  4. wp4all

    Color Changes

    Hi @vitadome, รคhh no ๐Ÿ˜. You need to know how to find it . You can use the inspector of your Browser to identify your section. Here is a short video how to do that : How to use inspector So identify your section make your changes and copy & paste the new CSS in to your custom.css. Greetings Christian
  5. Hi, it is more than one ๐Ÿ˜‰ Easy would be just to open the drop-down in the Products tab and just take one and search via google. One which is free and not in the List would be http://centos-webpanel.com so far you using CentOs as OS. Link is here with install Video --> http://wiki.centos-webpanel.com/whmcs-module-for-cwp-api Greetings Christian
  6. wp4all

    Color Changes

    Hi @vitadome, go to whmcs/templates/six/css/custom.css add : section#home-banner { margin: 0; padding: 50px 0 60px; background-color: #8BC34A; color: #fff; } and you will get : the Background in green. Please remember to flush the Browser cache or any other cache to see the result. Greetings Christian
  7. Hi Steven, yes, the alt="" name is not very original, eventually it should be completed with a logo text but at least there is already one ๐Ÿ˜‰. $gateways[$key]['name'] = '<img src="'.$logo.'" alt="'.$gateway['sysname'].'Logo">'; But thx Greetings Christian
  8. Hi Brian, you are right ๐Ÿ˜ฉ to many hooks on the Testsystem didn't read the error properly. Thanks Christian
  9. Hi, is this Hook still working ? WHMCS Version --> Version: 7.7.1 | php 7.3 Hook: <?php # Cart Gateway Logos Hook # Written by brian! function hook_cart_gateway_logos($vars) { if ($vars['templatefile'] == 'viewcart') { $gateways = $vars['gateways']; foreach($gateways as $key => $gateway) { $logo = "assets/img/logos/".$key.".png"; if(file_exists($logo)) { $gateways[$key]['name'] = '<img src="'.$logo.'" alt="'.$gateway['sysname'].'">'; } } return array("gateways" => $gateways); } } add_hook('ClientAreaPageCart', 1, 'hook_cart_gateway_logos'); ?> Error: Whoops\Exception\ErrorException: Cannot redeclare hook_cart_gateway_logos() (previously declared in /includes/hooks/gateway_logo.php:6) in /httpdocs/includes/hooks/test.php:6 Stack trace: #0 /httpdocs/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(1, 'Cannot redeclar...', '/var/www/vhosts...', 6) #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main} Greetings Christian
  10. Hi, I have seen that under the Six template is now an SSL Check : But we sell all Services with a free SSL Let's Encrypt Cert so all Domains are SSL encrypted If the symbol only indicates to the customer that he has not ordered a certificate for his product, this is quite confusing. It should therefore be possible to hide this symbol. Greetings Christian
  11. Hi, also under curl 7.29 a proper query is possible: [root@vps02 ~]# cat /etc/centos-release CentOS Linux release 7.6.1810 (Core) [root@vps02 ~]# curl --version curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.36 zlib/1.2.7 libidn/1.28 libssh2/1.4.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets [root@vps02 ~]# curl --insecure -v https://whmcs.com 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }' * SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 * Server certificate: * subject: CN=*.whmcs.com * start date: Jun 25 00:00:00 2018 GMT * expire date: Jun 25 12:00:00 2019 GMT * common name: *.whmcs.com * issuer: CN=RapidSSL RSA CA 2018,OU=www.digicert.com,O=DigiCert Inc,C=US * Connection #0 to host whmcs.com left intact [root@vps02 ~]# Curl is not mandatory use openssl php comands to pars the URL: openssl-x509 <?php $url = "https://whmcs.com"; $orignal_parse = parse_url($url, PHP_URL_HOST); $get = stream_context_create(array("ssl" => array("capture_peer_cert" => TRUE))); $read = stream_socket_client("ssl://".$orignal_parse.":443", $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $get); $cert = stream_context_get_params($read); $certinfo = openssl_x509_parse($cert['options']['ssl']['peer_certificate']); echo print_r($certinfo); and you get : [root@vps02 ~]# php ssl Array ( [name] => /CN=*.whmcs.com [subject] => Array ( [CN] => *.whmcs.com ) [hash] => 87529681 [issuer] => Array ( [C] => US [O] => DigiCert Inc [OU] => www.digicert.com [CN] => RapidSSL RSA CA 2018 ) [version] => 2 [serialNumber] => 4341417971671710519045517846942791534 [validFrom] => 180625000000Z [validTo] => 190625120000Z [validFrom_time_t] => 1529884800 [validTo_time_t] => 1561464000 [signatureTypeSN] => RSA-SHA256 [signatureTypeLN] => sha256WithRSAEncryption [signatureTypeNID] => 668 [purposes] => Array ( [1] => Array ( [0] => 1 [1] => [2] => sslclient ) [2] => Array ( [0] => 1 [1] => [2] => sslserver ) [3] => Array ( [0] => 1 [1] => [2] => nssslserver ) [4] => Array ( [0] => [1] => [2] => smimesign ) [5] => Array ( [0] => [1] => [2] => smimeencrypt ) [6] => Array ( [0] => [1] => [2] => crlsign ) [7] => Array ( [0] => 1 [1] => 1 [2] => any ) [8] => Array ( [0] => 1 [1] => [2] => ocsphelper ) [9] => Array ( [0] => [1] => [2] => timestampsign ) ) [extensions] => Array ( [authorityKeyIdentifier] => keyid:53:CA:17:59:FC:6B:C0:03:21:2F:1A:AE:E4:AA:A8:1C:82:56:DA:75 [subjectKeyIdentifier] => 69:F7:99:E1:73:D7:23:5B:33:7F:13:EC:38:89:6E:6E:08:A9:FA:58 [subjectAltName] => DNS:*.whmcs.com, DNS:whmcs.com [keyUsage] => Digital Signature, Key Encipherment [extendedKeyUsage] => TLS Web Server Authentication, TLS Web Client Authentication [crlDistributionPoints] => Full Name: URI:http://cdp.rapidssl.com/RapidSSLRSACA2018.crl [certificatePolicies] => Policy: 2.16.840.1.114412.1.2 CPS: https://www.digicert.com/CPS Policy: [authorityInfoAccess] => OCSP - URI:http://status.rapidssl.com CA Issuers - URI:http://cacerts.rapidssl.com/RapidSSLRSACA2018.crt [basicConstraints] => CA:FALSE [ct_precert_scts] => Signed Certificate Timestamp: Version : v1(0) Log ID : A4:B9:09:90:B4:18:58:14:87:BB:13:A2:CC:67:70:0A: 3C:35:98:04:F9:1B:DF:B8:E3:77:CD:0E:C8:0D:DC:10 Timestamp : Jun 25 14:17:07.633 2018 GMT Extensions: none Signature : ecdsa-with-SHA256 30:45:02:21:00:D7:A8:52:B2:E4:45:A4:97:E0:A2:10: BF:54:AF:42:D5:67:23:B8:52:A0:AC:C6:05:E5:F0:BA: 2A:F4:02:75:F8:02:20:56:F3:B2:D4:DB:39:FF:C1:F8: 33:CC:94:E6:8A:77:F5:5A:CF:44:75:4B:55:AD:E7:5F: FA:CB:37:5E:D5:70:AC Signed Certificate Timestamp: Version : v1(0) Log ID : 87:75:BF:E7:59:7C:F8:8C:43:99:5F:BD:F3:6E:FF:56: 8D:47:56:36:FF:4A:B5:60:C1:B4:EA:FF:5E:A0:83:0F Timestamp : Jun 25 14:17:07.823 2018 GMT Extensions: none Signature : ecdsa-with-SHA256 30:45:02:21:00:C4:B5:D7:D3:10:2D:3E:D6:56:0B:96: 0B:EF:66:A2:45:24:3D:02:00:D5:EB:EB:70:77:68:3C: 4C:E4:4E:8E:B8:02:20:1F:5B:0B:60:DC:48:B2:BD:E0: 59:ED:D1:1C:A9:35:1D:29:91:2C:B5:05:67:BC:49:B9: B2:9C:F6:1E:D6:BC:D1 ) ) 1[root@vps02 ~]# Many roads lead to Rome But this doesn't change the fact that hundreds to thousands of queries may be made in the background for a query that make it superfluous with services like Let's encrypt. Fact is we have this feature only to push the whmcs market . But I guess your main product is WHMCS as Software and not this 10ct profit from selling an ssl certificate. Greetings Christian
  12. Hi @xyzulu, here is an improved version, the problem is that IE & IE Edge have some problems with css pseudo element like content / :: before / :: after . Under IE you should have this picture: You can see that the Google G is behind the font-awesome icon "G " so we change it from content to background image and hide the font-awesome icon with transparent color. i.fab.fa-google { color: rgba(0, 0, 0, 0); } i.fab.fa-google { background: url(../img/25px-Google__G__Logo.png) no-repeat; background-size: 14px 14px; margin-bottom: -3px; margin-right: -3px; margin-left: -20px; } Now it works as well under the IE / Edge Browser: Possible that you need to adapt the margin settings I do not use 100% Six conform Template. Greetings Christian
  13. Hi @xyzulu, because this belongs to the Bootstrab *.css so you need to change it in the all.min.css . Just open the all.min.css and add following code at the end after the "}": .btn-google {color: #000;background-color: #ffffff;border-color: #ccc;}.fab.fa-google {content: url(../img/25px-Google__G__Logo.png);margin-bottom: -4px;margin-right: 1px;margin-left: -8px;width: 17px;height: 17px;}.btn-google.active, .btn-google:active, .btn-google:focus, .btn-google:hover, .open .dropdown-toggle.btn-google {color: #000;background-color: #ffffff;border-color: #ccc;} The images has to be in ../templates/six/img/ than the code should work c&p. If this is the only change you can use also the added version it should work . Remember after every upgrade of the six template you need to add this line again. Before upgrading WHMCS you should get an information that you have some modified Files. Greetings Christian all.min.css
  14. Hello, @xyzulu a customer wanted to get the whole thing implemented, while some bugs appeared I would rather suggest this change here. Instead of hiding the Font Awesome "G" | "\f1a0" I would rather replace it by an graphic. <-- Button --> .btn-google { background-color: #ffffff!important; color: #000!important; border: 1px solid #ccc!important; min-width: 187.55px; } <-- Googel G --> i.fab.fa-google { content: url(/img/25px-Google__G__Logo.png); margin-bottom: -4px; margin-right: -4px; width: 28px; height: 18px; } Since the G appears in many places, you are sure that the G appears in color. I have attached the Logo I used for it. Greetings Christian
  15. Good morning, I certainly won't start a religious war here. But even Plesk already states this approach as a solution on the support page. How to update cURL on a Plesk server by Alexandr Tumanov And hey yea there is also a Warning Info regarding the OS package Manager but not against the repro. How safe you keep this repro is up to you. I'll only show you one solution, you can start to compile your own pack is your choice. Of course, you can also wait for WHMCS to create a solution for you which will probably never happen. I told WHMCS in the BETA before the 7.7 publication they have a problem with the query, the answer was: "Sorry our query request works as expected, please get in contact with your Systemadministrator to solve the Problem ๐Ÿ˜’ " Now it was a part of feeling 1000 Hotfixes in 7.7.1. !!!! So again don't do it if you feel uncomfortable !!!! I will not justify myself and I will not write a leaflet with 100 side effects under my post. You are all adults but don't panic with such stupid comments. Sometimes I'm really surprised that nobody screams when a new source code encrypted addon comes out, guys think about the Trojans & Backdoors. Greetings Christian
  16. Hi MjHost, either bring the pictures to the same size or work with css. <-- serves only the estimation should not be taken over 1:1 --> .png { width: 200px; height: 150px; } .jpg {width: 100px; height: 400px; } I would recommend the first version because rescaling has a negative effect on SEO and page performance. Greetings Christian
  17. Hi jas8522, you do not have to wait for WHMCS, so far you got root access just follow this forums entry here : https://talk.plesk.com/threads/curl-upgrade-on-plesk-12-5.338168/ Result: # cat /etc/centos-release CentOS Linux release 7.6.1810 (Core) # ~# curl --version curl 7.64.0 (x86_64-redhat-linux-gnu) libcurl/7.64.0 NSS/3.36 zlib/1.2.7 libpsl/0.7.0 (+libicu/50.1.2) libssh2/1.8.0 nghttp2/1.31.1 Release-Date: 2019-02-06 # # # Greetings Christian
  18. Hi @xyzulu, please be aware that the Logo should be official from Google (Google Branding Guidelines) , the Logo under https://www.bilder-upload.eu/upload/5941a3-1550500826.png was just to show what could be possible. The Link should be temporarily as this is an free upload service. Greetings Christian
  19. Here is the solution by keeping the Text and just replacing the font awesome "G" | "\f1a0" by an background image. button#btnGoogleSignin1:hover { background-color: #fff0; color: #000; } .fa-google:before { content: none; } .btn-google { background-image: url(https://www.bilder-upload.eu/upload/5941a3-1550500826.png)!important; background-repeat: no-repeat; background-position: 35px 50%; background-color: #fff; border: 1px solid #000; padding-left: 51px; } You should keep in mind if you set the content to none. .fa-google:before { content: none; } it could be missed in some other place so you should place it maybe inline coded. In the top solution with the Button image I forgot the hover style so just use this one above. Greetings Christian
  20. Hi xyzulu, quick and dirty ? button#btnGoogleSignin1:before { content: url(https://developers.google.com/identity/images/btn_google_signin_light_normal_web.png); } button#btnGoogleSignin1 { background-color: #fff0; border: 0px; padding: 0px; } Template is Six for multilinguale support you should maybe just use just the "G" and leave the Text by default. $_LANG['remoteAuthn']['signInWith'] = 'Sign in with :provider'; Greetings Christian
  21. This solution is known since Beta. But you will have still the check up in the Background for nothing. This feature needs to be deactivated . Greetings Christian
  22. Hi @WHMCS John, This is one of the reasons why I don't want to waste my limited time on beta testing anymore. You start reporting bugs, get the answer of a misconfiguration of the customer's server and then publish them with bugs. Only when several customers scream, you start to investigate it and fix the bug in a release candidate. Very nice! In another post you ask hoppla what is your problem with this nice fancy feature ? Even before you can answer the post is blocked and an answer is not possible. Why this SSL check is unnecessary ? Who the hell sells his customers still products without encryption ? ( Let's encrypt and co is greeting you ). But no problem then I just query hundreds of domains in the background if I know anyway that they are encrypted So switch off this thing or at least gives us the possibility to switch off . Greetings Christian
  23. Hi @WHMCS John, here is the output without HTML # curl -v https://digitheme.de * Trying * TCP_NODELAY set * Connected to digitheme.de ( port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: none * CApath: none * loaded libnssckbi.so * ALPN/NPN, server did not agree to a protocol * SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 * Server certificate: * subject: CN=digitheme.de * start date: Nov 21 08:07:11 2018 GMT * expire date: Feb 19 08:07:11 2019 GMT * common name: digitheme.de * issuer: CN=Let's Encrypt Authority X3,O=Let's Encrypt,C=US > GET / HTTP/1.1 > Host: digitheme.de > User-Agent: curl/7.63.0 > Accept: */* > < HTTP/1.1 200 OK < X-Powered-By: PHP/7.2.14 < Content-Type: text/html; charset=UTF-8 < Link: <https://digitheme.de/wp-json/>; rel="https://api.w.org/" < Transfer-Encoding: chunked < Date: Thu, 17 Jan 2019 05:36:00 GMT < Server: LiteSpeed < X-Powered-By: PleskLin < Alt-Svc: quic=":443"; ma=2592000; v="35,39,43,44" < Connection: Keep-Alive < < <!DOCTYPE html> </html> * Connection #0 to host digitheme.de left intact # # # Greetings Christian
  24. Hi John, Server wich own the WHMCS test environment v7.7 --> cURL command --> destination URL curl -v https://whmcs.com * Trying 2606:4700:10::6814:1408... * TCP_NODELAY set * Connected to whmcs.com (2606:4700:10::6814:1408) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: none * CApath: none * loaded libnssckbi.so * ALPN, server accepted to use h2 * SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 * Server certificate: * subject: CN=*.whmcs.com,OU=IT,O=WHMCS Limited,L=Milton Keynes,C=GB * start date: Feb 05 00:00:00 2018 GMT * expire date: Feb 05 12:00:00 2019 GMT * common name: *.whmcs.com * issuer: CN=GeoTrust RSA CA 2018,OU=www.digicert.com,O=DigiCert Inc,C=US * Using HTTP2, server supports multi-use * Connection state changed (HTTP/2 confirmed) * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0 * Using Stream ID: 1 (easy handle 0x89de30) > GET / HTTP/2 > Host: whmcs.com > User-Agent: curl/7.63.0 > Accept: */* So I'm sure that cURL works fine the shown Domain in the first post curl -v https://digitheme.de * Trying * TCP_NODELAY set * Connected to digitheme.de ( port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: none * CApath: none * loaded libnssckbi.so * ALPN/NPN, server did not agree to a protocol * SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 * Server certificate: * subject: CN=digitheme.de * start date: Nov 21 08:07:11 2018 GMT * expire date: Feb 19 08:07:11 2019 GMT * common name: digitheme.de * issuer: CN=Let's Encrypt Authority X3,O=Let's Encrypt,C=US > GET / HTTP/1.1 > Host: digitheme.de > User-Agent: curl/7.63.0 > Accept: */* > < HTTP/1.1 200 OK Greetings Christian

Important Information

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