1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-29 13:00:26 +02:00

ALTER TABLE phpbb_smilies CHANGE smile_on_posting display_on_posting

git-svn-id: file:///svn/phpbb/trunk@3008 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Ludovic Arnaud
2002-11-05 06:38:09 +00:00
parent bc6e36ef4f
commit a583f7bd10
3 changed files with 6 additions and 6 deletions

View File

@@ -439,7 +439,7 @@ function update_smile_dimensions()
</tr> </tr>
<tr> <tr>
<td class="row1"><?php echo $user->lang['Display_on_posting'] ?></td> <td class="row1"><?php echo $user->lang['Display_on_posting'] ?></td>
<td class="row1"><input type="checkbox" name="smile_on_posting" <?php echo ($smile_data['smile_on_posting']) ? ' checked="checked"' : '' ?>/></td> <td class="row1"><input type="checkbox" name="display_on_posting" <?php echo ($smile_data['display_on_posting']) ? ' checked="checked"' : '' ?>/></td>
</tr> </tr>
<tr> <tr>
<td class="row2"><?php echo $user->lang['Smile_order'] ?></td> <td class="row2"><?php echo $user->lang['Smile_order'] ?></td>
@@ -472,7 +472,7 @@ function update_smile_dimensions()
'smile_height' => $smile_height, 'smile_height' => $smile_height,
'smile_order' => $smile_order, 'smile_order' => $smile_order,
'emoticon' => stripslashes($_POST['smile_emotion']), 'emoticon' => stripslashes($_POST['smile_emotion']),
'smile_on_posting' => (!empty($_POST['smile_on_posting'])) ? 1 : 0 'display_on_posting' => (!empty($_POST['display_on_posting'])) ? 1 : 0
); );
$smile_id = $_POST['smile_id']; $smile_id = $_POST['smile_id'];
@@ -556,7 +556,7 @@ function update_smile_dimensions()
$sql = 'SELECT * $sql = 'SELECT *
FROM ' . SMILIES_TABLE . ' FROM ' . SMILIES_TABLE . '
ORDER BY smile_on_posting DESC, smile_order ASC'; ORDER BY display_on_posting DESC, smile_order ASC';
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
page_header($user->lang['Emoticons']); page_header($user->lang['Emoticons']);
?> ?>
@@ -594,7 +594,7 @@ function update_smile_dimensions()
$spacer = FALSE; $spacer = FALSE;
while ($row = $db->sql_fetchrow($result)) while ($row = $db->sql_fetchrow($result))
{ {
if (!$spacer && !$row['smile_on_posting']) if (!$spacer && !$row['display_on_posting'])
{ {
$spacer = TRUE; $spacer = TRUE;
?> ?>

View File

@@ -480,7 +480,7 @@ function generate_smilies($mode)
); );
} }
$where_sql = ( $mode == 'inline' ) ? 'WHERE smile_on_posting = 1 ' : ''; $where_sql = ( $mode == 'inline' ) ? 'WHERE display_on_posting = 1 ' : '';
$sql = "SELECT emoticon, code, smile_url, smile_width, smile_height $sql = "SELECT emoticon, code, smile_url, smile_width, smile_height
FROM " . SMILIES_TABLE . " FROM " . SMILIES_TABLE . "
$where_sql $where_sql

View File

@@ -415,7 +415,7 @@ CREATE TABLE phpbb_smilies (
smile_height tinyint(4) UNSIGNED NOT NULL, smile_height tinyint(4) UNSIGNED NOT NULL,
smile_order tinyint(4) UNSIGNED NOT NULL, smile_order tinyint(4) UNSIGNED NOT NULL,
emoticon char(50), emoticon char(50),
smile_on_posting tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, display_on_posting tinyint(1) UNSIGNED DEFAULT '1' NOT NULL,
PRIMARY KEY (smilies_id) PRIMARY KEY (smilies_id)
); );