Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/12/2016 in all areas

  1. Licensecart your code should be: <?php // Selected language $language_code = $_GET['set_language']; if( $language_code != '' ){ Configure::set('Blesta.language', $language_code); Language::setLang(Configure::get('Blesta.language')); setcookie('set_language', $language_code, time() + (86400 * 30), "/"); // 86400 = 1 day }else{ $language_code = "en_us"; } ?> <form method="GET" class="form-inline text-center"> <select name="set_language" class="form-control input-sm" id="set_language"> <option value="en_us" <?php if ( $_COOKIE["set_language"] == 'en_us' ){ echo 'selected'; } ?>>English</option> <option value="fr_fr" <?php if ( $_COOKIE["set_language"] == 'fr_fr' ){ echo 'selected'; } ?>>French</option> </select> </form> <script type="text/javascript"> jQuery(document).ready(function() { jQuery("#set_language").change(function() { jQuery(this).closest("form").attr('action', window.location.href); jQuery(this).closest("form").submit(); }); }); </script> also this part needs to be changed: }else{ $language_code = "en_us"; } to: }else{ $language_code = Configure::get('Blesta.language'); } This way it will get the default language that is set in admin. (can be different than en_us).
    2 points
  2. 1 point
  3. What's your package welcome email template?
    1 point
  4. You should still store it in the session. What I am suggesting is that when you read it from the session, you set the configuration value afterward. // Selected language $language_code = $this->Session->read('language'); # # TODO: ensure the $language_code is a valid language in the system, # otherwise fall back to the default language # // Set the language Configure::set('Blesta.language', $language_code); Language::setLang(Configure::get('Blesta.language')); The end result is that these values are consistent: $this->Session->read('language') === Configure::get('Blesta.language')
    1 point
  5. Michael

    Sale Questions

    I don't believe it does on Piping but you can use POP3 or IMAP if you wish. Piping goes sales@yourdomain.com ---> pipe --> Blesta not sales@yourdomain.com --> Email Mailbox --> Pipe -> Blesta.
    1 point
  6. Paul

    Tcadmin Module?

    Great, thanks for the feedback. I'm guessing we will only implement TCAdmin v2, which I'm glad to see supports Linux as well as Windows.
    1 point
  7. Paul

    Sale Questions

    Just to add, even though the documentation says we don't allow tickets from reseller customers, you can still open tickets and we will respond to them. We are just limited in what we can do.. for example, we can't re-issue your license or upgrade/downgrade, add support & updates etc.. as the reseller is responsible for that.
    1 point
  8. Michael

    Sale Questions

    From them or here. https://docs.blesta.com/display/support/Getting+Support#GettingSupport-SupportAccess Yes it does. Yes it does.
    1 point
×
×
  • Create New...