mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Introducing percentage based font sizing for the font-site BBCode git-svn-id: file:///svn/phpbb/trunk@7157 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e432011913
commit
d165af785d
5 changed files with 11 additions and 11 deletions
|
@ -158,7 +158,7 @@ class acp_board
|
||||||
'max_post_chars' => array('lang' => 'CHAR_LIMIT', 'validate' => 'int', 'type' => 'text:4:6', 'explain' => true),
|
'max_post_chars' => array('lang' => 'CHAR_LIMIT', 'validate' => 'int', 'type' => 'text:4:6', 'explain' => true),
|
||||||
'max_post_smilies' => array('lang' => 'SMILIES_LIMIT', 'validate' => 'int', 'type' => 'text:4:4', 'explain' => true),
|
'max_post_smilies' => array('lang' => 'SMILIES_LIMIT', 'validate' => 'int', 'type' => 'text:4:4', 'explain' => true),
|
||||||
'max_post_urls' => array('lang' => 'MAX_POST_URLS', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true),
|
'max_post_urls' => array('lang' => 'MAX_POST_URLS', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true),
|
||||||
'max_post_font_size' => array('lang' => 'MAX_POST_FONT_SIZE', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
|
'max_post_font_size' => array('lang' => 'MAX_POST_FONT_SIZE', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true, 'append' => ' %'),
|
||||||
'max_quote_depth' => array('lang' => 'QUOTE_DEPTH_LIMIT', 'validate' => 'int', 'type' => 'text:4:4', 'explain' => true),
|
'max_quote_depth' => array('lang' => 'QUOTE_DEPTH_LIMIT', 'validate' => 'int', 'type' => 'text:4:4', 'explain' => true),
|
||||||
'max_post_img_width' => array('lang' => 'MAX_POST_IMG_WIDTH', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
|
'max_post_img_width' => array('lang' => 'MAX_POST_IMG_WIDTH', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
|
||||||
'max_post_img_height' => array('lang' => 'MAX_POST_IMG_HEIGHT', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
|
'max_post_img_height' => array('lang' => 'MAX_POST_IMG_HEIGHT', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
|
||||||
|
@ -181,7 +181,7 @@ class acp_board
|
||||||
'legend2' => 'GENERAL_SETTINGS',
|
'legend2' => 'GENERAL_SETTINGS',
|
||||||
'max_sig_chars' => array('lang' => 'MAX_SIG_LENGTH', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true),
|
'max_sig_chars' => array('lang' => 'MAX_SIG_LENGTH', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true),
|
||||||
'max_sig_urls' => array('lang' => 'MAX_SIG_URLS', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true),
|
'max_sig_urls' => array('lang' => 'MAX_SIG_URLS', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true),
|
||||||
'max_sig_font_size' => array('lang' => 'MAX_SIG_FONT_SIZE', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
|
'max_sig_font_size' => array('lang' => 'MAX_SIG_FONT_SIZE', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true, 'append' => ' %'),
|
||||||
'max_sig_smilies' => array('lang' => 'MAX_SIG_SMILIES', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true),
|
'max_sig_smilies' => array('lang' => 'MAX_SIG_SMILIES', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true),
|
||||||
'max_sig_img_width' => array('lang' => 'MAX_SIG_IMG_WIDTH', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
|
'max_sig_img_width' => array('lang' => 'MAX_SIG_IMG_WIDTH', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
|
||||||
'max_sig_img_height' => array('lang' => 'MAX_SIG_IMG_HEIGHT', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
|
'max_sig_img_height' => array('lang' => 'MAX_SIG_IMG_HEIGHT', 'validate' => 'int', 'type' => 'text:5:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
|
||||||
|
|
|
@ -392,7 +392,7 @@ class bbcode
|
||||||
'u_open' => '<span style="text-decoration: underline">',
|
'u_open' => '<span style="text-decoration: underline">',
|
||||||
'u_close' => '</span>',
|
'u_close' => '</span>',
|
||||||
'img' => '<img src="$1" alt="' . $user->lang['IMAGE'] . '" />',
|
'img' => '<img src="$1" alt="' . $user->lang['IMAGE'] . '" />',
|
||||||
'size' => '<span style="font-size: $1px; line-height: normal">$2</span>',
|
'size' => '<span style="font-size: $1%; line-height: normal">$2</span>',
|
||||||
'color' => '<span style="color: $1">$2</span>',
|
'color' => '<span style="color: $1">$2</span>',
|
||||||
'email' => '<a href="mailto:$1">$2</a>'
|
'email' => '<a href="mailto:$1">$2</a>'
|
||||||
);
|
);
|
||||||
|
|
|
@ -148,7 +148,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_name_chars', '
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_pass_chars', '30');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_pass_chars', '30');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_poll_options', '10');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_poll_options', '10');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_chars', '0');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_chars', '0');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_font_size', '24');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_font_size', '200');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_img_height', '0');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_img_height', '0');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_img_width', '0');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_img_width', '0');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_smilies', '0');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_smilies', '0');
|
||||||
|
@ -156,7 +156,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_post_urls', '0
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_quote_depth', '3');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_quote_depth', '3');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_reg_attempts', '5');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_reg_attempts', '5');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_chars', '255');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_chars', '255');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_font_size', '24');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_font_size', '200');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_img_height', '0');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_img_height', '0');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_img_width', '0');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_img_width', '0');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_smilies', '0');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_sig_smilies', '0');
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
<!-- BEGIN color --><span style="color: {COLOR}">{TEXT}</span><!-- END color -->
|
<!-- BEGIN color --><span style="color: {COLOR}">{TEXT}</span><!-- END color -->
|
||||||
|
|
||||||
<!-- BEGIN size --><span style="font-size: {SIZE}px; line-height: normal">{TEXT}</span><!-- END size -->
|
<!-- BEGIN size --><span style="font-size: {SIZE}em; line-height: normal">{TEXT}</span><!-- END size -->
|
||||||
|
|
||||||
<!-- BEGIN img --><img src="{URL}" alt="{L_IMAGE}" /><!-- END img -->
|
<!-- BEGIN img --><img src="{URL}" alt="{L_IMAGE}" /><!-- END img -->
|
||||||
|
|
||||||
|
|
|
@ -69,11 +69,11 @@
|
||||||
<input type="button" class="btnbbcode" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" />
|
<input type="button" class="btnbbcode" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" />
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<span class="genmed nowrap">{L_FONT_SIZE}: <select class="gensmall" name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" onmouseover="helpline('f')" onmouseout="helpline('tip')">
|
<span class="genmed nowrap">{L_FONT_SIZE}: <select class="gensmall" name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" onmouseover="helpline('f')" onmouseout="helpline('tip')">
|
||||||
<option value="7">{L_FONT_TINY}</option>
|
<option value="50">{L_FONT_TINY}</option>
|
||||||
<option value="9">{L_FONT_SMALL}</option>
|
<option value="80">{L_FONT_SMALL}</option>
|
||||||
<option value="12" selected="selected">{L_FONT_NORMAL}</option>
|
<option value="100" selected="selected">{L_FONT_NORMAL}</option>
|
||||||
<option value="18">{L_FONT_LARGE}</option>
|
<option value="150">{L_FONT_LARGE}</option>
|
||||||
<option value="24">{L_FONT_HUGE}</option>
|
<option value="200">{L_FONT_HUGE}</option>
|
||||||
</select></span>
|
</select></span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Add table
Reference in a new issue