mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00: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:
parent
bc6e36ef4f
commit
a583f7bd10
3 changed files with 6 additions and 6 deletions
|
@ -439,7 +439,7 @@ function update_smile_dimensions()
|
|||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
<td class="row2"><?php echo $user->lang['Smile_order'] ?></td>
|
||||
|
@ -472,7 +472,7 @@ function update_smile_dimensions()
|
|||
'smile_height' => $smile_height,
|
||||
'smile_order' => $smile_order,
|
||||
'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'];
|
||||
|
@ -556,7 +556,7 @@ function update_smile_dimensions()
|
|||
|
||||
$sql = 'SELECT *
|
||||
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);
|
||||
page_header($user->lang['Emoticons']);
|
||||
?>
|
||||
|
@ -594,7 +594,7 @@ function update_smile_dimensions()
|
|||
$spacer = FALSE;
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
if (!$spacer && !$row['smile_on_posting'])
|
||||
if (!$spacer && !$row['display_on_posting'])
|
||||
{
|
||||
$spacer = TRUE;
|
||||
?>
|
||||
|
|
|
@ -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
|
||||
FROM " . SMILIES_TABLE . "
|
||||
$where_sql
|
||||
|
|
|
@ -415,7 +415,7 @@ CREATE TABLE phpbb_smilies (
|
|||
smile_height tinyint(4) UNSIGNED NOT NULL,
|
||||
smile_order tinyint(4) UNSIGNED NOT NULL,
|
||||
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)
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue