Ticket #421: cert_and_forum_prefs_form_patch.patch

File cert_and_forum_prefs_form_patch.patch, 8.5 kB (added by Simek, 1 year ago)

cert1.php and edit_forum_preferences_form.php

  • cert1.php

    old new  
    2121$credit = credit_string($user, false); 
    2222 
    2323echo " 
    24 <table width=900 height=650 border=$border cellpadding=20><tr><td> 
     24<table width=\"900\" height=\"650\" border=\"$border\" cellpadding=\"20\"><tr><td> 
    2525<center> 
    26 <table width=700 border=0><tr><td> 
    27 <center> 
    28 <font style=\"font-size: 52\" face=\"Old English Text MT,ZapfChancery\">Certificate of Computation 
    29  
    30  
    31 <font face=\"Lucida Bright,Times New Roman\" style=\"font-size:24\"> 
     26<table width=\"700\" border=\"0\"><tr><td> 
     27<font style=\"font-size: 52\" face=\"Old English Text MT,ZapfChancery\">Certificate of Computation</font> 
    3228<br><br><br> 
    33 This certifies that 
     29<font style=\"font-size:24; font-family:Lucida Bright,Times New Roman\"> 
     30This certifies that</font> 
    3431<p> 
    35 <font face=\"Lucida Bright,Times New Roman\" style=\"font-size:32\"> 
     32<font style=\"font-size:32; font-family:Lucida Bright,Times New Roman\"> 
    3633$user->name 
    37  
    38 <font face=\"Lucida Bright,Times New Roman\" style=\"font-size:16\"> 
     34</font> 
     35<font style=\"font-size:16; font-family:Lucida Bright,Times New Roman\"> 
    3936<p> 
    4037has participated in ".PROJECT." since $join, 
    4138and has contributed $credit 
    4239to ".PROJECT.". 
    43  
     40</font> 
    4441<br><br><br> 
    45 </td><tr></table> 
    46 <table width=100%><tr> 
    47 <td width=40><br></td> 
    48 <td align=left
    49 <font face=\"Lucida Bright,Times New Roman\" style=\"font-size:16\"> 
    50 <img src=images/SIGNATURE
     42</td></tr></table> 
     43<table width=\"100%\"><tr> 
     44<td width=\"40\"><br></td> 
     45<td align=\"left\"
     46<font style=\"font-size:16; font-family:Lucida Bright,Times New Roman\"> 
     47<img src=\"images/SIGNATURE\"
    5148<br> 
    5249PROJECT DIRECTOR NAME 
    5350<br>Director, ".PROJECT." 
    5451<br><br> 
    5552$today 
    5653</td> 
    57 <td align=center valign=center> <img src=PROJECT_LOGO> <td> 
    58 <td align=center width=30% valign=center><img src=images/INSTITUTION_LOGO></td> 
     54<td align=\"center\" valign=\"center\"><img src=\"PROJECT_LOGO\"><td> 
     55<td align=\"center\" width=\"30%\" valign=\"center\"><img src=\"images/INSTITUTION_LOGO\"></td> 
    5956 
    60 </td><tr></table> 
     57</td></tr></table> 
    6158"; 
    62 ?> 
     59?> 
  • edit_forum_preferences_form.php

    old new  
    1212db_init(); 
    1313$user = re_get_logged_in_user(); 
    1414 
    15  
    1615page_head("Edit message board preferences"); 
    1716echo "<script type=\"text/javascript\"> 
    1817function textCounter(field, countfield, maxlimit) 
     
    3130 
    3231start_table(); 
    3332row1("Reset preferences"); 
    34 row2("<font size=-2>Use this button to reset preferences to the defaults</font>", 
     33row2("<font size=\"-2\">Use this button to reset preferences to the defaults</font>", 
    3534    "<form method=\"post\" action=\"edit_forum_preferences_action.php\"><input type=\"submit\" value=\"Reset preferences\"><input type=\"hidden\" name=\"action\" value=\"reset\"></form>"); 
    3635echo "<form method=\"post\" action=\"edit_forum_preferences_action.php\" enctype=\"multipart/form-data\">"; 
    3736if ($user->hasAvatar()){ 
     
    4039    $zero_select="checked=\"true\""; 
    4140} 
    4241row1("Avatar"); 
    43 row2("<font size=-2>The virtual representation of you on the message boards<br/>Note: Forced size of 100x100 pixels<br>format: jpg/png - size: at most 4k</font>", 
     42row2("<font size=\"-2\">The virtual representation of you on the message boards<br>Note: Forced size of 100x100 pixels<br>format: jpg/png - size: at most 4k</font>", 
    4443    " 
    4544        <table> 
    4645            <tr><td><input type=\"radio\" name=\"avatar_select\" value=\"0\" ".$zero_select.">Don't use an avatar</td><td></td></tr> 
     
    4948        " 
    5049); 
    5150if ($user->hasAvatar()){ 
    52     row2("Avatar preview<br><font size=-2>This is how your avatar will look</font>", 
     51    row2("Avatar preview<br><font size=\"-2\">This is how your avatar will look</font>", 
    5352    "<img src=\"".$user->getAvatar()."\" width=\"100\" height=\"100\">"); 
    5453} 
    5554 
    5655row1("Sort styles"); 
    57 row2("<font size=-2>How to sort the replies in the message board and Q&amp;A areas</font>", 
     56row2("<font size=\"-2\">How to sort the replies in the message board and Q&amp;A areas</font>", 
    5857    " 
    5958        <table> 
    6059            <tr><td>Message threadlist:</td><td>".select_from_array("forum_sort", $forum_sort_styles, $user->getForumSortStyle())."</td></tr> 
     
    7271 
    7372row1("Display and Behavior"); 
    7473row2( 
    75     "<br><font size=-2>How to treat links and images in the forum<br>and how to act on unread posts</font>", 
     74    "<br><font size=\"-2\">How to treat links and images in the forum<br>and how to act on unread posts</font>", 
    7675    "<table><tr><td> 
    7776        <input type=\"checkbox\" name=\"forum_images_as_links\" ".$forum_image_as_link."> Show images as links<br> 
    7877        <input type=\"checkbox\" name=\"forum_link_externally\" ".$forum_link_externally."> Open links in new window/tab<br> 
    7978        <input type=\"checkbox\" name=\"forum_jump_to_unread\" ".$forum_jump_to_unread."> Jump to first new post in thread automatically<br> 
    8079        <input type=\"checkbox\" name=\"forum_ignore_sticky_posts\" ".$forum_ignore_sticky_posts.">Do not reorder sticky posts<br> 
    8180        <br /> 
    82         <input type=\"text\" name=\"forum_minimum_wrap_postcount\" style=\"width: 30px;\" value=\"".$forum_minimum_wrap_postcount."\"> If a thread contains more than this number of posts<br /
    83         <input type=\"text\" name=\"forum_display_wrap_postcount\" style=\"width: 30px;\" value=\"".$forum_display_wrap_postcount."\"> only display the first one and this many of the last ones<br /
     81        <input type=\"text\" name=\"forum_minimum_wrap_postcount\" style=\"width: 30px;\" value=\"".$forum_minimum_wrap_postcount."\"> If a thread contains more than this number of posts<br
     82        <input type=\"text\" name=\"forum_display_wrap_postcount\" style=\"width: 30px;\" value=\"".$forum_display_wrap_postcount."\"> only display the first one and this many of the last ones<br
    8483         
    8584    </td></tr></table>" 
    8685); 
     
    9796 
    9897row1("Filtering"); 
    9998row2( 
    100     "<br><font size=-2>What to display<br>If you set both your high and low thresholds to 0 or<br>empty they will reset to the default values</font>", 
     99    "<br><font size=\"-2\">What to display<br>If you set both your high and low thresholds to 0 or<br>empty they will reset to the default values</font>", 
    101100    "<table><tr><td> 
    102101        <input type=\"checkbox\" name=\"forum_hide_avatars\" ".$forum_hide_avatars."> Hide avatar images<br> 
    103102        <input type=\"checkbox\" name=\"forum_hide_signatures\" ".$forum_hide_signatures."> Hide signatures<br> 
     
    120119    } 
    121120} 
    122121row2("Filtered users". 
    123     "<br><font size=-2>Ignore specific users<br>You can define a list of users to ignore.<br>These users will have to write posts with very high<br> rating in order to not be filtered.</font>", 
     122    "<br><font size=\"-2\">Ignore specific users<br>You can define a list of users to ignore.<br>These users will have to write posts with very high<br> rating in order to not be filtered.</font>", 
    124123    "<table><tr><td> 
    125124        $forum_filtered_userlist 
    126125    </td></tr></table> 
    127126    <table width=\"380\"> 
    128127        <tr><td width=\"32\"><input type=\"text\" name=\"forum_filter_user\" style=\"width: 80px;\"></td><td>Userid (For instance: 123456789)</td></tr> 
    129128        <tr><td colspan=\"2\"><input type=\"submit\" name=\"add_user_to_filter\" value=\"Add user to filter\"></td></tr> 
    130         <tr><td colspan=2
     129        <tr><td colspan=\"2\"
    131130            Please note that you can only filter a limited number of users. 
    132131        </td></tr> 
    133132    </table> 
     
    139138$maxlen=250; 
    140139row1("Signature"); 
    141140row2(html_info(). 
    142     "<font size=-2><br>Max length (including newlines) is $maxlen chars.</font>", 
     141    "<font size=\"-2\"><br>Max length (including newlines) is $maxlen chars.</font>", 
    143142    "<table><tr><td> 
    144143    <textarea name=\"signature\" rows=4 cols=50 id=\"signature\" onkeydown=\"textCounter(this.form.signature, this.form.remLen,$maxlen);\" 
    145144    onkeyup=\"textCounter(this.form.signature, this.form.remLen,250);\">".$signature."</textarea> 
     
    148147    </td></tr></table>"); 
    149148if ($user->getSignature()!=""){ 
    150149row2("Signature preview". 
    151     "<br><font size=-2>This is how your signature will look in the forums</font>", 
     150    "<br><font size=\"-2\">This is how your signature will look in the forums</font>", 
    152151    output_transform($user->getSignature()) 
    153152); 
    154153} 
    155154row1("&nbsp;"); 
    156 row2("", "<input type=submit value='Update info'>"); 
     155row2("", "<input type=\"submit\" value=\"'Update info'\">"); 
    157156echo "</form>\n"; 
    158157end_table(); 
    159158page_tail(); 

If this page is incomplete or incorrect, please edit it or add it to the wiki to-do list. To do this, you must be logged in; click Login or Register above.