Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


wp4all last won the day on July 16 2018

wp4all had the most liked content!

Community Reputation

22 Excellent

About wp4all

  • Rank
    Senior Member

Recent Profile Visitors

2,196 profile views
  1. 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
  2. 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
  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, 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
  11. 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
  12. 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
  13. 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
  14. 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

Important Information

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