Jump to content

Adam

Members
  • Posts

    131
  • Joined

  • Last visited

  • Days Won

    16

Reputation Activity

  1. Like
    Adam got a reaction from Paul in Mailparse extension missing   
    See my response in another post on how to install this
    Thanks,
    -Adam
  2. Like
    Adam got a reaction from Blesta Addons in Registering Plugin Action - widget_client_home   
    Should I open a ticket with Blesta instead of posting to community forums? Is my explanation unclear?
    -Adam
  3. Like
    Adam got a reaction from Michael in Nginx Config   
    This goes in your nginx config file. If you need further help, ask your technical staff or hire a server management company.
    -Adam
  4. Like
    Adam got a reaction from BeZazz in Cache Directory Writable Test   
    We are installing Blesta 4.0.0 and notice that during the installation process an alert was issued saying that our cache directory was not writable. This was strange to us because in our environment, the user who runs PHP has write access (we use suPHP for security reasons).
     
    Upon closer look we notice that Blesta 4.0.0 does not ship with an empty cache directory (as defined by CACHEDIR). Rather, the code assumes that the cache directory already exists. You can see this below:
     
    app/controllers/install.php 807 'cache_writable' => [ 808 'message' => Language::_('SystemRequirements.!warning.cache_writable.recommended', true, CACHEDIR), 809 'req' => true, 810 'cur' => is_writable(CACHEDIR) 811 ], // To cache view files for performance The PHP function is_writable does two things: checks if the user can write AND if the file exists. Since Blesta does not ship with an empty CACHEDIR (nor was anything mentioned to create one in the README), we get an error for no reason.
     
    Below is a patch for a proposed fix. It checks to see if a file exists, if it does, then performs the is_writable test. Otherwise, attempt to create a directory and check if we can write to it The second test is probably pointless cause if you can create a directory you should be able to write to it, but edge cases can be tricky if parent folder has sticky bits enable, etc.
    -Adam
     
    diff --git a/app/controllers/install.php b/app/controllers/install.php index a6c462e..414d3a8 100644 --- a/app/controllers/install.php +++ b/app/controllers/install.php @@ -807,7 +807,7 @@ class Install extends Controller 'cache_writable' => [ 'message' => Language::_('SystemRequirements.!warning.cache_writable.recommended', true, CACHEDIR), 'req' => true, - 'cur' => is_writable(CACHEDIR) + 'cur' => (file_exists(CACHEDIR)) ? is_writable(CACHEDIR) : (mkdir(CACHEDIR, 0755) && is_writable(CACHEDIR)) ? true : false ], // To cache view files for performance 'ext-simplexml' => [ 'message' => Language::_('SystemRequirements.!warning.simplexml.recommended', true),  
  5. Like
    Adam reacted to Paul in Cache Directory Writable Test   
    Because the cache directory was empty, it was removed automatically by our build process. This was corrected in CORE-2366 for the full build of 4.0.1, and will ship with full builds going forward.
  6. Like
    Adam got a reaction from Paul in Event Handlers - Client & Contact CRUD   
    Thanks Paul. That is awesome.
     
    Once Blesta 4.1 is release I can release my Cerb (www.cerb.ai) module with Blesta.
    -Adam
  7. Like
    Adam got a reaction from Michael in Event Handlers - Client & Contact CRUD   
    Thanks Paul. That is awesome.
     
    Once Blesta 4.1 is release I can release my Cerb (www.cerb.ai) module with Blesta.
    -Adam
  8. Like
    Adam got a reaction from activa in Cache Directory Writable Test   
    Any update on this from the Blesta staff?
     
    -Adam
  9. Like
    Adam reacted to Paul in Event Handlers - Client & Contact CRUD   
    We added 28 new events to 4.1. You can see them in the documentation at https://docs.blesta.com/display/dev/Event+Handlers (Search the page for 4.1)
  10. Like
    Adam got a reaction from Paul in Blesta 4 on PHP7   
    For development I tried to run PHP 7.1 but IonCube does not support it.. yet. Had to recompile to 7.0. Everything works fine.
    -Adam
  11. Like
    Adam got a reaction from Michael in Blesta 4 on PHP7   
    For development I tried to run PHP 7.1 but IonCube does not support it.. yet. Had to recompile to 7.0. Everything works fine.
    -Adam
  12. Like
    Adam got a reaction from Michael in Read paramenters from a module   
    Where are you planning on running this code? In a plugin? In a module? 
    More information here: https://docs.blesta.com/display/dev/Overview
    -Adam
  13. Like
    Adam got a reaction from Blesta Addons in New cpanel api authentication   
    cPanel is not removing the old WHM authentication anytime soon. It will be years, and I mean years, before cPanel fully deprecates the old style key based authentication in favor for the ReST one.
    This should not be the only reason holding you back on upgrading.
     
  14. Like
    Adam reacted to turner2f in A PAID Itemized Receipt Should be Attached to the Customer's "Paid Notification" Email   
    There is no detailed, itemized description that shows the customer  what  they paid for.

    Currently when the customer receives a "PAID" notification email they are NOT shown what they paid for.

    They have to go through the process of logging into their account in order to get an itemized paid receipt.
    And in some case if they do not remember their password, they now have to go through an additional process of a password reset.

    ===========

    Other "Billing" notifications to the customer have an itemized PDF invoice attached to it, whereas this same feature is  NOT executed when the customer gets a "PAID" email notification.

    ===========

    1) - An " Itemized PAID Receipt" should be attached to the customer's "Paid Notification" Email.


    2) - OR... the customer's "Paid Notification Email" needs to display an itemized detail of what they just paid for within the email message.
  15. Like
    Adam got a reaction from activa in [Module] Data Pools Module   
    Definitely an original concept. Very neat.
    -Adam
  16. Like
    Adam got a reaction from activa in [Plugin] Support Manager Pro - Tickets Delete, Merge, Spam, Multiple Tickets.   
    Looking at the source code on GitHub: https://github.com/qlpqlp/Blesta/tree/master/plugins/support_managerpro
    It appears @PauloV has licensed the software under's Blesta license agreement AND gives all copyright to Phillips Data, Inc. Does not even include himself.
    http://www.blesta.com/license/
    I am no lawyer, but I think @PauloV is breaking the license agreement as he is distributing the software without the written authorization of Phillips Data, Inc. Again, @PauloVchoose that license and why he did is a mystery. One could argue that Phillips Data, Inc. can submit a cease and desist order to GitHub and they would be obligated to remove the code from GitHub.
     
    I do not think @PauloV understands much about software licensing. I would assume his intend was to make it available, free of charge, to the community and for them to do what they want with it -- public domain.
    -Adam
  17. Like
    Adam got a reaction from Michael in How do I re order the support ticket departments on client page?   
    Er ya, I totally missed that part in your original post. My bad.
    That is a bit more complicated and would require more changes to get done right -- modify the Blesta Admin GUI to allow admins reorder departments, which would require controller code changes as well as add an extra column to the database schema. No simple one line fix.
    I would highly recommend and avoid changing the id column in the database. That id is the primary key and used in multiple tables as you noted earlier.
     
    The hackiest solution I can think of would be to modify views/default/client_tickets_departments.pdt and hard code the order there. I have not tested this code but something like this should work:
    20 $departmentsSorted = array(); 21 foreach ($this->Html->ifSet($departments, []) as $department) { 22 if($department->name == 'Test 2') 23 $departmentedSorted = array_unshift($departmentsSorted,$department); 24 else if($department->name == 'Test 3') 25 $departmentedSorted = array_unshift($departmentsSorted,$department); 26 // All other departments get pushed to the end 27 else 28 $departmentedSorted = array_push($departmentsSorted,$department); 29 } 30 foreach ($this->Html->ifSet($departmentsSorted, []) as $department) { Test 3 is the name of the department and it will be shown first. array_unshift inserts to the front of the list while push inserts to the end. You could also use $department->id which would allow you to change the department name without having to re-do this file.
     
    If you are looking for something more complex, then you need to get some custom work done.
    -Adam
     
  18. Like
    Adam got a reaction from Blesta Addons in [Module] Data Pools Module   
    Definitely an original concept. Very neat.
    -Adam
  19. Like
    Adam got a reaction from Michael in [Module] Data Pools Module   
    Definitely an original concept. Very neat.
    -Adam
  20. Like
    Adam got a reaction from activa in New cpanel api authentication   
    cPanel is not removing the old WHM authentication anytime soon. It will be years, and I mean years, before cPanel fully deprecates the old style key based authentication in favor for the ReST one.
    This should not be the only reason holding you back on upgrading.
     
  21. Like
    Adam reacted to calottery in BEWARE: LicenseCart - Do Not Buy!!   
    STAY AWAY from License Cart
    TL;DR - Poor license support, Even poorer customer service. A break up story.
    Dec 18th - Bought a Year's License from LicenseCart + Multi-Company licenses. Michael Dance was pretty helpful answering all Questions and I thought my time with them would be smooth and pleasant.
    I've since then have become extremely frustrated with Michael and the Licensecart team as my (now) Yearly license + 3 addon licenses have for the last 5 months have been unactivated and needed re-activation repeatedly. I don't get real-time alerts on when licenses go down, so until I go verify them myself, I don't know for how long my helpdesks have been down for. Every month, I had to go re-activate my licenses with Licensecart, where I've put in friendly requests to keep them up and running as I paid for a Year. Unfortunately, they never did so.
    April 26th - My license goes down again. With my live environment, I kindly request a pro-rated refund for un-used time. Frustrated yes, but no harsh language, just a request to refund my unused time. For efficiency, I calculated the remaining time and requested a refund via PayPal. 
    LicenseCart's Response: My entire account is removed, terminated, 0 access to support or the ability to reply, a very snarky reply from Michael. And...of course. 0 reimbursement in Paypal.
    I'm moving on with purchasing licenses directly from Paul @ Blesta. 
    Would no longer recommend LicenseCart, although their prices and knowledge of the platform are some of the best in the community. I'll update this ticket honestly if Michael replies back to me privately to apologize, and/or if the pro-rated refund ever comes. 

  22. Like
    Adam got a reaction from Daniel B in PDF invoice directly in the browser [patch]   
    I think the intent was to produce a patch file that you can run from the command line and fill in all the changes automatically, or fail if it can not. However it looks like @Hix posted an diff based on an older RCS format. Creating a diff with the 
    diff -u option would be better and easier to understand, IMO. 
    -Adam
  23. Like
    Adam got a reaction from MDHMatt in New cpanel api authentication   
    Yes, WHM API 1 (not 0). cPanel has a few SDKs. Their official one is only for XML responses 
    https://github.com/CpanelInc/publicapi-php
    But they also support JSON. All API functions support XML and JSON. If you look at their confluence page for all SDKs, they provide sample Perl and JSON code.
    Example:
    https://documentation.cpanel.net/display/SDK/Guide+to+API+Authentication+-+API+Tokens
     
     
    Here a list of 3rd party cPanel libraries. PHP is included.
    https://documentation.cpanel.net/display/SDK/Quickstart+Development+Guide+-+Libraries
     
    -Adam
  24. Like
    Adam got a reaction from activa in New cpanel api authentication   
    Yes, WHM API 1 (not 0). cPanel has a few SDKs. Their official one is only for XML responses 
    https://github.com/CpanelInc/publicapi-php
    But they also support JSON. All API functions support XML and JSON. If you look at their confluence page for all SDKs, they provide sample Perl and JSON code.
    Example:
    https://documentation.cpanel.net/display/SDK/Guide+to+API+Authentication+-+API+Tokens
     
     
    Here a list of 3rd party cPanel libraries. PHP is included.
    https://documentation.cpanel.net/display/SDK/Quickstart+Development+Guide+-+Libraries
     
    -Adam
  25. Like
    Adam got a reaction from Michael in New cpanel api authentication   
    Yes, WHM API 1 (not 0). cPanel has a few SDKs. Their official one is only for XML responses 
    https://github.com/CpanelInc/publicapi-php
    But they also support JSON. All API functions support XML and JSON. If you look at their confluence page for all SDKs, they provide sample Perl and JSON code.
    Example:
    https://documentation.cpanel.net/display/SDK/Guide+to+API+Authentication+-+API+Tokens
     
     
    Here a list of 3rd party cPanel libraries. PHP is included.
    https://documentation.cpanel.net/display/SDK/Quickstart+Development+Guide+-+Libraries
     
    -Adam
×
×
  • Create New...