-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] GSoC 2018 Enhance Users Project #21441
Changes from 56 commits
da6af42
0f853d5
f94be7c
4be07b4
1fdb588
3d3a76f
7f8e09f
5a01763
5f0d478
7c43e1b
8ed3675
9a429e3
27db2a6
ee2ef0f
407e23e
6bf4abc
cb9f8bf
b677cd0
13b9d66
2d35a86
52616cd
10c02cd
9aaff70
0a91048
29d512d
56641fe
7208525
bbcf061
35648b8
0aedfc6
7e9c604
cc990f3
d0daaa7
a5669d2
853ac65
20d91ca
59c81b7
83c9b14
35596d6
aac4ed9
d0cfbf9
fcc816c
c42d1f1
fa384e1
9cc70ae
5462f6c
0d9acd6
61576c3
50c8a10
941152d
5055849
033748f
3283f92
2125549
b0813c8
55e9c87
918ede3
9a1d66c
ca24e1a
920b517
b238702
5480741
4ed905c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- | ||
-- Add access column for access levels #__users | ||
-- | ||
|
||
ALTER TABLE `#__users` ADD COLUMN `access` int(10) unsigned NOT NULL DEFAULT 0; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE "#__users" ADD COLUMN "access" bigint NOT NULL DEFAULT 0; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -184,6 +184,112 @@ | |
/> | ||
</fieldset> | ||
|
||
<fieldset | ||
name="Contact_Form" | ||
label="COM_USERS_CONFIG_FIELD_CONTACT_FORM" | ||
description="COM_USERS_CONFIG_FIELD_INDIVIDUAL_CONTACT_DESC" | ||
> | ||
<field | ||
name="captcha" | ||
type="plugins" | ||
label="COM_USERS_CONFIG_FIELD_CAPTCHA_LABEL" | ||
folder="captcha" | ||
filter="cmd" | ||
useglobal="true" | ||
> | ||
<option value="0">JOPTION_DO_NOT_USE</option> | ||
</field> | ||
|
||
<field | ||
name="show_email_form" | ||
type="radio" | ||
label="COM_USERS_FIELD_EMAIL_SHOW_FORM_LABEL" | ||
class="switcher" | ||
default="1" | ||
> | ||
<option value="0">JHIDE</option> | ||
<option value="1">JSHOW</option> | ||
</field> | ||
|
||
<field | ||
name="show_email_copy" | ||
type="radio" | ||
label="COM_USERS_FIELD_EMAIL_EMAIL_COPY_LABEL" | ||
default="0" | ||
class="switcher" | ||
showon="show_email_form:1" | ||
> | ||
<option value="0">JHIDE</option> | ||
<option value="1">JSHOW</option> | ||
</field> | ||
|
||
<field | ||
name="banned_email" | ||
type="textarea" | ||
label="COM_USERS_CONFIG_FIELD_BANNED_EMAIL_LABEL" | ||
description="COM_USERS_CONFIG_FIELD_BANNED_EMAIL_DESC" | ||
default="" | ||
rows="3" | ||
cols="30" | ||
showon="show_email_form:1" | ||
/> | ||
|
||
<field | ||
name="banned_subject" | ||
type="textarea" | ||
label="COM_USERS_CONFIG_FIELD_BANNED_SUBJECT_LABEL" | ||
description="COM_USERS_CONFIG_FIELD_BANNED_SUBJECT_DESC" | ||
default="" | ||
rows="3" | ||
cols="30" | ||
showon="show_email_form:1" | ||
/> | ||
|
||
<field | ||
name="banned_text" | ||
type="textarea" | ||
label="COM_USERS_CONFIG_FIELD_BANNED_TEXT_LABEL" | ||
description="COM_USERS_CONFIG_FIELD_BANNED_TEXT_DESC" | ||
default="" | ||
rows="3" | ||
cols="30" | ||
showon="show_email_form:1" | ||
/> | ||
|
||
<field | ||
name="validate_session" | ||
type="radio" | ||
label="COM_USERS_FIELD_CONFIG_SESSION_CHECK_LABEL" | ||
class="switcher" | ||
default="1" | ||
showon="show_email_form:1" | ||
> | ||
<option value="0">JNO</option> | ||
<option value="1">JYES</option> | ||
</field> | ||
|
||
<field | ||
name="custom_reply" | ||
type="radio" | ||
label="COM_USERS_CONFIG_FIELD_CUSTOM_REPLY_LABEL" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. move label above class |
||
class="switcher" | ||
default="0" | ||
showon="show_email_form:1" | ||
> | ||
<option value="0">JNO</option> | ||
<option value="1">JYES</option> | ||
</field> | ||
|
||
<field | ||
name="redirect" | ||
type="text" | ||
label="COM_USERS_FIELD_CONFIG_REDIRECT_LABEL" | ||
default="" | ||
size="30" | ||
showon="show_email_form:1" | ||
/> | ||
</fieldset> | ||
|
||
<fieldset | ||
name="user_notes_history" | ||
label="COM_USERS_CONFIG_FIELD_NOTES_HISTORY" > | ||
|
@@ -213,7 +319,7 @@ | |
<fieldset | ||
name="massmail" | ||
label="COM_USERS_MASS_MAIL" | ||
description="COM_USERS_MASS_MAIL_DESC"> | ||
description="COM_USERS_MASS_MAIL_DESC" > | ||
|
||
<field | ||
name="mailSubjectPrefix" | ||
|
@@ -263,7 +369,7 @@ | |
<fieldset name="integration" | ||
label="JGLOBAL_INTEGRATION_LABEL" | ||
description="COM_USERS_CONFIG_INTEGRATION_SETTINGS_DESC" | ||
> | ||
> | ||
|
||
<field | ||
name="custom_fields_enable" | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,6 +139,13 @@ | |
readonly="true" | ||
/> | ||
|
||
<field | ||
name="access" | ||
type="accesslevel" | ||
label="JFIELD_ACCESS_LABEL" | ||
size="1" | ||
/> | ||
|
||
</fieldset> | ||
<field name="groups" type="hidden" /> | ||
<field name="twofactor" type="hidden" /> | ||
|
@@ -203,5 +210,83 @@ | |
|
||
</fieldset> | ||
|
||
<fieldset name="email" label="COM_USERS_FIELDSET_CONTACT_LABEL"> | ||
|
||
<field | ||
name="show_email_form" | ||
type="list" | ||
label="COM_USERS_FIELD_EMAIL_SHOW_FORM_LABEL" | ||
useglobal="true" | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove blank line. |
||
> | ||
<option value="0">JHIDE</option> | ||
<option value="1">JSHOW</option> | ||
</field> | ||
|
||
<field | ||
name="show_email_copy" | ||
type="list" | ||
label="COM_USERS_FIELD_EMAIL_EMAIL_COPY_LABEL" | ||
useglobal="true" | ||
> | ||
<option value="0">JHIDE</option> | ||
<option value="1">JSHOW</option> | ||
</field> | ||
|
||
<field | ||
name="banned_email" | ||
type="textarea" | ||
label="COM_USERS_FIELD_EMAIL_BANNED_EMAIL_LABEL" | ||
description="COM_USERS_FIELD_EMAIL_BANNED_EMAIL_DESC" | ||
rows="3" | ||
cols="30" | ||
/> | ||
|
||
<field | ||
name="banned_subject" | ||
type="textarea" | ||
label="COM_USERS_FIELD_EMAIL_BANNED_SUBJECT_LABEL" | ||
description="COM_USERS_FIELD_EMAIL_BANNED_SUBJECT_DESC" | ||
rows="3" | ||
cols="30" | ||
/> | ||
|
||
<field | ||
name="banned_text" | ||
type="textarea" | ||
label="COM_USERS_FIELD_EMAIL_BANNED_TEXT_LABEL" | ||
description="COM_USERS_FIELD_EMAIL_BANNED_TEXT_DESC" | ||
rows="3" | ||
cols="30" | ||
/> | ||
|
||
<field | ||
name="validate_session" | ||
type="list" | ||
label="COM_USERS_FIELD_CONFIG_SESSION_CHECK_LABEL" | ||
useglobal="true" | ||
> | ||
<option value="0">JNO</option> | ||
<option value="1">JYES</option> | ||
</field> | ||
|
||
<field | ||
name="custom_reply" | ||
type="list" | ||
label="COM_USERS_CONFIG_FIELD_CUSTOM_REPLY_LABEL" | ||
useglobal="true" | ||
> | ||
<option value="0">JNO</option> | ||
<option value="1">JYES</option> | ||
</field> | ||
|
||
<field | ||
name="redirect" | ||
type="text" | ||
label="COM_USERS_FIELD_CONFIG_REDIRECT_LABEL" | ||
size="30" | ||
/> | ||
</fieldset> | ||
|
||
</fields> | ||
</form> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,9 @@ | |
<th scope="col" style="width:12%" class="nowrap text-center"> | ||
<?php echo Text::_('COM_USERS_HEADING_GROUPS'); ?> | ||
</th> | ||
<th scope="col" style="width:10%" class="nowrap d-none d-md-table-cell text-center"> | ||
<?php echo Text::_('JGRID_HEADING_ACCESS'); ?> | ||
</th> | ||
<th scope="col" style="width:12%" class="nowrap d-none d-lg-table-cell text-center"> | ||
<?php echo HTMLHelper::_('searchtools.sort', 'JGLOBAL_EMAIL', 'a.email', $listDirn, $listOrder); ?> | ||
</th> | ||
|
@@ -148,6 +151,9 @@ | |
<?php echo nl2br($item->group_names); ?> | ||
<?php endif; ?> | ||
</td> | ||
<td class="small d-none d-md-table-cell text-center"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please indent to match the surrounding code There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is aligned correctly in my editor, I don't know why here is not.. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're using spaces for indents, the rest of the file is using tabs. |
||
<?php echo $this->escape($item->access_level); ?> | ||
</td> | ||
<td class="d-none d-lg-table-cell break-word text-center"> | ||
<?php echo PunycodeHelper::emailToUTF8($this->escape($item->email)); ?> | ||
</td> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move label above class