Select language at the footer autosave?

Fatih Bayram Posted in Technical Support 9 years ago

Hello community I want that the user can select at the footer the language. So I found the language code in ossn/components/ossnprofile/plugins/default/forms/ossnprofile/edit.php

I added this code in to the footer ossn/themes/goblue/plugins/default/theme/page/elements/footer.php

<label><?php echo ossn_print('language');?></label>
<?php
    //profile edit form shows wrong default language #546
    $userlanguage = ossn_site_settings('language');
    echo ossn_plugin_view('input/dropdown', array(
                'name' => 'language',
                'value' => $userlanguage,
                'options' => ossn_get_installed_translations(false),
    ));
?>
</div>

So I can now select a language but this will not save automatically how I can make that after I change language that saves automatically?

Replies
Turkish Fatih Bayram Replied 9 years ago

Hmm okay. But when I add this after
</div>

<input type="submit" class="btn btn-primary" value="<?php echo ossn_print('save'); ?>"/>

I see the buttton save but nothing will be saved/changed. Do you have a solution ?

Indonesian Alex Daniel Replied 9 years ago

Hello Fatih Bayram, I think OSSN didn't supported the cookies and the default language selection automatically.