Changeset 1283

Show
Ignore:
Timestamp:
12/30/06 12:30:53 (2 years ago)
Author:
jm3
Message:

adding delete-ability and fixing formatting

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • feedmelinks/comments.php

    r1278 r1283  
    1313?> 
    1414 
    15 <title> Feed me comments </title> 
     15<title> Feed Me Comments! </title> 
     16 
     17<style type="text/css"> 
     18        h3 { 
     19                margin-bottom: 0px; 
     20        } 
     21        div { 
     22                line-height: 1.5em; 
     23        } 
     24</style> 
    1625 
    1726<?php  
     
    2332?> 
    2433 
    25 <h3
     34<h1
    2635<?php  
    2736                if( $who )  
     
    3039                        echo "Delete comment:"; 
    3140                else 
    32                         echo "My Comments"; 
    33 ?> 
    34 </h3
     41                        echo "My Comment Activity:"; 
     42?> 
     43</h1
    3544<?php 
    3645                if( $op == "delete" && getOwnerForLink( $link ) == $u ) { 
     
    7281 
    7382<div class="column" style="float: left;"> 
    74         <span style="font-weight: bold; text-transform: uppercase">others' comments on <?= $who ? $who . "'s" : "YOUR" ?> links:</span
     83        <h3>Recent Comments on <?= $who ? $who . "'s" : "Your" ?> Links:</h3
    7584        <div class="onepxlline">&nbsp;</div> 
    7685        <br /> 
     
    92101                        echo "got here<br />"; 
    93102?> 
    94                 <b><?= $n ?> <?= $n == 1 ? "comment" : "comments" ?>b>:<br /> 
     103                <b><?= $n ?> <?= $n == 1 ? "comment" : "comments" ?></b>:<br /> 
    95104<?php 
    96105                 
     
    101110                        $commentor = $matches[2]; 
    102111                        $date = $matches[3]; 
    103                         $comment = $matches[4]
     112                        $comment = format_comment( $matches[4] )
    104113         
    105114                        echo "$c)  by "; 
     
    112121                        echo "<br />\n"; 
    113122                        echo "&nbsp; &nbsp; <em>$comment</em>\n"; 
     123                        echo " &nbsp; [<a href='/comments?op=delete&link=$linkId&comment=$line_num'>delete</a>]"; 
     124 
    114125                        echo "<br />\n"; 
    115126                        echo "<br />\n"; 
     
    130141 
    131142        <br /> 
    132         <span style="font-weight: bold; text-transform: uppercase"> 
    133         <?= $who ? ($who . "'s comments on his own links") : "Your comments on your own links" ?>span> 
     143        <h3><?= $who ? ($who . "'s comments on his own links") : "Your comments on your own links" ?></h3> 
    134144        <div class="onepxlline">&nbsp;</div> 
    135145        <br /> 
     
    184194 
    185195<div class="column" style="float: right;"> 
    186         <span style="font-weight: bold; text-transform: uppercase"><?= $who ? $who . "'s" : "" ?> comments on others' links:</span
     196        <h3><?= $who ? $who . "'s" : "Your" ?> Comments on Others' Links:</h3
    187197        <div class="onepxlline">&nbsp;</div> 
    188198        <br /> 
     
    205215                        $commentor = $matches[1]; 
    206216                        $date = $matches[4]; 
    207                         $comment = $matches[5]
     217                        $comment = format_comment( $matches[5] )
    208218         
    209219                        echo "$c : on "; 
     
    214224                        echo "<br />\n"; 
    215225                        echo "&nbsp; &nbsp; <em>$comment</em>\n"; 
     226                        echo " &nbsp; [<a href='/comments?op=delete&link=$linkId&comment=$line_num'>delete</a>]"; 
    216227                        echo "<br />\n"; 
    217228                        echo "<br />\n"; 
     
    237248<br /> 
    238249<br /> 
     250<br /> 
     251<br /> 
    239252<div width="650"> 
    240253<?php include( "$modules/footer.inc.php" ); ?>