';
$attributesHTML .= '| '.s('Attribute').': '.$row['id'].' | ';
$attributesHTML .= ''.s('Check this box to use this attribute in the page').' |
';
- $attributesHTML .= '| '.s('Name').': | '.htmlspecialchars(stripslashes($row['name'])).' |
';
+ $attributesHTML .= '| '.s('Name').': | '.htmlspecialchars(stripslashes($row['name'] ?? '')).' |
';
$attributesHTML .= '| '.s('Type').': | '.s($row['type']).' |
';
- $attributesHTML .= '| '.s('Default Value').': | |
';
+ $attributesHTML .= '| '.s('Default Value').': | |
';
$attributesHTML .= '| '.s('Order of Listing').': | | ';
$attributesHTML .= ''.s('Is this attribute required?').': |
Date: Tue, 19 May 2026 19:15:33 +0400
Subject: [PATCH 4/5] place in a table for better readability
---
public_html/lists/admin/spageedit.php | 61 +++++++++++++++++++++++----
1 file changed, 53 insertions(+), 8 deletions(-)
diff --git a/public_html/lists/admin/spageedit.php b/public_html/lists/admin/spageedit.php
index c44f20dc2..ccd48fa80 100644
--- a/public_html/lists/admin/spageedit.php
+++ b/public_html/lists/admin/spageedit.php
@@ -370,7 +370,7 @@
}
$listsHTML = '';
-$listsHTML .= '';
+$listsHTML .= ' ';
$listsHTML .= sprintf(' ',
s('Display list categories'));
$listsHTML .= sprintf(' %s ',
@@ -398,23 +398,38 @@
if (!in_array($preselectList, $selected_lists)) {
$preselectList = 0;
}
-$listsHTML .= sprintf(' ',
- empty($preselectList) ? 'checked="checked"' : '',
- s('Do not preselect any list'));
+$listsHTML .= ' ';
+$listsHTML .= sprintf(
+ '| %s | %s | %s | ',
+ ucfirst(s('Select')),
+ ucfirst(s('Default')),
+ ucfirst(s('Description'))
+);
+$listsHTML .= '';
while ($row = Sql_Fetch_Array($req)) {
$listSelected = in_array($row['id'], $selected_lists);
+ $listName = htmlspecialchars(stripslashes($row['name'] ?? ''), ENT_QUOTES);
+ $listDescription = htmlspecialchars(stripslashes($row['description'] ?? ''), ENT_QUOTES);
+ if ($listDescription === '') {
+ $listDescription = ' ';
+ }
$listsHTML .= sprintf(
- ' %s ',
+ ' | | %s | ',
$row['id'],
$row['id'],
$listSelected ? 'checked="checked"' : '',
- stripslashes($row['name'] ?? ''),
+ $listName,
$row['id'],
$preselectList == $row['id'] ? 'checked="checked"' : '',
- s('Preselect'),
- htmlspecialchars(stripslashes($row['description'] ?? ''))
+ $listDescription
);
}
+$listsHTML .= sprintf(
+ ' | | | ',
+ empty($preselectList) ? 'checked="checked"' : '',
+ s('none')
+);
+$listsHTML .= ' ';
$listsHTML .= ' ';
@@ -429,6 +444,36 @@
echo ' '; // accordion
+echo '
+';
+
$ownerHTML = $singleOwner = '';
$adminCount = 0;
if (isSuperUser() || accessLevel('spageedit') == 'all') {
From 7d99f48754f69bc74291c2621b32fdfd04c46dd1 Mon Sep 17 00:00:00 2001
From: Tatevik
Date: Thu, 21 May 2026 23:04:45 +0400
Subject: [PATCH 5/5] After review
---
public_html/lists/admin/spageedit.php | 1 +
1 file changed, 1 insertion(+)
diff --git a/public_html/lists/admin/spageedit.php b/public_html/lists/admin/spageedit.php
index ccd48fa80..61df0aad4 100644
--- a/public_html/lists/admin/spageedit.php
+++ b/public_html/lists/admin/spageedit.php
@@ -386,6 +386,7 @@
} else {
$listsHTML .= ' '.s('If you do not choose a list here, all public lists will be displayed.');
+ $listsHTML .= ' '.s('One list may be chosen to be selected by default on the subscribe page.');
$hideSingle = getConfig('hide_single_list');
if ($hideSingle) {
$listsHTML .= ' '.s('If you choose one list only, a checkbox for this list will not be displayed and the subscriber will automatically be added to this list.');
|