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 Simek, 15 years ago)

updated verison

  • inc/forum.inc

     
    108108// show a banner with search form on left and PM info on right
    109109//
    110110function 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
    139135}
    140136
    141137// Output the forum/thread title.
  • inc/user.inc

     
    194194        $email_text = "Verification pending";
    195195    }
    196196
    197     row1(tra("Account information"));
     197    row1_top(tra("Account information"));
    198198    row2(tra("Name"), $user->name);
    199199    row2(tra("Email address"), $email_text);
    200200    if (strlen($user->url)) {
     
    231231}
    232232
    233233function show_community_private($user) {
    234     row1(tra("Community"));
     234    row1_top(tra("Community"));
    235235
    236236    if ($user->has_profile) {
    237237        $x = "<a href=\"view_profile.php?userid=$user->id\">".tra("View")."</a> | <a href=\"delete_profile.php\">".tra("Delete")."</a>";
  • inc/util.inc

     
    274274    echo "<tr><td class=\"$class\" colspan=\"$ncols\">$x</td></tr>\n";
    275275}
    276276
     277function row1_top($x, $ncols=2, $class="heading") {
     278    echo "<tr><td class=\"$class ontop\" colspan=\"$ncols\">$x</td></tr>\n";
     279}
     280
    277281function row2($x, $y, $show_error=false) {
    278282    if ($x=="") $x="<br>";
    279283    if ($y=="") $y="<br>";
  • project.sample/project.inc

     
    4242
    4343function project_footer($show_return, $show_date, $prefix) {
    4444    // If you include any links, prepend URL with $prefix
    45     echo "<br><hr noshade size=1><center>";
     45    echo "<br><hr /><center>";
    4646    if ($show_return) {
    4747        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";
    4848    }
  • user/main.css

     
    2424h3, h4 { font-weight: bold; }
    2525
    2626hr {
     27        border-top-width: 2px;
     28        border-top-style: solid;
    2729        size: 0;
    2830        margin: 8px 2px;
    2931}
     
    3840        margin: 2px;
    3941}
    4042
    41 table.bordered {
     43.bordered {
    4244        border-width: 2px;
    4345        border-style: solid;
    4446        -moz-border-radius: 6px;
     
    104106        vertical-align: middle;
    105107}
    106108
     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
    107119.row0,
    108120.row1 ,
    109121.highlighted_row0,
     
    131143        /* IE6 doesn't understand [type=XXXX] so we use class "button" */
    132144
    133145a.button {
    134 
    135146        line-height: 2.4em;
    136147        padding: 4px 8px;
    137148        margin: 0 4px;
     
    237248        height: 24px;
    238249        margin-left: 4px;
    239250        padding-left: 8px;
    240         -moz-border-radius: 0 10px;
     251        -moz-border-radius: 0 0 10px 10px;
    241252        -webkit-border-radius-bottomleft: 10px;
    242253        -webkit-border-radius-bottomright: 10px;
    243254        -khtml-border-radius-bottomleft: 10px;
     
    348359        overflow: visible;
    349360}
    350361
     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
    351385.forum_toplinks td {
    352386        vertical-align: middle;
    353387}
  • user/white.css

     
    1212}
    1313
    1414hr {
    15         border-top: 2px solid #e8e8e8;
     15        border-top-color: #e8e8e8;
    1616}
    1717
    18 table.bordered {
     18.bordered {
    1919        border-color: #e8e8e8;
     20        background-color: #fff;
    2021}
    2122
    2223th {
     
    116117        background-color: #ddd;
    117118}
    118119
    119 td.postheader {
     120td.postheader ,
     121td.postfooter {
    120122        background-color: #eee;
    121123}
    122124
    123125td.postbody {
    124         background: transparent url('img/75pct_white.png');
     126        background-color: #fff;
    125127}
    126128
    127 td.postfooter {
    128         background-color: #eee;
    129 }
    130 
    131129tr.postseperator {
    132130        background-color: #c8c8c8;
    133131        border-color: #aaa;