Ticket #872: some.forum.test.tweaks.and.trivial.changes.in.your.accot.page.2.patch
File some.forum.test.tweaks.and.trivial.changes.in.your.accot.page.2.patch, 10.4 KB (added by , 16 years ago) |
---|
-
inc/forum.inc
108 108 // show a banner with search form on left and PM info on right 109 109 // 110 110 function show_forum_header($user) { 111 echo "<form action=\"forum_search_action.php\" method=\"POST\"> 112 "; 113 start_table_noborder(); 114 echo "<tr> 115 "; 116 117 // Search 118 echo " 119 <td> 120 <input type=\"hidden\" name=\"search_max_time\" value=\"30\"> 121 <input type=\"hidden\" name=\"search_forum\" value=\"-1\"> 122 <input type=\"hidden\" name=\"search_sort\" value=\"5\"> 123 <input type=\"text\" name=\"search_keywords\"> 124 <input class=\"btn\" title=\"".tra("Search for words in forum messages")."\" type=\"submit\" value=\"".tra("Search forums")."\"><br> 125 <span class=\"smalltext\"><a href=\"forum_search.php\">".tra("Advanced search")."</a></span> 126 </td> 127 "; 128 129 if ($user) { 130 echo "<td align=\"right\">\n"; 131 echo "<p>".tra("Private messages").": ", pm_notification($user); 132 echo "</td>\n"; 133 } 134 echo "</tr> 135 "; 136 end_table(); 137 echo "</form> 138 "; 111 112 start_table_noborder(); 113 // Search 114 ?> 115 <tr><td> 116 <form action="forum_search_action.php" method="POST"> 117 <input type="hidden" name="search_max_time" value="30"> 118 <input type="hidden" name="search_forum" value="-1"> 119 <input type="hidden" name="search_sort" value="5"> 120 <div class="bordered" id="searchbox"> 121 <input type="text" name="search_keywords"> 122 <input class="btn" title="<?php echo tra("Search for words in forum messages") ?>" type="submit" value="<?php echo tra("Search forums") ?>"><br /> 123 <span class="smalltext"><a href="forum_search.php"><?php echo tra("Advanced search") ?></a></span> 124 </div> 125 </form> 126 <?php 127 128 // Private Messages 129 if ($user) { 130 echo "<div class=\"bordered\" id=\"pmbox\">".tra("Private messages").": ", pm_notification($user); 131 echo "</div></td></tr>\n"; 132 } 133 end_table(); 134 139 135 } 140 136 141 137 // Output the forum/thread title. -
inc/user.inc
194 194 $email_text = "Verification pending"; 195 195 } 196 196 197 row1 (tra("Account information"));197 row1_top(tra("Account information")); 198 198 row2(tra("Name"), $user->name); 199 199 row2(tra("Email address"), $email_text); 200 200 if (strlen($user->url)) { … … 231 231 } 232 232 233 233 function show_community_private($user) { 234 row1 (tra("Community"));234 row1_top(tra("Community")); 235 235 236 236 if ($user->has_profile) { 237 237 $x = "<a href=\"view_profile.php?userid=$user->id\">".tra("View")."</a> | <a href=\"delete_profile.php\">".tra("Delete")."</a>"; -
inc/util.inc
274 274 echo "<tr><td class=\"$class\" colspan=\"$ncols\">$x</td></tr>\n"; 275 275 } 276 276 277 function row1_top($x, $ncols=2, $class="heading") { 278 echo "<tr><td class=\"$class ontop\" colspan=\"$ncols\">$x</td></tr>\n"; 279 } 280 277 281 function row2($x, $y, $show_error=false) { 278 282 if ($x=="") $x="<br>"; 279 283 if ($y=="") $y="<br>"; -
project.sample/project.inc
42 42 43 43 function project_footer($show_return, $show_date, $prefix) { 44 44 // If you include any links, prepend URL with $prefix 45 echo "<br><hr noshade size=1><center>";45 echo "<br><hr /><center>"; 46 46 if ($show_return) { 47 47 echo "<a href=".$prefix."index.php>Home</a> | <a href=".$prefix."home.php>My Account</a> | <a href=".$prefix."forum_index.php>Message Boards</a><br>\n"; 48 48 } -
user/black.css
1 a :link{2 color: rgb(245, 185, 0);1 a, a:link, a:visited, a:active { 2 color: #0069A1; 3 3 } 4 4 5 a:visited { 6 color: rgb(225, 140, 0); 5 body { 6 background: #000; 7 color: white; 7 8 } 8 9 9 a:active{10 color: yellow;10 h1 { 11 color: #203C66; 11 12 } 12 13 13 body , table , input , select { 14 font-family: Verdana, Arial, Sans Serif; 15 font-size: small; 14 hr { 15 border-top: 2px solid #e8e8e8; 16 16 } 17 17 18 body{19 b ackground-color: black;20 color: white;18 .bordered { 19 border-color: #e8e8e8; 20 background-color: #fff; 21 21 } 22 22 23 t able{24 border: 0px;23 th { 24 background-color: #c0c0c0; 25 25 } 26 26 27 t able.bordered {28 border: 1px solid grey;27 td.bordered { 28 border-color: gray; 29 29 } 30 30 31 t able.question{32 border: 1px solid black;31 td.indent { 32 border-color: #fff; 33 33 } 34 34 35 th { 36 border-bottom: 2px solid black; 37 background-color: rgb(150, 150, 150); 35 td.heading { 36 background-color: #d8d8d8; 37 } 38 39 td.fieldname { 40 background-color: #eee; 41 } 42 43 td.fieldname_error, 44 td.fieldvalue_error { 45 background-color: #f88; 46 } 47 48 td.friend { 49 background-color: #e8e8e8; 50 } 51 52 .row0 { 53 background-color: #d9d9d9; 54 } 55 56 .row1 { 57 background-color: #eee; 58 } 59 60 .highlighted_row0 { 61 background-color: #b9d9f9; 62 } 63 64 .highlighted_row1 { 65 background-color: #ceeefe; 66 } 67 68 .row_hd0 { 69 background-color: #cffacf; 70 } 71 72 .row_hd1 { 73 background-color: #defade; 74 } 75 76 tr.message { 77 background-color: #e0e0e0; 78 } 79 80 input[type="button"], 81 input[type="submit"], 82 .btn, 83 a.button { 84 background: #f2f2f2 url(img/white_grad.png) repeat-x scroll left top; 38 85 color: black; 39 font-weight: bold;86 border-color: #ccc; 40 87 } 41 88 42 td { 43 border: 1px solid black; 89 input[type="button"]:hover, 90 input[type="submit"]:hover, 91 input.btn:hover, 92 .button:hover , 93 .forum_toplinks a:hover { 94 border: 1px solid #555; 95 color: #0069A1; 44 96 } 45 97 46 td.bordered{47 border: 1px solid grey;98 input[type="text"], select, textarea { 99 border-color: #d8d8d8; 48 100 } 49 101 50 td.indent { 51 border-left: 4px solid black; 102 #news { 103 background-color: #dff0ff; 104 border-color: #add8e6; 52 105 } 53 106 54 td.heading { 55 background-color: rgb(90,90,90); 56 color: white; 57 font-weight: bold; 107 #news h3 { 108 color: #666; 58 109 } 59 110 60 td.fieldname{61 background-color: rgb(50,50,50);62 color: white;111 #uotd { 112 background-color: #d3d3d3; 113 border-color: #eee; 63 114 } 64 115 65 td.category { 116 td.category , tr.subtitle{ 117 background-color: #ddd; 118 } 66 119 120 td.postheader { 121 background-color: #eee; 67 122 } 68 123 69 t r.row0 {70 background-color: rgb(70,70,70); 124 td.postbody { 125 71 126 } 72 127 73 tr.row1 { 74 background-color: rgb(50,50,50); 75 128 td.postfooter { 129 background-color: #eee; 76 130 } 77 131 78 tr.subtitle { 79 background-color: rgb(90,90,90); 80 color: white; 81 font-weight: bold; 132 tr.postseperator { 133 background-color: #c8c8c8; 134 border-color: #aaa; 82 135 } 83 136 84 tr.message { 85 background-color: rgb(100,100,100); 137 div.authorcol { 138 background-color: white; 139 border-color: #c8c8c8; 86 140 } 87 141 88 input , select{89 vertical-align: middle;142 .authorinfo img { 143 border-color: #a8a8a8; 90 144 } 91 145 92 h1 , h2 { 93 color: white; 94 font-size: large; 95 font-variant: small-caps; 96 font-weight: normal; 97 margin-top: 10px; 146 blockquote.postbody { 147 border-left-color: #0089e1; 148 background-color: #f5fffa; 98 149 } 99 150 100 h3 , h4 { 101 color: white; 102 text-decoration: underline; 103 font-size: small; 104 font-variant: small-caps; 105 font-weight: bold; 151 span.news_date { 152 color: #646464; 106 153 } 107 154 108 pre { 109 white-space: normal; 110 margin: 0; 155 span.highlight { 156 background-color: #ffc; 111 157 } 112 158 113 img{114 border: 0px;159 .code { 160 border-left-color: #caa; 115 161 } 116 162 117 .title { 118 font-size: small; 119 font-weight: bold; 163 .error { 164 color: #f00; 120 165 } 121 166 122 .description { 123 font-size: 80%; 124 font-weight: normal; 167 .notice { 168 color: #090; 125 169 } 126 170 127 .authorcol { 128 width: 100px; 129 overflow: hidden; 130 } 131 No newline at end of file 171 #preview { 172 border-color: #ccc; 173 background-color: #eee; 174 } 175 176 #preview .header { 177 border-bottom-color: #ccc; 178 } 179 180 /* Server Status Page */ 181 182 td.running { background-color: #9aff4f; } 183 184 td.notrunning { background-color: #feff6f; } 185 186 td.disabled { background-color: #ff4f4f; } -
user/main.css
24 24 h3, h4 { font-weight: bold; } 25 25 26 26 hr { 27 border-top-width: 2px; 28 border-top-style: solid; 27 29 size: 0; 28 30 margin: 8px 2px; 29 31 } … … 38 40 margin: 2px; 39 41 } 40 42 41 table.bordered {43 .bordered { 42 44 border-width: 2px; 43 45 border-style: solid; 44 46 -moz-border-radius: 6px; … … 104 106 vertical-align: middle; 105 107 } 106 108 109 .ontop { 110 -moz-border-radius: 6px 6px 0 0; 111 -khtml-border-radius-topleft: 6px; 112 -khtml-border-radius-topright: 6px; 113 -webkit-border-radius-topleft: 6px; 114 -webkit-border-radius-topright: 6px; 115 border-radius-topleft: 6px; 116 border-radius-topright: 6px; 117 } 118 107 119 .row0, 108 120 .row1 , 109 121 .highlighted_row0, … … 131 143 /* IE6 doesn't understand [type=XXXX] so we use class "button" */ 132 144 133 145 a.button { 134 135 146 line-height: 2.4em; 136 147 padding: 4px 8px; 137 148 margin: 0 4px; … … 237 248 height: 24px; 238 249 margin-left: 4px; 239 250 padding-left: 8px; 240 -moz-border-radius: 0 10px;251 -moz-border-radius: 0 0 10px 10px; 241 252 -webkit-border-radius-bottomleft: 10px; 242 253 -webkit-border-radius-bottomright: 10px; 243 254 -khtml-border-radius-bottomleft: 10px; … … 348 359 overflow: visible; 349 360 } 350 361 362 #pmbox { 363 width: 240px; 364 height: 24px; 365 float: right; 366 text-align: center; 367 padding: 7px 0 0 0; 368 } 369 370 #searchbox { 371 width: 240px; 372 height: 45px; 373 float: left; 374 padding: 6px 0 2px 7px 375 } 376 377 #searchbox input[type="text"]{ 378 margin-left: 0; 379 } 380 381 #searchbox .btn { 382 padding: 3px 8px; 383 } 384 351 385 .forum_toplinks td { 352 386 vertical-align: middle; 353 387 } -
user/white.css
12 12 } 13 13 14 14 hr { 15 border-top : 2px solid#e8e8e8;15 border-top-color: #e8e8e8; 16 16 } 17 17 18 table.bordered {18 .bordered { 19 19 border-color: #e8e8e8; 20 background-color: #fff; 20 21 } 21 22 22 23 th { … … 116 117 background-color: #ddd; 117 118 } 118 119 119 td.postheader { 120 td.postheader , 121 td.postfooter { 120 122 background-color: #eee; 121 123 } 122 124 123 125 td.postbody { 124 background : transparent url('img/75pct_white.png');126 background-color: #fff; 125 127 } 126 128 127 td.postfooter {128 background-color: #eee;129 }130 131 129 tr.postseperator { 132 130 background-color: #c8c8c8; 133 131 border-color: #aaa;