Jump to content

Blesta Addons

Alpha Developers
  • Posts

    4,868
  • Joined

  • Last visited

  • Days Won

    390

Everything posted by Blesta Addons

  1. i'm using v4.1 too, and i tried to change the pagination attributes but no result, i'm using the pagination in the admin_manage_plugin.php file . can you post your array merge . i think you are testing in the client side .
  2. i have tried all, but nothing work, can you test override the pagination class and links class, i begin to feel is a bug .
  3. We Will se this offically or we should every update make the same edit to the cpanel module .
  4. i want to disable the ajax class from herf links in the pagination, but it appear is not taking effect even if, i have added the new class to the pagination parametre but is affecting the class 'navigation' => array( // All numeric links 'numerical' => [ 'link_attributes' => ['class' => 'none'] ] ) i want to disable the ajax call from the pagination links (admin side). how to do this ?
  5. You can download from Github and use it . it will work .
  6. Normally you should not remove it, you should set it to none , something like open_basedir none
  7. as app_controller encoded i can't make a look at it, but i think the language is defined in the fallowing order : 1 - get the default company language, then set it in Language::setlang() and Configure::set('Blesta.language') . 2 - check if it a user, if yes then get the user's language and set it in Language::setlang() and Configure::set('Blesta.language') . 3 - if not a user and not a staff, check if the sessions has the 'blesta_language' defined, if yes set it in Language::setlang() and Configure::set('Blesta.language') . so after that, we are sur we will use the correct language for every case. in other place of Blesta, is not worth calling anymore the language to use, fro example in order plugin : $company_settings['language'] in support manager // Set the company language $language = $this->SettingsCollection->fetchSetting(null, $this->company_id, 'language'); if ($language && array_key_exists('value', $language)) { $language_codes = ['client' => $language['value'], 'company' => $language['value']]; } // Set the client language if ($this->Session->read('blesta_client_id') && ($client = $this->Clients->get($this->Session->read('blesta_client_id'))) ) { $language = $this->SettingsCollection->fetchClientSetting($client->id, null, 'language'); if ($language && array_key_exists('value', $language)) { $language_codes['client'] = $language['value']; } } normally the client language here is not the company language, if is a visitor and has changed the language, the company language will no more the selected language, and if is a user, then the language already set in the configure. so a simple line will be enough // Set the company & client language $language = $this->SettingsCollection->fetchSetting(null, $this->company_id, 'language'); if ($language && array_key_exists('value', $language)) { $language_codes = ['client' => Configure::get('Blesta.language'), 'company' => $language['value']]; } i hope i have well describe the situation . Another thing that it should be in consideration, before any set for the language in the session we should first check if the language already installed, if not we should not set in the session or in the configure .
  8. it was a missing files, after he uploaded all the new files again , the admin was working.
  9. a very simple approach is to do it as : // only clients can view the invoice if ($this->Session->read('blesta_staff_id') > 0) { // view from admin side // This need to get the client data and change the view to the admin view } else { $this->requireLogin(); } BUT take note : - normally it would lead a error if the error reporting enabled . - the invoice will be showed from client template not from admin side . maybe other thing that i can't verify them as need to make a deep look in it .
  10. i never said that this intentional behavior, i just make attention to the requirelogin(), the function take care about who have the right permission to view the a blesta url, maybe removing it will cause a security hole that i'm not responsible for it . i have not yet tested or tried to correct this behavior, if you have tested it you can use it, but i will not encourage people to disable the requireLogin() function, as it not only a login issue, is also permissions, staff, etc ... anyway if you have tested you can use it and used by other until i get free time and release a official patch.
  11. Your are right . you think someone in this situation will take care of tickets
  12. maybe he is in holidays or there are something else preventing him from appear here .
  13. This now can be marked as resolved .
  14. this is in the admin side only ? enable error reporting from config file to see the full error message, or install the "The debugger plugin and paste the whole error .
  15. Send me a PM .
  16. delete the logo and try to check if the invoice work now without a logo .
  17. i still believe that you have a missed logo or background image, can you posta screenshoot of your Invoice Customization under , settings -> Billing/Payment -> Invoice Customization .
  18. From v4.1.0, a new option was introduced for language that allow unauthenticated clients to select the language from a language selector . in some blesta part, blesta ignore the selected language, and use the default company language, like the recaptcha, the knowledge base, and may be other place that i have not yet tested or notified about it. so i suggest is better to change if the user already has selected a language and use it . i don't know why blesta every time go to get the language from database if already it get it and set it the main controller, so i believe blesta it need only to use the Configure to get the selected language, and instead of every time make a call to get the company or client language. Configure::get('Blesta.language') https://requests.blesta.com/topic/user-language
  19. ATTENTION : Do not change this line, this will allow any one view the invoice data . We will try to fix or see what we can do, for this issue. just be patient, as all know this take time and we have a lot of addons that are free/paid that need attention, the income is not so good to really concentrate in blesta addons only, so we need to do other project to stay alive
  20. maybe the logo or the background images of invoices no more exist ?!
  21. I have noticed that the recaptcha is not shown in the registration form, from admin side is enabled . i should investigate why is not showing . any mod_security rule to block such attach, i don't use any mod security rule as the only website in the server if blesta. EDIT: captcha is showing well in any order form type, unless the registration client type , the recaptcha is not shown !!! i have found that the captcha was disabled from the client registration template .
  22. Based in the @Paul answer, then the link in the mass mailer would be something like : http://your_domain.com/blesta_path/services/upgrade/{service.id}
  23. in one of blesta installation , we have noticed that the client id incrementation has been changed from order to a higher number . the client IDs was 4721, 4722 .... 4730 , then it was moved directly 11784 ... then 117845, 11786 .... how this can happen? blesta? mysql issue?
  24. i don't think, the upgrade is done inside the manage tab of the service . not sure if the service.id is available in the newsletter mailer in blesta, if yes i think you can do it .
  25. have you tested my solution, is worked for you ?
×
×
  • Create New...