Ticket #872: some.forum.test.tweaks.and.trivial.changes.in.your.accot.page.patch
File some.forum.test.tweaks.and.trivial.changes.in.your.accot.page.patch, 6.2 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/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;