diff --git a/editprofile.php b/editprofile.php
index f0897d9..5dd8bd4 100644
--- a/editprofile.php
+++ b/editprofile.php
@@ -30,9 +30,9 @@
$checked5[$loguser['pagestyle']]='checked=1';
$checked6[$loguser['pollstyle']]='checked=1';
$sexlist="
- $radio=sex value=0 $checked1[0]> Male
- $radio=sex value=1 $checked1[1]> Female
- $radio=sex value=2 $checked1[2]> N/A";
+ $radio=sex value=0 $checked1[0]> Male
+ $radio=sex value=1 $checked1[1]> Female
+ $radio=sex value=2 $checked1[2]> Other / N/A";
if ($loguser['sex'] > 2)
$sexlist .= "$radio=sex value=$loguser[sex] checked style=\"display:none;\">";
@@ -128,8 +128,10 @@
$tccell2l>$txta=signature ROWS=8 COLS=60 style='width: 100%;'>". htmlspecialchars($loguser['signature']) ."
$tccellh colspan='2'>Personal information
- $tccell1>Gender:$descbr This determines your name color (for now).
+ $tccell1>Gender/Name color:$descbr This mostly determines your name color.
$tccell2l>$sexlist
+ $tccell1>Pronouns:$descbr You can put your pronouns here (e.g. they/them, he/his, she/hers, etc).
+ $tccell2l>$inpt=pronouns VALUE=\"". htmlspecialchars($loguser['pronouns']) ."\" SIZE=40 MAXLENGTH=50>
$tccell1>Real name:$descbr Your real name (you can leave this blank).
@@ -272,9 +274,9 @@
`threadsperpage` = '$threadsperpage',
`viewsig` = '$viewsig',
`layout` = '$tlayout',
- `moodurl` = '". $_POST['moodurl'] ."',".
-// `posttool` = '$posttool',
- "`imood` = '$imood',
+ `moodurl` = '". $_POST['moodurl'] ."',
+ `imood` = '$imood',
+ `pronouns` = '{$_POST['pronouns']}',
`signsep` = '$signsep',
`pagestyle` = '$pagestyle',
`pollstyle` = '$pollstyle'
diff --git a/edituser.php b/edituser.php
index 3b96047..fcdc98c 100644
--- a/edituser.php
+++ b/edituser.php
@@ -135,6 +135,7 @@
$hlft Personal information $hrgt
$lft Sex $rgt$sexlist
+ $lft Pronouns $rgt$inpt=pronouns VALUE=\"$user[pronouns]\" SIZE=40 MAXLENGTH=50>
$lft Real name $rgt$inpt=realname VALUE=\"$user[realname]\" SIZE=40 MAXLENGTH=60>
$lft Location $rgt$inpt=location VALUE=\"$user[location]\" SIZE=40 MAXLENGTH=60>
$lft Birthday $rgt 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>
diff --git a/lib/threadpost.php b/lib/threadpost.php
index ea98cfb..c94653d 100644
--- a/lib/threadpost.php
+++ b/lib/threadpost.php
@@ -15,7 +15,8 @@
$set['userlink'] = "{$userlink}";
$set['date'] = date($dateformat,$post['date']+$tzoff);
- if($post['location']) { $set['location']="
From: {$post['location']}"; }
+ if($post['location']) { $set['location']="From: ". htmlspecialchars($post['location']); }
+ if($post['pronouns']) { $set['pronouns']="Pronouns: ". htmlspecialchars($post['pronouns']); }
if($post['picture'] || ($post['moodid'] && $post['moodurl'])){
$post['picture'] = str_replace('>','%3E',$post['picture']);
diff --git a/profile.php b/profile.php
index 213dd0b..dbfe653 100644
--- a/profile.php
+++ b/profile.php
@@ -211,6 +211,7 @@ $tblend
$tblstart
$tccellh colspan=2>Personal information
$tccell1l width=150>Real name $tccell2l>$user[realname]
+ $tccell1l width=150>Pronouns $tccell2l>". htmlspecialchars($user['pronouns']) ."
$tccell1l width=150>Location $tccell2l>$user[location]
$tccell1l width=150>Birthday $tccell2l>$birthday $age
$tccell1l width=150>User bio $tccell2l>". dofilters(doreplace2(doreplace($user['bio'], $user['posts'], (ctime()-$user['regdate'])/86400, $user['name']))) ."
diff --git a/tlayouts/regular.php b/tlayouts/regular.php
index 4bf178f..0608201 100644
--- a/tlayouts/regular.php
+++ b/tlayouts/regular.php
@@ -1,18 +1,18 @@
";
$exp = calcexp($post['posts'],(ctime()-$post['regdate']) / 86400);
$lvl = calclvl($exp);
$expleft = calcexpleft($exp);
-
+
if ($tlayout == 1) {
$level = "Level: $lvl";
$poststext = "Posts: ";
@@ -21,11 +21,11 @@
$experience = "EXP: $exp
For next: $expleft";
$totalwidth = 96;
$barwidth = $totalwidth-round(@($expleft/totallvlexp($lvl))*$totalwidth);
-
+
if ($barwidth < 1) $barwidth=0;
-
+
if ($barwidth > 0) $baron="
";
-
+
if ($barwidth < $totalwidth) $baroff="
';
$bar="
$baron$baroff
';
@@ -37,32 +37,32 @@
$posttotal = "
";
$totalwidth = 56;
$barwidth = $totalwidth-round(@($expleft/totallvlexp($lvl))*$totalwidth);
-
+
if($barwidth<1) $barwidth=0;
-
+
if($barwidth>0) $baron="
";
-
+
if($barwidth<$totalwidth) $baroff="
';
$bar="
$baron$baroff
';
}
-
+
if(!$post['num']){
$postnum = '';
-
+
if($postlayout==1) $posttotal="
";
}
-
+
$reinf=syndrome(filter_int($post['act']));
-
+
if ($post['lastposttime']) {
$sincelastpost = 'Since last post: '.timeunits(ctime()-$post['lastposttime']);
}
$lastactivity = 'Last activity: '.timeunits(ctime()-$post['lastactivity']);
$since = 'Since: '.@date($dateshort,$post['regdate']+$tzoff);
$postdate = date($dateformat,$post['date']+$tzoff);
-
+
$threadlink = "";
if (filter_string($set['threadlink'])) {
$threadlink = ", in $set[threadlink]";
@@ -75,17 +75,17 @@
$sidebars = array(1, 3, 19, 89, 387, 45, 92, 47);
- $sidebars = array(1, 19, 89, 387, 45, 92, 47, 1420, 1090, 2100, 2069);
+ $sidebars = array(19, 89, 387, 45, 92, 47, 1420, 1090, 2100, 2069);
// Large block of user-specific hacks follows //
- if ($post['uid'] == 1 && !$x_hacks['host'] && true) {
+ if (false && $post['uid'] == 1 && !$x_hacks['host'] && true) {
global $numdir;
$numdir_ = $numdir;
$numdir = "num3/";
-
+
if ($post['num']) {
$numtext = generatenumbergfx($post['num'], 1, true) ."
". generatenumbergfx($post['posts']);
} else {
@@ -246,7 +246,11 @@
$set[userpic]
". (filter_bool($hacks['noposts']) ? "" : "$poststext$postnum$posttotal
") ."
$experience
- $since
".str_ireplace("<br>", "
", substr(htmlspecialchars($set['location']),10))."
+ $since
+ ". (isset($set['pronouns']) ? "
".$set['pronouns'] : "")."
+ ". (isset($set['location']) ? "
".$set['location'] : "")."
+
+
$sincelastpost
$lastactivity
@@ -325,7 +329,7 @@
$fcol2 = "#3070a0";
$fcol3 = "#f0f8ff";
-
+
$lastactivity = 'Active ' .timeunits(ctime()-$post[lastactivity]) ." ago";
$postnum = ($post['num']) ."/";
$posttotal = $post['posts'];
@@ -366,7 +370,7 @@
$fcol2 = "#eebbff";
$fcol3 = "#000000";
}
-
+
$lastactivity = 'Active ' .timeunits(ctime()-$post[lastactivity]) ." ago";
$postnum = ($post['num']) ."/";
$posttotal = $post['posts'];
@@ -421,7 +425,7 @@
$fcol2 = "#a07030";
$fcol3 = "#fff0f8";
-
+
$lastactivity = 'Active ' .timeunits(ctime()-$post[lastactivity]) ." ago";
$postnum = ($post['num']) ."/";
$posttotal = $post['posts'];
@@ -469,7 +473,7 @@
$fcol2 = "#eeeeee";
$fcol3 = "#000000";
-
+
$lastactivity = 'Active ' .timeunits(ctime()-$post[lastactivity]) ." ago";
$postnum = ($post['num']) ."/";
$posttotal = $post['posts'];
@@ -612,7 +616,7 @@
$set[tdbg] style=\"background: $fcol3; padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]$tblend
";
-
+
} elseif (($post['uid'] == "16" || $post['uid'] == "5") && !$x_hacks['host']) {
// top bg #614735
@@ -622,9 +626,9 @@
if (!function_exists("basestat")) {
require 'lib/rpg.php';
}
-
+
if (!$x_hacks['rpgstats'][$post['uid']]) {
-
+
$eq = array(
'1' => "(Weapon)",
'2' => "(Armor)",
@@ -686,7 +690,7 @@
Post$postss | $postnum$posttotal |
Counter | 2 |
Mv | 7 | Jm | 26 |
-
+
Hp | ". $st['HP'] ."/". $st['HP'] ." |
@@ -709,7 +713,7 @@
". $st['eq'][4] ." |
". $st['eq'][5] ." |
". $st['eq'][6] ." |
-
+
@@ -729,7 +733,7 @@
$joindate
$lastactivity
*/
-
+
}
// BlackRose/Lain's sidebar
@@ -754,7 +758,7 @@
$set[tdbg] height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]
$tblend";
-
+
return $brsidebar;
}