Ticket #872: some.forum.test.tweaks.and.trivial.changes.in.your.account.page.patch
File some.forum.test.tweaks.and.trivial.changes.in.your.account.page.patch, 10.1 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. … … 198 194 199 195 // Start the forum table, output the proper headings and such. 200 196 // 201 function start_forum_table($headings, $extra="width=\"100%\" ") {197 function start_forum_table($headings, $extra="width=\"100%\" id=\"forum_main\"") { 202 198 $span = null; 203 199 204 200 start_table($extra); … … 213 209 } 214 210 } else { 215 211 $title = $headings[$i]; 216 $class = "heading ";212 $class = "heading_forum"; 217 213 $span=""; 218 214 } 219 215 echo "<th class=$class$span>$title</th>"; -
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/forum_forum.php
106 106 echo " 107 107 <p> 108 108 This message board is available as an 109 <a href=forum_rss.php?forumid=$forum->id& setup=1>RSS feed109 <a href=forum_rss.php?forumid=$forum->id&setup=1>RSS feed 110 110 <img src=img/feed_logo.png></a> 111 111 "; 112 112 … … 155 155 echo '<tr class="row'.$n.'">'; 156 156 } 157 157 158 echo "<td width=\"1%\" align=\"right\"><nobr>";158 echo "<td width=\"1%\"><nobr>"; 159 159 if ($user && ($thread->rating()>$user->prefs->high_rating_threshold)) { 160 160 show_image(EMPHASIZE_IMAGE, "This message has a high average rating", "Highly rated"); 161 161 } … … 204 204 $n = ($n+1)%2; 205 205 206 206 echo ' 207 <td >'.($thread->replies+1).'</td>208 <td >'.user_links($owner).'</td>209 <td >'.$thread->views.'</td>210 <td class= \"lastpost\">'.time_diff_str($thread->timestamp, time()).'</td>207 <td class="numbers leftborder">'.($thread->replies+1).'</td> 208 <td class="author leftborder">'.user_links($owner).'</td> 209 <td class="numbers leftborder">'.$thread->views.'</td> 210 <td class="lastpost leftborder">'.time_diff_str($thread->timestamp, time()).'</td> 211 211 </tr> 212 212 '; 213 213 flush(); -
user/forum_index.php
60 60 </em> 61 61 <br><span class=\"smalltext\">$d</span> 62 62 </td> 63 <td class=\"numbers \">$forum->threads</td>64 <td class=\"numbers \">$forum->posts</td>65 <td class=\"lastpost \">".time_diff_str($forum->timestamp, time())."</td>63 <td class=\"numbers leftborder\">$forum->threads</td> 64 <td class=\"numbers leftborder\">$forum->posts</td> 65 <td class=\"lastpost leftborder\">".time_diff_str($forum->timestamp, time())."</td> 66 66 </tr>"; 67 67 } 68 68 -
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; … … 159 170 border-style: solid; 160 171 margin: 2px 4px; 161 172 padding: 3px; 162 font-size: 1 2px;173 font-size: 11px; 163 174 -moz-border-radius: 5px; 164 175 -webkit-border-radius: 5px; 165 176 -khtml-border-radius: 5px; … … 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; … … 280 291 margin: 4px 0; 281 292 } 282 293 283 td.threadline , 284 td.numbers { 294 td.threadline { 285 295 text-align: left; 286 296 } 287 297 288 298 td.numbers { 289 299 text-align: center; 300 vertical-align: middle; 290 301 } 291 302 292 303 td.lastpost { 304 vertical-align: middle; 293 305 } 294 306 295 307 .title { … … 332 344 .authorcol .button { 333 345 margin: 0 6px; 334 346 line-height: 2.6em; 335 } 347 } 336 348 349 .leftborder { 350 border-left-width: 1px; 351 border-left-style: solid; 352 } 353 337 354 blockquote.postbody { 338 355 border-left-width: 2px; 339 356 border-left-style: solid; … … 348 365 overflow: visible; 349 366 } 350 367 368 #forum_main { 369 border: none; 370 padding: 6px; 371 border-spacing: 0 1px; 372 } 373 374 #pmbox { 375 height: 24px; 376 float: right; 377 text-align: center; 378 padding: 7px 6px 0 6px; 379 } 380 381 #searchbox { 382 height: 48px; 383 float: left; 384 padding: 6px 6px 2px 6px 385 } 386 387 #searchbox input[type="text"]{ 388 margin-left: 0; 389 } 390 391 #searchbox .btn { 392 padding: 3px 8px; 393 } 394 351 395 .forum_toplinks td { 352 396 vertical-align: middle; 353 397 } -
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 { … … 49 50 } 50 51 51 52 .row0 { 52 background-color: # d9d9d9;53 background-color: #ededed; 53 54 } 54 55 55 56 .row1 { 56 background-color: # eee;57 background-color: #f5f5f5; 57 58 } 58 59 59 60 .highlighted_row0 { … … 112 113 border-color: #eee; 113 114 } 114 115 115 td.category , tr.subtitle{ 116 #forum_main { 117 background: #666 url("img/forum_gradient.png") repeat-x; 118 } 119 120 .heading_forum { 121 background-color: #666; 122 color: #fff; 123 } 124 125 td.category, tr.subtitle{ 116 126 background-color: #ddd; 117 127 } 118 128 119 td.postheader { 129 td.postheader , 130 td.postfooter { 120 131 background-color: #eee; 121 132 } 122 133 123 134 td.postbody { 124 background : transparent url('img/75pct_white.png');135 background-color: #fff; 125 136 } 126 137 127 td.postfooter {128 background-color: #eee;129 }130 131 138 tr.postseperator { 132 139 background-color: #c8c8c8; 133 140 border-color: #aaa; … … 142 149 border-color: #a8a8a8; 143 150 } 144 151 152 .leftborder { 153 border-left-color: #fff; 154 } 155 145 156 blockquote.postbody { 146 157 border-left-color: #0089e1; 147 158 background-color: #f5fffa;