From c028c21269e1d87d0dbce8bf50c7c4b68a2fbfda Mon Sep 17 00:00:00 2001 From: Xkeeper Date: Wed, 24 Jan 2018 20:48:20 -0800 Subject: [PATCH] Make editprofile.php slightly less bad --- editprofile.php | 57 +++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/editprofile.php b/editprofile.php index 5dc5bbd..f0897d9 100644 --- a/editprofile.php +++ b/editprofile.php @@ -22,7 +22,7 @@ if ($loguser['sex'] == 255) $loguser['sex'] = $loguser['oldsex']; - $descbr="$smallfont
 "; + $descbr="$smallfont
"; $checked1[$loguser['sex']]='checked=1'; $checked2[$loguser['viewsig']]='checked=1'; // $checked3[$loguser['posttool']]='checked=1'; @@ -51,7 +51,7 @@ $radio=pollstyle value=1 $checked6[1]> Influence"; if($titleopt){ // this went after this block, which makes it COMPLETELY USELESS - squot(0,$loguser[title]); + squot(0,$loguser['title']); $titleoption=" $tccell1>Custom title:$descbr This title will be shown below your rank. $tccell2l>$inpt=title VALUE=\"$loguser[title]\" SIZE=60 MAXLENGTH=255> @@ -101,32 +101,34 @@ $rsetlist=""; print " - $header
$tblstart -
- $tccellh>Login information$tccellh>  - $tccell1>User name:$tccell2l>$loguser[name] + $header
+ + $tblstart + $tccellh colspan='2'>Login information + $tccell1 style='width: 40%;'>User name:$descbr If you want to change this, ask an admin.$tccell2l style='width: 60%;'>$loguser[name] $tccell1>Password:$descbr You can change your password by entering a new one here. $tccell2l>$inpp=password SIZE=13 MAXLENGTH=64 autocomplete=off> - $tccellh> Appearance$tccellh>  + $tccellh colspan='2'>Appearance $titleoption $tccell1>User rank:$descbr You can hide your rank, or choose from different sets. $tccell2l>$rsetlist - $tccell1>User picture:$descbr The full URL of the image showing up below your username in posts. Leave it blank if you don't want to use a picture. The limits are 200x200 pixels, and about 100KB; anything over this will be removed. + $tccell1>Avatar:$descbr The full URL of the image showing up below your username in posts. Leave it blank if you don't want to use a avatar. Anything over 200×200 pixels will be removed. $tccell2l>$inpt=picture VALUE=\"$loguser[picture]\" SIZE=60 MAXLENGTH=100> $tccell1>Mood avatar:$descbr The URL of a mood avatar set. '\$' in the URL will be replaced with the mood, e.g. http://your.page/here/\$.png! $tccell2l>$inpt=moodurl VALUE=\"$loguser[moodurl]\" SIZE=60 MAXLENGTH=100> $tccell1>Minipic:$descbr The full URL of a small picture showing up next to your username on some pages. Leave it blank if you don't want to use a picture. The picture is resized to 16x16. $tccell2l>$inpt=minipic VALUE=\"$loguser[minipic]\" SIZE=60 MAXLENGTH=100> - $tccell1>Post background:$descbr The full URL of a picture showing up in the background of your posts. Leave it blank for no background. Please make sure your text is readable on the background! + ". ($loguser['postbg'] ? "$tccell1>Post background:$descbr The full URL of a picture showing up in the background of your posts. Leave it blank for no background. Please make sure your text is readable on the background! $tccell2l>$inpt=postbg VALUE=\"$loguser[postbg]\" SIZE=60 MAXLENGTH=250> - $tccell1>Post header:$descbr This will get added before the start of each post you make. This can be used to give a default font color and face to your posts (by putting a <font> tag). This should preferably be kept small, and not contain too much text or images. - $tccell2l>$txta=postheader ROWS=8 COLS=60>". htmlspecialchars($loguser[postheader]) ." - $tccell1>Signature:$descbr This will get added at the end of each post you make, below an horizontal line. This should preferably be kept to a small enough size. - $tccell2l>$txta=signature ROWS=8 COLS=60>". htmlspecialchars($loguser[signature]) ." + " : "") ." + $tccell1>Post header:$descbr HTML added here will come before your post. + $tccell2l>$txta=postheader ROWS=8 COLS=60 style='width: 100%;'>". htmlspecialchars($loguser['postheader']) ." + $tccell1>Footer/Signature:$descbr HTML and text added here will be added to the end of your post. + $tccell2l>$txta=signature ROWS=8 COLS=60 style='width: 100%;'>". htmlspecialchars($loguser['signature']) ." - $tccellh>Personal information$tccellh>  - $tccell1>Sex:$descbr Male or female. (or N/A if you don't want to tell it) + $tccellh colspan='2'>Personal information + $tccell1>Gender:$descbr This determines your name color (for now). $tccell2l>$sexlist @@ -136,10 +138,10 @@ $tccell2l>$inpt=location VALUE=\"$loguser[location]\" SIZE=40 MAXLENGTH=60> $tccell1>Birthday:$descbr Your date of birth. $tccell2l>Month: $inpt=bmonth SIZE=2 MAXLENGTH=2 VALUE=$month> Day: $inpt=bday SIZE=2 MAXLENGTH=2 VALUE=$day> Year: $inpt=byear SIZE=4 MAXLENGTH=4 VALUE=$year> - $tccell1>Bio:$descbr Some information about yourself, showing up in your profile. - $tccell2l>$txta=bio ROWS=8 COLS=60>". htmlspecialchars($loguser[bio]) ." + $tccell1>Bio:$descbr Some information about yourself, showing up in your profile. Accepts HTML. + $tccell2l>$txta=bio ROWS=8 COLS=60 style='width: 100%;'>". htmlspecialchars($loguser['bio']) ." - $tccellh>Online services$tccellh>  + $tccellh colspan='2'>Online services $tccell1>Email address:$descbr This is only shown in your profile; you don't have to enter it if you don't want to. $tccell2l>$inpt=email VALUE=\"$loguser[email]\" SIZE=60 MAXLENGTH=60> $tccell1>AIM screen name:$descbr Your AIM screen name, if you have one. @@ -153,10 +155,10 @@ $tccell1>Homepage name:$descbr Your homepage name, if you have a homepage. $tccell2l>$inpt=pagename VALUE=\"$loguser[homepagename]\" SIZE=60 MAXLENGTH=100> - $tccellh> Options$tccellh>  - $tccell1>Custom date format:$descbr Edit the date format here to affect how dates are displayed. Leave it blank to return to the default format ($defaultdateformat)
See the date() function in the PHP manual for more information. + $tccellh colspan='2'> Options + $tccell1>Custom date format:$descbr Change how dates are displayed. Uses date() formatting. Leave blank to use the default. $tccell2l>$inpt=eddateformat value=\"$dateformat\" size=16 maxlength=32> - $tccell1>Custom short date format:$descbr A shorter date format displayed on certain areas of the board. Leave it blank to return to the default format ($defaultdateshort). + $tccell1>Custom short date format:$descbr Change how abbreviated dates are displayed. Uses the same formatting. Leave blank to reset. $tccell2l>$inpt=eddateshort value=\"$dateshort\" size=8 maxlength=16> $tccell1>Timezone offset:$descbr How many hours you're offset from the time on the board (".date($dateformat,ctime())."). $tccell2l>$inpt=timezone VALUE=$loguser[timezone] SIZE=5 MAXLENGTH=5> @@ -166,14 +168,14 @@ $tccell2l>$inpt=threadsperpage SIZE=4 MAXLENGTH=4 VALUE=$loguser[threadsperpage]>". // $tccell1>Use textbox toolbar when posting:$descbr You can disable it here, preventing potential slowdowns or other minor problems when posting. // $tccell2l>$vtool - "$tccell1>Signatures and post headers:$descbr You can disable them here, which can make thread pages smaller and load faster. + "$tccell1>Post layouts:$descbr You can disable them here, which can make thread pages smaller and load faster. $tccell2l>$vsig $tccell1>Forum page list style:$descbr Inline (Title - Pages ...) or Seperate Line (shows more pages) $tccell2l>$pagestyle $tccell1>Poll vote system:$descbr Normal (based on users) or Influence (based on levels) $tccell2l>$pollstyle - + $tccell1>Thread layout:$descbr You can choose from a few thread layouts here. $tccell2l>$laylist $tccell1>Signature separator:$descbr You can choose from a few signature separators here. @@ -181,8 +183,8 @@ $tccell1>Color scheme / layout:$descbr You can select from a few color schemes here. $tccell2l>$schlist - $tccellh> $tccellh>  - $tccell1> $tccell2l> + $tccellh colspan='2'>  + $tccell1> $tccell2l> $inph=action VALUE=saveprofile> $inph=userid VALUE=$userid> $inps=submit VALUE=\"Edit profile\"> @@ -196,7 +198,7 @@ sbr(0,$postheader); sbr(0,$signature); sbr(0,$bio); - if(!isset($title) or !$titleopt) $title=$loguser[title]; + if(!isset($title) or !$titleopt) $title=$loguser['title']; if($sex>2 && $sex != $loguser['sex'] && $sex != $loguser['oldsex']) $sex=2; @@ -227,7 +229,7 @@ $birthday=@mktime(12,0,0,$bmonth,$bday,$byear); if(!$bmonth && !$bday && !$byear) $birthday=0; if(!$icq) $icq=0; - if(!isset($useranks)) $useranks=$loguser[useranks]; + if(!isset($useranks)) $useranks=$loguser['useranks']; if ($_POST['password']) { $hash = getpwhash($_POST['password'], $loguserid); @@ -283,4 +285,3 @@ print $footer; printtimedif($startingtime); -?>