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 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/black.css

     
    1 a:link {
    2         color: rgb(245, 185, 0);
     1a, a:link, a:visited, a:active {
     2        color: #0069A1;
    33}
    44
    5 a:visited {
    6         color: rgb(225, 140, 0);
     5body {
     6        background: #000;
     7        color: white;
    78}
    89
    9 a:active {
    10         color: yellow;
     10h1 {
     11        color: #203C66;
    1112}
    1213
    13 body , table , input , select {
    14         font-family: Verdana, Arial, Sans Serif;
    15         font-size: small;
     14hr {
     15        border-top: 2px solid #e8e8e8;
    1616}
    1717
    18 body {
    19         background-color: black;
    20     color: white;
     18.bordered {
     19        border-color: #e8e8e8;
     20        background-color: #fff;
    2121}
    2222
    23 table {
    24       border: 0px;
     23th {
     24        background-color: #c0c0c0;
    2525}
    2626
    27 table.bordered {
    28       border: 1px solid grey;
     27td.bordered {
     28        border-color: gray;
    2929}
    3030
    31 table.question {
    32     border: 1px solid black;
     31td.indent {
     32        border-color: #fff;
    3333}
    3434
    35 th {
    36     border-bottom: 2px solid black;
    37         background-color: rgb(150, 150, 150);
     35td.heading {
     36        background-color: #d8d8d8;
     37}
     38
     39td.fieldname {
     40        background-color: #eee;
     41}
     42
     43td.fieldname_error,
     44td.fieldvalue_error  {
     45        background-color: #f88;
     46}
     47
     48td.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
     76tr.message {
     77        background-color: #e0e0e0;
     78}
     79
     80input[type="button"],
     81input[type="submit"],
     82.btn,
     83a.button {
     84        background: #f2f2f2 url(img/white_grad.png) repeat-x scroll left top;
    3885        color: black;
    39         font-weight: bold;
     86        border-color: #ccc;
    4087}
    4188
    42 td {
    43     border: 1px solid black;
     89input[type="button"]:hover,
     90input[type="submit"]:hover,
     91input.btn:hover,
     92.button:hover ,
     93.forum_toplinks a:hover {
     94        border: 1px solid #555;
     95        color: #0069A1;
    4496}
    4597
    46 td.bordered {
    47     border: 1px solid grey;
     98input[type="text"], select, textarea {
     99        border-color: #d8d8d8;
    48100}
    49101
    50 td.indent {
    51          border-left: 4px solid black;
     102#news {
     103        background-color: #dff0ff;
     104        border-color: #add8e6;
    52105}
    53106
    54 td.heading {
    55            background-color: rgb(90,90,90);
    56                color: white;
    57                font-weight: bold;
     107#news h3 {
     108        color: #666;
    58109}
    59110
    60 td.fieldname {
    61              background-color: rgb(50,50,50);
    62              color: white;
     111#uotd {
     112        background-color: #d3d3d3;
     113        border-color: #eee;
    63114}
    64115
    65 td.category {
     116td.category , tr.subtitle{
     117        background-color: #ddd;
     118}
    66119
     120td.postheader {
     121        background-color: #eee;
    67122}
    68123
    69 tr.row0 {
    70         background-color: rgb(70,70,70);
     124td.postbody {
     125
    71126}
    72127
    73 tr.row1 {
    74         background-color: rgb(50,50,50);
    75        
     128td.postfooter {
     129        background-color: #eee;
    76130}
    77131
    78 tr.subtitle {
    79         background-color: rgb(90,90,90);
    80         color: white;
    81         font-weight: bold;
     132tr.postseperator {
     133        background-color: #c8c8c8;
     134        border-color: #aaa;
    82135}
    83136
    84 tr.message {
    85            background-color: rgb(100,100,100);
     137div.authorcol {
     138        background-color: white;
     139        border-color: #c8c8c8;
    86140}
    87141
    88 input , select {
    89         vertical-align: middle;
     142.authorinfo img {
     143        border-color: #a8a8a8;
    90144}
    91145
    92 h1 , h2 {
    93         color: white;
    94         font-size: large;
    95         font-variant: small-caps;
    96         font-weight: normal;
    97         margin-top: 10px;
     146blockquote.postbody {
     147        border-left-color: #0089e1;
     148        background-color: #f5fffa;
    98149}
    99150
    100 h3 , h4 {
    101         color: white;
    102         text-decoration: underline;
    103         font-size: small;
    104         font-variant: small-caps;
    105         font-weight: bold;
     151span.news_date {
     152        color: #646464;
    106153}
    107154
    108 pre {
    109         white-space: normal;
    110         margin: 0;
     155span.highlight {
     156        background-color: #ffc;
    111157}
    112158
    113 img {
    114     border: 0px;
     159.code {
     160        border-left-color: #caa;
    115161}
    116162
    117 .title {
    118         font-size: small;
    119         font-weight: bold;
     163.error {
     164        color: #f00;
    120165}
    121166
    122 .description {
    123         font-size: 80%;
    124         font-weight: normal;
     167.notice {
     168        color: #090;
    125169}
    126170
    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
     182td.running { background-color: #9aff4f; }
     183
     184td.notrunning { background-color: #feff6f; }
     185
     186td.disabled { background-color: #ff4f4f; }
  • 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;