Leaderboard
Popular Content
Showing content with the highest reputation on 08/18/2018 in all areas
-
Introducing CanadaCloudHost
Paul and one other reacted to CanadaCloudHost for a topic
2 points -
You may be best setting a public price mate, and people can then get in touch with you. Good luck selling.2 points
-
Last Attempt, changing initial currency
Paul and one other reacted to Blesta Addons for a question
Welcome to Blesta2 points -
Now, I can start selling at least a few bits, other issues remain, they must be worked on, step by step2 points
-
You are great, I got the thing done and it works !!!!!!!!!!! ???????????????? Thank you2 points
-
Last Attempt, changing initial currency
activa and one other reacted to Blesta Addons for a question
a simple tip is to add the fallowing code in set setCurrency() protected function setCurrency() { if (!$this->client) { $this->SessionCart->setData('currency', 'VND'); } .... ....2 points -
Currently the validateHostname() function in most modules looks something like this: /** * Validates that the given hostname is valid * * @param string $host_name The host name to validate * @param bool $require_fqdn True to require a FQDN (e.g. host.domain.com), * or false for a partial name (e.g. domain.com) (optional, default false) * @return bool True if the hostname is valid, false otherwise */ public function validateHostName($host_name, $require_fqdn = false) { if (strlen($host_name) > 255) { return false; } $octet = "([a-z0-9]|[a-z0-9][a-z0-9\-]{0,61}[a-z0-9])"; $nested_octet = "(\." . $octet . ')'; $hostname_regex = '/^' . $octet . $nested_octet . ($require_fqdn ? $nested_octet : '') . '+$/'; return $this->Input->matches($host_name, $hostname_regex); } While sure hostnames shouldn't contain uppercase characters (my opinion), it's perfectly valid RFC and we shouldn't cause undue burden on the customer with vague rejection messages that what they entered isn't a valid domain/hostname simply because it contains uppercase letters. A better solution would be to update the regex to accept A-z and then in the modules run it through strtolower().1 point
-
Introducing CanadaCloudHost
activa reacted to CanadaCloudHost for a topic
Thanks Joseph H we're adding material effect on top aswell to give it that final canadian sexyness once this theme out the way i will be porting bootstrap 4.1 to blesta for you guys to enjoy free.1 point -
Last Attempt, changing initial currency
activa reacted to Blesta Addons for a question
/** * Sets the ISO 4217 currency code to use for the order form */ protected function setCurrency() { // Set custom currency for no logged in users if (!$this->client) { $this->SessionCart->setData('currency', 'VND'); } // If user attempts to change currency, verify it can be set // Currency can only be changed if cart is empty if (isset($this->get['currency']) && $this->SessionCart->isEmptyCart()) { foreach ($this->order_form->currencies as $currency) { if ($currency->currency == $this->get['currency']) { $this->SessionCart->setData('currency', $currency->currency); break; } } } elseif (!isset($this->get['currency']) && $this->SessionCart->isEmptyCart()) { // If a queued item for the cart exists, verify and set its pricing currency for the order form $cart = $this->SessionCart->get(); if ($this->SessionCart->isEmptyCart() && !$this->SessionCart->isEmptyQueue() && !$this->SessionCart->getData('currency') && ($queue_item = $this->SessionCart->checkQueue()) && count($cart['queue']) == 1) { $pricing_id = $queue_item['pricing_id']; // Fetch the package info for the selected pricing ID if (($package = $this->Packages->getByPricingId($pricing_id))) { // Find the matching pricing foreach ($package->pricing as $pricing) { // Set the queued pricing currency as the form currency if ($pricing->id == $pricing_id) { foreach ($this->order_form->currencies as $currency) { if ($currency->currency == $pricing->currency) { $this->SessionCart->setData('currency', $currency->currency); break; } } break; } } } } } // If no currency for this session, default to the company's default currency, // or the first available currency for the order form if ($this->SessionCart->getData('currency') == null) { $temp = $this->Companies->getSetting($this->company_id, 'default_currency'); if ($temp) { $company_currency = $temp->value; } foreach ($this->order_form->currencies as $currency) { if ($currency->currency == $company_currency) { $this->SessionCart->setData('currency', $currency->currency); break; } } if ($this->SessionCart->getData('currency') == null && isset($this->order_form->currencies[0]->currency)) { $this->SessionCart->setData('currency', $this->order_form->currencies[0]->currency); } } }1 point -
It looks like almost any module that accepts a hostname uses that check to validate it. PHP offers FILTER_VALIDATE_DOMAIN that you can use with filter_var to check a hostname (along with the flag FILTER_FLAG_HOSTNAME in php 7+) which which would provide a more robust checking mechanism. This still would have issues with internationalized domain names but covers a large majority of cases. On the other hand if you fix this yourself, adding support for IDN's would be something nice as well as they seem to be gaining popularity.1 point
-
Remove PayJunction from Supported Gateways
katycomputer reacted to coreyman for a topic
Stripe is continuing to support hosting businesses. Just got in contact with them.1 point -
Remove PayJunction from Supported Gateways
katycomputer reacted to Nelsa for a topic
There are lot of payment processors that don't support hosting,seo, domains,SSL and similar services....it is unbealivable..even we have better records than most business in other niche....for example we had 3 Paypal open cases from 2014 and 2 chargebacks from users paid by credit cards many of them simple tag these categories as risky @Paul, I suggest check this before start working on gateway...I mean why would you or any company waste your resources for a payment processor that doesn't support niche where 99% of your customers are working in1 point -
Remove PayJunction from Supported Gateways
katycomputer reacted to Paul for a topic
PayJunction does not allow web hosting providers? I remember when BluePay pulled this nonsense. I complained, dropped them as someone we recommend, and then they were acquired by someone else. They called me, told me that they no longer block hosting providers, and apologized.. but I can't trust them now. They dropped one of our customers for doing web hosting. That's insane. Web hosting does not equal selling crack. Do you have an email contact at PayJunction?1 point -
is time to talk about domains ?
Beav reacted to Blesta Addons for a topic
all we know blesta is working or has attention to create a new domain manager. it will take time of course, not sur what is the ETA and what is the progress in this subject . but what i'm sure of it it time to talk about this, the silence that blesta staff has about this subject render it a bit Unclear and hazy . we need a word from staff about what they have as ideas or in what step they are now, leaving us like this for almost 3 years is something unacceptable.0 points