From 6191db70f7f3eda81a80418776e123c3eabb6880 Mon Sep 17 00:00:00 2001 From: Varun <31084854+Borumer@users.noreply.github.com> Date: Mon, 20 Jan 2020 18:19:43 -0500 Subject: [PATCH 1/7] Add comment tr and start ruleset --- css/profile.css | 3 +++ pages/question.php | 62 +++++++++++++++++++++++++--------------------- 2 files changed, 37 insertions(+), 28 deletions(-) diff --git a/css/profile.css b/css/profile.css index 0ba867c..cad1798 100644 --- a/css/profile.css +++ b/css/profile.css @@ -72,3 +72,6 @@ div.page-with-form-body > form > p.form-inputs { background-color: #eeeeee; } +#question-page-table div.comment-section { + text-align:left; +} diff --git a/pages/question.php b/pages/question.php index ec09269..bdfbb64 100644 --- a/pages/question.php +++ b/pages/question.php @@ -1,12 +1,12 @@ +?>

- + - '> '> - + @@ -123,8 +123,15 @@ function getNoAccountButton($way) { - - + + + $uparrow\n" : $noAccountVoteUpBtn; - $votedownbtn = isset($_SESSION['id']) ? "\t\t\n" : $noAccountVoteDownBtn; - + $votedownbtn = isset($_SESSION['id']) ? "\t\t\n" : $noAccountVoteDownBtn; + echo ""; echo ""; @@ -173,7 +180,7 @@ function getNoAccountButton($way) { - + "; $counter++; @@ -206,7 +213,6 @@ function getNoAccountButton($way) { } } - mysqli_close($dbc); + mysqli_close($dbc); include('includes/footer.html'); ?> - From fe17e2a1f8be6a135ce1ade23a22f086202ce109 Mon Sep 17 00:00:00 2001 From: Varun <31084854+Borumer@users.noreply.github.com> Date: Mon, 20 Jan 2020 20:38:42 -0500 Subject: [PATCH 2/7] Fix social media icon disappearing bug --- pages/includes/footer.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/includes/footer.html b/pages/includes/footer.html index 597748f..1ad22b4 100644 --- a/pages/includes/footer.html +++ b/pages/includes/footer.html @@ -11,9 +11,9 @@ "; echo ""; // Generate query for answers' information @@ -81,11 +97,10 @@ function getDownArrow() { - + "; /* */ ?> - diff --git a/pages/question.php b/pages/question.php index bdfbb64..103fc8a 100644 --- a/pages/question.php +++ b/pages/question.php @@ -127,7 +127,7 @@ function getNoAccountButton($way) { @@ -193,7 +193,7 @@ function getNoAccountButton($way) {

- , document.getElementById("your-answer-ta").value)'> + , document.getElementById("your-answer-ta").value, )'> Date: Thu, 23 Jan 2020 11:19:57 -0500 Subject: [PATCH 4/7] Add margin on comment section --- css/profile.css | 1 + 1 file changed, 1 insertion(+) diff --git a/css/profile.css b/css/profile.css index cad1798..2c42bee 100644 --- a/css/profile.css +++ b/css/profile.css @@ -73,5 +73,6 @@ div.page-with-form-body > form > p.form-inputs { } #question-page-table div.comment-section { + margin-left: 10px; text-align:left; } From 0f70f8f654cd929e8a2b685c11975944a72abf2b Mon Sep 17 00:00:00 2001 From: Varun <31084854+Borumer@users.noreply.github.com> Date: Thu, 23 Jan 2020 12:07:47 -0500 Subject: [PATCH 5/7] Made question page responsive --- css/style.css | 8 ++++---- css/toggles.css | 7 +++++-- pages/question.php | 14 +++++++------- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/css/style.css b/css/style.css index 7c0ced2..2b1bc25 100644 --- a/css/style.css +++ b/css/style.css @@ -1,5 +1,5 @@ .sidebar-outer { - position: relative; + position: relative; } .none { @@ -60,7 +60,7 @@ } .sidebar-outer + div.col-sm-8 { - + } .fixed-sidebar a { @@ -121,7 +121,7 @@ width: 35px; height: 5px; background-color: black; - margin: 6px 0; + margin: 6px 0; } .t--dark div.navicon div { @@ -160,6 +160,7 @@ a.question-tags { .question-poster { padding: 5px 6px 7px 7px; + float: right; } .question-poster, .question-tags { @@ -216,4 +217,3 @@ form input, form textarea { form input:focus { outline-color: blue; } - diff --git a/css/toggles.css b/css/toggles.css index cb43abf..99b9d8a 100644 --- a/css/toggles.css +++ b/css/toggles.css @@ -1,7 +1,7 @@ table#question-page-table { padding: 0px; - width: 790px; border-collapse: separate; + width: 100%; border-spacing: 10px 50px; } @@ -23,6 +23,10 @@ table#question-page-table tr td div { text-align: center; } +#your-answer-ta { + width: 100%; +} + #bio { margin-bottom: 1em; width: 80%; @@ -137,4 +141,3 @@ td.output { margin-bottom: 40%; } } - diff --git a/pages/question.php b/pages/question.php index 103fc8a..78296bf 100644 --- a/pages/question.php +++ b/pages/question.php @@ -91,6 +91,13 @@ function getNoAccountButton($way) {

+ + + - - - + 0) { + while ($row = mysqli_fetch_array($r, MYSQLI_ASSOC)) { + echo ""; + } + } + ?> -
- {$rowCorr[1]}\n"; echo $votedownbtn; - ?> + ?> -

+

+
+ + +
+
"; echo $voteupbtn; - + $voteCount = $row2['votes'] == null ? 0 : $row2['votes']; - + echo "\t\t
$voteCount
"; echo $votedownbtn; echo "
"; echo $voteupbtn; -$voteCount = $ansrow['votes'] == null ? 0 : $ansrow['votes']; - -echo "\t\t
$voteCount
"; +echo "\t\t
0
"; echo $votedownbtn; echo "
- +
+
+ +
+
-
- -
-
From 51fcde0834ea5df7f5451838ada3ba7dd0d20fea Mon Sep 17 00:00:00 2001 From: Varun <31084854+Borumer@users.noreply.github.com> Date: Thu, 23 Jan 2020 13:15:58 -0500 Subject: [PATCH 6/7] Finish comment section display --- css/profile.css | 9 +++++++-- pages/question.php | 14 ++++++++++++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/css/profile.css b/css/profile.css index 2c42bee..8bfe327 100644 --- a/css/profile.css +++ b/css/profile.css @@ -72,7 +72,12 @@ div.page-with-form-body > form > p.form-inputs { background-color: #eeeeee; } -#question-page-table div.comment-section { - margin-left: 10px; +#question-page-table td.comments { + border-style: solid none solid none; + border-width: 1px; + padding: 2em 0; +} + +#question-page-table div.new-comment { text-align:left; } diff --git a/pages/question.php b/pages/question.php index 78296bf..c4e9791 100644 --- a/pages/question.php +++ b/pages/question.php @@ -123,9 +123,19 @@ function getNoAccountButton($way) {
{$row['body']}
-
+
+ +
From ab6f4928747adcdfc5cda1d7d708ea4c13499e74 Mon Sep 17 00:00:00 2001 From: GnatSwatter <51492381+GnatSwatter@users.noreply.github.com> Date: Thu, 23 Jan 2020 13:33:06 -0500 Subject: [PATCH 7/7] No profile letters (#49) * Add button back home in 404 page * Remove debug echo statement from Interesting * Changed default no profile image --- 404.shtml | 1 + images/unavailable.png | Bin 1751 -> 1295 bytes pages/Interesting.php | 13 ++++++------- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/404.shtml b/404.shtml index ba4bd8c..fa48655 100644 --- a/404.shtml +++ b/404.shtml @@ -64,6 +64,7 @@ a {
+ ! diff --git a/images/unavailable.png b/images/unavailable.png index e47b95b9f917a95491693b9c5dc3195ca7e23b3c..9931ce3e5803ac60c528f355ecbd5dc3f6366d80 100644 GIT binary patch delta 1238 zcmcc4+s`$@v;GJJ1K$zGsoH$f3=AwwJY5_^D&pSGep__gfQRMrzW>(S1J!+GqUD!3 z1eQN|H@|FI@N9)J_A4vp>+OGfoO}H7$FI8*YCA6F2XUK3%?VEv&|K@V_S2P^!;*@d zy{Gssn5O3LE&nra)e@l<%NB-Dt$tp8-&3lwPs(DI&(z|cLvafAN7d_>nQRjC_?tOj zvG-ri-&uUE&t&E@IDPHSxTUBKgC$kzFUwdf9anp4z* zp2e?4zl&^&U-U38g>{xE+AsyuPB!_3ReA4DvkjF*5(vC+-5(PN?f zmG_6TI?v5JV92rvWrtv2|Nk;Z5eJ!Y7_8r5`P8N%c_t zUjHR>gMh|kjnfL}oBj&D)d+0+qH}{|%lDMD%#O$V(t%N{5ISDEse$VEPjS10Ub zw)83~S@-n3EbHd@Mb`teTvkiuDJ>Pra9qea(RfG4mmf0hX18zO1J~dMLoc2~zt!-XG3yd%6q+a>6clD|Iw;%8IDV^jfahr9hm{WKC<;7pL zXT4Low3g}Xq-Rr&*GE_LhVT2P&8NgG{z5DBTF0Jn{;HU@yIc;lSlvD|(f7qs(ePDT zmzFZ!)jTT|-fgm|($utP$_t^!b0%3S7rFPQNY%bObn&PA+|{cc_#Wj1R+mlvtaoM3 z&sU$zgjcxAEmf;ed2r5zi@U`_>W*sQi}saUKk2l)&&%HVy3Sucpx4Hum_K^&&PDRe zg;uEPO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M@I^+Oz-sy=~ki_q)8kt z-B;#t0VHj#t@HdI`0ymqaGJ z-DeqHnO}Xt<2k+{PoMS2V0NlVIRsn6aF)B$7pZ|xaWPUBl)qO_59z}xUjrLG<2nlA zH#1=H?KX!Gw>l&bM$6h63O%)C1=a8BTWJ65xtgf#9?2j#o}F(?#7;%;R*ty_u(6D8 zTWh*i5JB9KXu8i)OFxUGQbzkNi*iv819VH5#Y*Y|eKwXn)gN3DSht&{&Odr7^dQrE z1F%adZtoO}Em`VHVncd*dYgda3~OplR4JdJIUyc%++e3nrAupK$66;^Zt5#GHq$4m<)fpc56|p(gF>Mk$4<}au=aat%gf6W zwA7v8Q-bLqGWSfqr7(3eRYio&jf+BuYNE#_{2ZyOa4y1A%R0LO{iL?Gulm_DTHght zuW|6|rFnJ`?~dc^(6AjR2f0v$^?l77Sc2tPHuQ%}{Ks4LWgc%HtJwA_X%z(?BZ$Xw LAJ+<(^Edtlk-kgC diff --git a/pages/Interesting.php b/pages/Interesting.php index 69bb912..cbf8198 100644 --- a/pages/Interesting.php +++ b/pages/Interesting.php @@ -1,4 +1,4 @@ -

Interesting Questions

- @@ -120,7 +120,7 @@ Unanswered
-"; while ($row = @mysqli_fetch_array($result, MYSQLI_ASSOC)) { // Loop through the records in an associative array $timeelapsed = $row['date_posted'] . " days ago"; @@ -159,4 +159,3 @@ @include_once('includes/footer.html'); ?> -