add font size options to profiles

This commit is contained in:
Xkeeper
2020-10-25 23:16:00 -07:00
parent 05c8bfe560
commit c8712b0dfa
3 changed files with 16 additions and 6 deletions

View File

@@ -183,6 +183,8 @@
$tccell2l>$seplist<tr>
$tccell1><b>Color scheme / layout:$descbr You can select from a few color schemes here.</td>
$tccell2l>$schlist<tr>
$tccell1><b>Font size:$descbr Change the default font size of the forum.</td>
$tccell2l>$inpt=fontsize VALUE=\"". ($loguser['fontsize'] ? $loguser['fontsize'] : 100) ."\" SIZE=5 MAXLENGTH=5>%</td><tr>
$tccellh colspan='2'>&nbsp;</td><tr>
$tccell1>&nbsp;</td>$tccell2l>
@@ -277,6 +279,7 @@
`postbg` = '$postbg',
`postheader` = '$postheader',
`birthday` = '$birthday',
`fontsize` = ". (($_POST['fontsize'] || $_POST['fontsize'] == 100) ? intval($_POST['fontsize']) : "NULL") .",
`scheme` = '$sscheme',
`threadsperpage` = '$threadsperpage',
`viewsig` = '$viewsig',

View File

@@ -157,6 +157,7 @@
$lft View signatures and post headers $rgt $vsig
$lft Thread layout $rgt $laylist
$lft Color scheme / layout $rgt $schlist
$lft Font size $rgt $inpt=fontsize SIZE=5 MAXLENGTH=5 VALUE=$user[fontsize]>%
$lft &nbsp</td>$tccell2l>
$inph=action VALUE=saveprofile>
@@ -223,6 +224,7 @@
`minipic` = '$minipic',
`homepagename` = '$pagename',
`scheme` = '$sscheme',
`fontsize` = ". (($_POST['fontsize'] || $_POST['fontsize'] == 100) ? intval($_POST['fontsize']) : "NULL") .",
`threadsperpage` = '$threadsperpage',
`viewsig` = '$viewsig',
`layout` = '$tlayout',".

View File

@@ -93,12 +93,17 @@
a:visited { color: #$linkcolor2; }
a:active { color: #$linkcolor3; }
a:hover { color: #$linkcolor4; }
html { font-size: 83%; }
body {
color: #$textcolor;
font: 83% $font;
font-family: $font;
background: #$bgcolor$bgimage;
}
". ($loguser['fontsize'] ? "
body { font-size: $loguser[fontsize]%; }
" : "") ."
table {
font-size: 100%;
}
@@ -201,20 +206,20 @@
border: #$inputborder solid 1px;
background:#000000;
color: #$formtextcolor;
font: 10pt $font;}
font: 100% $font;}
textarea:focus {
border: #$inputborder solid 1px;
background:#000000;
color: #$formtextcolor;
font: 10pt $font;}
font: 100% $font;}
.radio{
border: none;
background:none;
color: #$formtextcolor;
font: 10pt $font;}
font: 100% $font;}
.submit{
border: #$inputborder solid 2px;
font: 10pt $font;}
font: 100% $font;}
";
}