Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About Walther

  • Rank
    Junior Member
  1. Does exist any way to use a custom theme just for specific pages? I would like to use a custom theme for number of custom front-end pages, but would also like to use standard six theme So, i.e.; /knowledgebase.php -> custom theme /contact.php -> custom theme /index.php -> custom theme /clientarea.php -> six /submitticket.php -> six etc. (Working on session is not possible because the very same logged user would require to use custom them if he is visiting knowledgebase.php, and six in clientarea.php ... ) Any idea?
  2. I would like a single page being loaded using a different theme. I know it's somehow possible, because there's a hook by ModulesGarden ( https://www.modulesgarden.com/products/whmcs/geolocation-hook ) that already do it (switching the theme according the language set). I tried to dig into ModulesGarden's code (this hook is provided as source), but it's far beyond my capabilities, and I went lost... 😞 I just saw that also @MrGettingRatherFrustrated has a similar issue (he would like to switch language and currency), and also him went lost in digging ModulesGarden's code... So I realized that also WHMCS documentation is very poor about this: it seems that - somehow - it's possible in a hook to re-set system variables defining template, currency and language, but there's no "how to" about... 😞 Any idea on how to do it?
  3. I have a quite similar need (I would like to set a different theme on just few custom pages). I also digged in that code, hoping to find the way to do it, and went lost... 😞
  4. I met following issue, using different registrar modules, so I guess it's an issue of WHMCS itself... When a user register a domain, and the registration does not complete for any reason (insufficient funds, or some kind of error iduring registration, or whatever...) the domain is marked as "active". This is misleading for the user ("Why my domain is active but it does not work?!?"), but also for us (having it marked in admin area as "pending" or "pending registration" would make everything easier...) So I'm here to ask: any trick in order to mark a domain as "pending registration" whenever an error occurs during registration process?
  5. You got it!!!!! Thanks! (But why WHMCS configuration parameters are randomly scattered around?!?!?!?! 😮 )
  6. The issue, AFAIK, there's on any WHMCS version: in client area, in /index.php?rp=/account/paymentmethods/xxx a "delete" button does not exist, so the user is simply not able to delete a recorded credit card... (I've tested both 7.10.2 and 8.0.4 ... same issue on both version)
  7. Using Stripe (or any other token-based gateway), few data of client's credit card are recorded (last 4 numbers, expire date) The user can edit this data, but is not able to delete it (only in admin area it's possible to delete it... so the user should open a ticket, asking for deleting these data, and admin should delete it manually... time consuming and annoying) An API to delete a recorded credit card does exist: DeletePayMethod ( https://developers.whmcs.com/api-reference/deletepaymethod/ ) So, a fix should be: add a button "Delete" in client area in /index.php/account/paymentmethods/1234 this button calls the DeletePaymethod API My issue: how to insert such a button in this page?!?!?! please help!
  8. Nope, a dispute is not necessary. Registrant just needs to prove his identity to Registrar, and the Registrar is required to give him some way to manage his domain. Every TLD and every Registry have his own rules, but check i.e. ICANN rules about common gTLD: ruled obligations are between registrar and registrant, the reseller may stay in the middle, but if he disappears registrar and registrant have direct intercourse. I.e. about Publicdomainregistry (Directi): registrant just need to go to this page: https://publicdomainregistry.com/compliance/ and compile the form to get in touch with Registrar and get the control of his domain. And EVERY Registrar on this planet have some kind of procedure like this.
  9. In /assets/img/tld_logos there're a lot of .png files with various TLD logos. To use them in different pages (also outside of WHMCS), I would like to make them accessible by a different, shorter and easier to remeber URL, such as /tld_logos/ So I tried to insert in .htaccess following command: Options +FollowSymLinks RewriteEngine On RewriteRule ^tld_logos/(.*)$ https://mywhmcsdomain.com/assets/img/tld_logos/$1 [R=301,L] but it doesn't work, and trying to access (i.e.) mywhmcsdomain/tldlogos/blog.png I'm getting just a 404 error ... 😞 In .htaccess there're just the "standard" WHMCS commands: ### BEGIN - WHMCS managed rules - DO NOT EDIT BETWEEN WHMCS MARKERS ### <IfModule mod_rewrite.c> RewriteEngine on # RewriteBase is set to "/" so rules do not need updating if the # installation directory is relocated. It is imperative that # there is also a RewriteCond rule later that can effectively get # the actual value by comparison against the request URI. # # If there are _any_ other RewriteBase directives in this file, # the last entry will take precedence! RewriteBase / # Redirect directories to an address with slash RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+[^/])$ $1/ [R] # Send all remaining (routable paths) through index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Determine and use the actual base RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$ RewriteRule ^.*$ %2index.php [QSA,L] </IfModule> ### END - WHMCS managed rules - DO NOT EDIT BETWEEN WHMCS MARKERS ### What am I doing wrong?
  10. So, no ready solution "off the shelf" is available from WHMCS, and the function requires to be implemented by custom code... 🙄
  11. There's a number of TLD that, when transferred, do not renew (as it happens, instead, with .com domain). I.e. .co.uk domains: when you transfer a .co.uk, the expiring date remain the same. But in WHMCS there's an issue about this; and, having met with very same issue with a number of different registrar module, I guess that it's a WHMCS issue, and not a registrar's module issue. Follow me: 1/5/21: user issue a domain transfer order for a example.co.uk; current expiring date is 1/7/21 user pays nothing: .co.uk domain transfer is free of charge WHMCS issue an invoice, "Domain Transfer - example.co.uk - 1 Year/s (01/05/2021 - 01/05/2022) - € 0.00" 2/5/21: transfer is completed; expiring date is 1/7/21, "next due date" is 01/05/2022 So, AFAIK just two ways to manage this: if you set transfer price to zero, you'll need to explain to the user that the invoice is wrong if you decide to include a one year renewal with domain transfer, when transfer is complete you'll need to process a domain renewal manually Both of them are misleading and definitely a mess... Am I missing something about this, or maybe there's any trick I don't know? How do you manage this issue?
  12. Hello. I'm not fully satisfied with performance of my WHMCS install, and I guess it can be optimized working on Apache configuration... So I googled around about tricks and best pratctices about Apache configuration for WHMCS, but found almost nothing: just this: https://docs.whmcs.com/System_Environment_Guide#Web_Server ... So here I'm to ask: about Apache environment, are the default values the better for WHMCS? Or there's some environment variable that can be better set to a different value? Any idea or experience about this?
  13. As for title: does exist any way to force a user to use just and only a certain payment Gateway, and no other? I.e.: there're few users that we want to force to pay only using wire transfer, and not using credit card or paypal: does exist any way to doit?
  14. What is crazy and misleading is that in the very same array you can find values as normal string (register, renew, transfer), and just redemption fee is in form of "Price Object"... Apart from this, thank you for your precious support!
  15. Hello. The API GetTLDPricing ( https://developers.whmcs.com/api-reference/gettldpricing/ ) gives as response an array with all available prices for every available extension domain; and this array may be available in Smarty, getting in Smarty something like: $tldpricing2 Origin: "Smarty object" Value Array (3) result => "success" currency => Array (6) id => "1" code => "USD" prefix => "$" suffix => " USD" format => "1" rate => "1.00000" pricing => Array (13) com => Array (8) categories => Array (2) 0 => "gTLD" 1 => "Popular" addons => Array (3) dns => false email => false idprotect => false group => "" register => Array (1) 1 => "14.95" transfer => Array (1) 1 => "14.95" renew => Array (1) 1 => "14.95" grace_period => Array (2) days => 30 price => WHMCS\View\Formatter\Price Object (0) redemption_period => null net => Array (8) categories => Array (2) 0 => "gTLD" 1 => "Popular" addons => Array (3) dns => false email => false idprotect => false group => "" register => Array (1) 1 => "14.95" transfer => Array (1) 1 => "14.95" renew => Array (1) 1 => "14.95" grace_period => Array (2) days => 30 price => WHMCS\View\Formatter\Price Object (0) redemption_period => null I have two different issues about this... 1 - what's the right syntax to recover, i.e., the registration price for a certain domain? I tried almost every possible syntax (but obviously missed the right one...) I defined the the extension using {$tld2=$tld|ltrim:'.'} and it works, so i.e. $tld2 gives "net" ... But if I try $tldpricing2[pricing][$tld2] [register][1] , or using -> , or any other possible PHP/smarty syntax, I'm getting garbage instead of the desired value... 😕 So, what's the right Smarty syntax to recover that value? 2 - about grace period renewal...WTF is " WHMCS\View\Formatter\Price Object (0) " ?! Why is it now given as any other price for registration, transfer or renew? And how can I convert it into a number (hopely, the right one) ?
  • 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