Jump to content

Michael

Moderators
  • Posts

    9,521
  • Joined

  • Last visited

  • Days Won

    185

Reputation Activity

  1. Like
    Michael reacted to Bit Bayou in Knowledge Base Plugin   
    Completely demolished the client side this past weekend. I think it'll be a erase, reset, and try again kind of thing from there.
  2. Like
    Michael reacted to Paul in Blesta Baby   
    Thanks guys!
     
    On the crazy scale, 1 seems to be alright, 2 is exponential craziness because they charge each other up. We'll see how 3 goes! 
  3. Like
    Michael reacted to Paul in Auto Login   
    It's assigned to b7, but since it's not done I can't say for sure if it will be in there.. that's the plan.
  4. Like
    Michael reacted to Paul in Auto Login   
    I have added this as CORE-597: Change log in link to use post instead of http basic auth
  5. Like
    Michael reacted to Paul in Blesta Baby   
    As some of you may know, my wife and I had a baby last Tuesday. His name is Silas and he was 9lbs 4oz and 21.5" in length.
     
    Here he is, all swaddled up. Blesta is keeping him nice and warm.

     
    And another without the pacifier.

  6. Like
    Michael reacted to Paul in New Blesta Site   
    It still needs some pages completed, but the design is totally done. Every time I was planning to make it live, I got sidetracked with other things, doh! I'll make sure it goes up sometime next week, curious what you think of it.
  7. Like
    Michael reacted to HIGGINS in New Blesta Site   
    Maybe it's a secret.
  8. Like
    Michael reacted to ffw in My Integration + A Css Question   
    Sorry about that, I was doing some DNS changes when you guys happened to look
  9. Like
    Michael got a reaction from Bit Bayou in Display Prices On Your Website.   
    Thanks to Cody, Tyson and Josh (Serverbin.net) for the code, together they helped get this code working for us the community and here is a little tutorial on how to get this working.
     
    Ok firstly you need to download the brand new API which Cody has developed to make it easier for developers from:
     
    https://github.com/phillipsdata/blesta_sdk (Click on download zip)
     
    Put the files into the root of the Blesta install.
     
     
    Then you need to make a API user and get the hash for the connection to your Blesta install.
     
     
    After you've done that you can do the following, you need to put this on the php file you wish the prices to be displayed on:
     
    If you aren't using a SSL on your installation change https://blestainstallationurl.com/api to http://blestainstallationurl.com/api
     
    <?php require_once "/home/username/public_html/blesta_api.php"; $user = "API USERNAME"; $key = "API KEY"; $url = "https://blestainstallationurl.com/api/"; $api = new BlestaApi($url, $user, $key); $company_id = 1; // Set acceptable currencies $valid_currencies = array("USD", "GBP", "EUR"); // Set default currency $selected_currency = "USD"; // Set another currency if given if (isset($_GET['currency']) && in_array(strtoupper($_GET['currency']), $valid_currencies)) $selected_currency = strtoupper($_GET['currency']); $price1 = getPackagePrice($api, 1, "month", 1); $price1_amount = formatCurrency($api, $price1->price, $price1->currency, $selected_currency, $company_id); function getPackagePrice($api, $package_id, $period, $term) { $package = $api->get("packages", "get", array('package_id' => $package_id))->response(); $package_price = null; foreach ($package->pricing as $price) { // Get monthly term if ($price->period == $period && $price->term == $term) { return $price; } } return false; } function formatCurrency($api, $amount, $from_currency, $to_currency, $company_id) { // Do the currency conversion $amount = $api->get("currencies", "convert", array('amount' => $amount, 'from_currency' => $from_currency, 'to_currency' => $to_currency, 'company_id' => $company_id))->response(); // Format the currency return $api->get("currencies", "toCurrency", array('value' => $amount, 'currency' => $to_currency, 'company_id' => $company_id))->response(); } ?>  
    You can alter the code for more than one product like the example for mine:
     
    <?php require_once "/home/cwadminb/public_html/blesta_api.php"; $user = "CubicWebs_API"; $key = "dbf8a2e7bd87bea1c79d868dba5a56f3"; $url = "https://billing.cubicwebs.com/api/"; $api = new BlestaApi($url, $user, $key); $company_id = 1; // Set acceptable currencies $valid_currencies = array("USD", "GBP", "EUR"); // Set default currency $selected_currency = "USD"; // Set another currency if given if (isset($_GET['currency']) && in_array(strtoupper($_GET['currency']), $valid_currencies)) $selected_currency = strtoupper($_GET['currency']); $price1 = getPackagePrice($api, 1, "month", 1); $price2 = getPackagePrice($api, 2, "month", 1); $price3 = getPackagePrice($api, 3, "month", 1); $price4 = getPackagePrice($api, 4, "month", 1); $price1_amount = formatCurrency($api, $price1->price, $price1->currency, $selected_currency, $company_id); $price2_amount = formatCurrency($api, $price2->price, $price2->currency, $selected_currency, $company_id); $price3_amount = formatCurrency($api, $price3->price, $price3->currency, $selected_currency, $company_id); $price4_amount = formatCurrency($api, $price4->price, $price4->currency, $selected_currency, $company_id); function getPackagePrice($api, $package_id, $period, $term) { $package = $api->get("packages", "get", array('package_id' => $package_id))->response(); $package_price = null; foreach ($package->pricing as $price) { // Get monthly term if ($price->period == $period && $price->term == $term) { return $price; } } return false; } function formatCurrency($api, $amount, $from_currency, $to_currency, $company_id) { // Do the currency conversion $amount = $api->get("currencies", "convert", array('amount' => $amount, 'from_currency' => $from_currency, 'to_currency' => $to_currency, 'company_id' => $company_id))->response(); // Format the currency return $api->get("currencies", "toCurrency", array('value' => $amount, 'currency' => $to_currency, 'company_id' => $company_id))->response(); } ?>  
    Where you wish the price to be put the following php code:
     
    <?php echo $price1_amount; ?>  
    Change the number to the product price you wish to display.
     
    Again thanks to the coders for helping the community.
     
    If you used this code when I posted it please update it as it has a fix from Tyson to ensure the GBP prices don't just change the USD symbol.
  10. Like
    Michael reacted to Paul in Spam!   
    Do you have your email going through a spam filter like Barracuda or Mailfoundry? That would reduce your spam overall, including ticket spam.
  11. Like
    Michael reacted to MemoryX2 in Speak To Search..   
    This can quickly and easily be changed by changing /app/views/admin/default/structure.pdt:
     
    <?php $this->Form->fieldText("search", "", array('class' => "search", 'placeholder'=>$this->Html->ifSet($search_options[$this->Html->ifSet($default_search_option, "smart")]))); ?>  
     to:
     
    <input type="text" name="search" value="" class="search" placeholder="Smart Search" x-webkit-speech>
  12. Like
    Michael reacted to Tyson in Gmail Has Gone Google Again...   
    I used to play on HomelanFed servers, but they banned me for "cheating". When you play the same map for so long, you pick up on a lot of things, and apparently shooting enemies through walls when you hear them back there is "cheating".
     
    Ever since then we had hosted our own CS servers. Turned into a great community, but slowly died down after Source came out.
  13. Like
    Michael got a reaction from MemoryX2 in Licensecart   
    not sure I'd rather learn the gist of Bootstrap and do it myself and that way it's not a cheap layout anyone can buy.
  14. Like
    Michael reacted to MemoryX2 in Display Prices On Your Website.   
    Looks awesome!!
    Thanks!
  15. Like
    Michael got a reaction from MemoryX2 in Display Prices On Your Website.   
    Thanks to Cody, Tyson and Josh (Serverbin.net) for the code, together they helped get this code working for us the community and here is a little tutorial on how to get this working.
     
    Ok firstly you need to download the brand new API which Cody has developed to make it easier for developers from:
     
    https://github.com/phillipsdata/blesta_sdk (Click on download zip)
     
    Put the files into the root of the Blesta install.
     
     
    Then you need to make a API user and get the hash for the connection to your Blesta install.
     
     
    After you've done that you can do the following, you need to put this on the php file you wish the prices to be displayed on:
     
    If you aren't using a SSL on your installation change https://blestainstallationurl.com/api to http://blestainstallationurl.com/api
     
    <?php require_once "/home/username/public_html/blesta_api.php"; $user = "API USERNAME"; $key = "API KEY"; $url = "https://blestainstallationurl.com/api/"; $api = new BlestaApi($url, $user, $key); $company_id = 1; // Set acceptable currencies $valid_currencies = array("USD", "GBP", "EUR"); // Set default currency $selected_currency = "USD"; // Set another currency if given if (isset($_GET['currency']) && in_array(strtoupper($_GET['currency']), $valid_currencies)) $selected_currency = strtoupper($_GET['currency']); $price1 = getPackagePrice($api, 1, "month", 1); $price1_amount = formatCurrency($api, $price1->price, $price1->currency, $selected_currency, $company_id); function getPackagePrice($api, $package_id, $period, $term) { $package = $api->get("packages", "get", array('package_id' => $package_id))->response(); $package_price = null; foreach ($package->pricing as $price) { // Get monthly term if ($price->period == $period && $price->term == $term) { return $price; } } return false; } function formatCurrency($api, $amount, $from_currency, $to_currency, $company_id) { // Do the currency conversion $amount = $api->get("currencies", "convert", array('amount' => $amount, 'from_currency' => $from_currency, 'to_currency' => $to_currency, 'company_id' => $company_id))->response(); // Format the currency return $api->get("currencies", "toCurrency", array('value' => $amount, 'currency' => $to_currency, 'company_id' => $company_id))->response(); } ?>  
    You can alter the code for more than one product like the example for mine:
     
    <?php require_once "/home/cwadminb/public_html/blesta_api.php"; $user = "CubicWebs_API"; $key = "dbf8a2e7bd87bea1c79d868dba5a56f3"; $url = "https://billing.cubicwebs.com/api/"; $api = new BlestaApi($url, $user, $key); $company_id = 1; // Set acceptable currencies $valid_currencies = array("USD", "GBP", "EUR"); // Set default currency $selected_currency = "USD"; // Set another currency if given if (isset($_GET['currency']) && in_array(strtoupper($_GET['currency']), $valid_currencies)) $selected_currency = strtoupper($_GET['currency']); $price1 = getPackagePrice($api, 1, "month", 1); $price2 = getPackagePrice($api, 2, "month", 1); $price3 = getPackagePrice($api, 3, "month", 1); $price4 = getPackagePrice($api, 4, "month", 1); $price1_amount = formatCurrency($api, $price1->price, $price1->currency, $selected_currency, $company_id); $price2_amount = formatCurrency($api, $price2->price, $price2->currency, $selected_currency, $company_id); $price3_amount = formatCurrency($api, $price3->price, $price3->currency, $selected_currency, $company_id); $price4_amount = formatCurrency($api, $price4->price, $price4->currency, $selected_currency, $company_id); function getPackagePrice($api, $package_id, $period, $term) { $package = $api->get("packages", "get", array('package_id' => $package_id))->response(); $package_price = null; foreach ($package->pricing as $price) { // Get monthly term if ($price->period == $period && $price->term == $term) { return $price; } } return false; } function formatCurrency($api, $amount, $from_currency, $to_currency, $company_id) { // Do the currency conversion $amount = $api->get("currencies", "convert", array('amount' => $amount, 'from_currency' => $from_currency, 'to_currency' => $to_currency, 'company_id' => $company_id))->response(); // Format the currency return $api->get("currencies", "toCurrency", array('value' => $amount, 'currency' => $to_currency, 'company_id' => $company_id))->response(); } ?>  
    Where you wish the price to be put the following php code:
     
    <?php echo $price1_amount; ?>  
    Change the number to the product price you wish to display.
     
    Again thanks to the coders for helping the community.
     
    If you used this code when I posted it please update it as it has a fix from Tyson to ensure the GBP prices don't just change the USD symbol.
  16. Like
    Michael reacted to Tyson in Gmail Has Gone Google Again...   
    Counter-Strike: Global Offensive
     
    I'm not much a fan of CS:GO. I prefer the older versions from 5-10 years ago.
  17. Like
    Michael reacted to Paul in Knowledge Base Plugin   
    That's what it's all about!
  18. Like
    Michael reacted to Paul in Cancel Reason + Account Credit   
    I've added the cancel reason suggestion to CORE-590 and tentatively assigned it to version 3.1.
     
    The credit for cancelling early should be included in proration.
  19. Like
    Michael reacted to Paul in A Way To Disable Pdf Attachment In Invoice Emails   
    This has been assigned to CORE-589 and is scheduled for version 3.1 currently. It will likely be a setting for the company and client group.
  20. Like
    Michael reacted to Max in Dedicated Servers & Vps Module   
    Download link for the module: http://www2.noc-ps.com/docs/blesta-module-installation/
    (only useful if you already have a NOC-PS server to manage your racks)
  21. Like
    Michael got a reaction from Bit Bayou in Knowledge Base Plugin   
    I think it's amazing and when your finished I'm hoping to be able to fully move over, I will need to find a way to fix the logicboxes module on my install as it doesn't want to connect unlike my current software.
  22. Like
    Michael reacted to Bit Bayou in Knowledge Base Plugin   
    Just an update on the plugin I'm working on.
     
    The admin section seems to be working fine now.
     
    Not making it too fancy or complex. Simple categories with articles in them.
     
     
    I'll modify this post with updated information when I finish a release.

  23. Like
    Michael reacted to FRH Dave in Knowledge Base Plugin   
    And so it begins:  the great Blesta community module drive.
  24. Like
    Michael got a reaction from FRH Dave in Cancel Reason + Account Credit   
    Good suggestion maybe even make them a promotion code to save that, but it has to be a optional thing so like tick boxes (settings on the settings pages).
  25. Like
    Michael got a reaction from Bit Bayou in Licensecart   
    Yeah my default one looks rubbish haha.
     
    My new wallpaper:
     

×
×
  • Create New...