[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH] Setting the 'login_text_below_login_box' preference in the lib/prefs/login.php file
"Adrien Mbuya Maloba \(@adrienmaloba\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a7df904b1e14_381b708947818c@gitlab-sidekiq-low-urgency-cpu-bound-v2-5bfd78ff69-tnsfn.mail> |
Adrien Mbuya Maloba pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
adf37998 by NasserNgandu at 2026-08-13T19:49:31+03:00
[ENH] Setting the 'login_text_below_login_box' preference in the lib/prefs/login.php file
---
* [FIX] Code correct
* [ENH] Setting the 'login_textBelowLoginBox' preference in the lib/prefs/login.php file
See merge request tikiwiki/tiki!10861
- - - - -
5 changed files:
- lib/prefs/global.php
- lib/prefs/login.php
- modules/mod-func-login_box.php
- templates/admin/include_login.tpl
- templates/modules/mod-login_box.tpl
Changes:
=====================================
lib/prefs/global.php
=====================================
@@ -501,15 +501,6 @@ function prefs_global_list($partial = false)
'hint' => tra('Go to [tiki-admingroups.php|Admin Groups] to select which tracker and fields to display.'),
'default' => 'n',
],
- 'textBelowLoginBox' => [
- 'name' => tra('Text below login box'),
- 'description' => tra('Text to display below the login box.'),
- 'hint' => tra("Supports Tiki syntax"),
- 'filter' => 'wikicontent',
- 'type' => 'textarea',
- 'size' => '5',
- 'default' => '',
- ],
'eponymousGroups' => [
'name' => tra('Create a new group for each user'),
'description' => tra('Automatically create a group for each user in order to, for example, assign permissions on the individual-user level.'),
=====================================
lib/prefs/login.php
=====================================
@@ -189,5 +189,14 @@ function prefs_login_list()
'default' => 'n',
'help' => $loginGeneralPreferencesHelp,
],
+ 'login_text_below_login_box' => [
+ 'name' => tra('Text below login box'),
+ 'description' => tra('Text to display below the login box.'),
+ 'hint' => tra("Supports Tiki syntax"),
+ 'filter' => 'wikicontent',
+ 'type' => 'textarea',
+ 'size' => '5',
+ 'default' => '',
+ ],
];
}
=====================================
modules/mod-func-login_box.php
=====================================
@@ -119,7 +119,7 @@ function module_login_box($mod_reference, &$module_params)
$smarty->assign('login_text_explanation', $tikilib->get_preference('login_text_explanation'));
$smarty->assign('EMAIL_2FA', TwoFactorAuth::EMAIL_2FA);
$smarty->assign('TOTP_2FA', TwoFactorAuth::TOTP_2FA);
- $smarty->assign('textBelowLoginBox', TikiLib::lib('parser')->parse_data($prefs['textBelowLoginBox']));
+ $smarty->assign('login_text_below_login_box', TikiLib::lib('parser')->parse_data($prefs['login_text_below_login_box']));
$urlPrefix = in_array($prefs['https_login'], ['encouraged', 'required', 'force_nocheck']) ? $base_url_https : $base_url;
$smarty->assign('registration', 'n'); // stops the openid form appearing in the module, only on tiki-login_scr.php
=====================================
templates/admin/include_login.tpl
=====================================
@@ -161,7 +161,7 @@
{preference name=tracker_force_tracker_fields}
</div>
{preference name=groupTracker}
- {preference name=textBelowLoginBox}
+ {preference name=login_text_below_login_box}
<legend class="h3">{tr}Other login settings{/tr}</legend>
{preference name=email_due}
{preference name=unsuccessful_logins}
=====================================
templates/modules/mod-login_box.tpl
=====================================
@@ -656,9 +656,9 @@ $(".collapse-toggle", ".siteloginbar_popup .dropdown-menu").on("click", function
{$close_tags}
</div>
{/if}
- {if $mode eq "module" && ! empty($textBelowLoginBox)}
+ {if $mode eq "module" && ! empty($login_text_below_login_box)}
<div class="mt-3 textbelowlogin">
- {$textBelowLoginBox}
+ {$login_text_below_login_box}
</div>
{/if}
{if $mode eq "header"}</div>{/if}
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/adf37998f952a761b86a1446c37a1f4caeeb0e4c
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/adf37998f952a761b86a1446c37a1f4caeeb0e4c
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs