]> git.mjollnir.org Git - s9y.git/commitdiff
comments.inc.php - truncate author, email and url like referrer on admin comments...
authordonchambers <donchambers>
Tue, 18 Sep 2007 16:05:31 +0000 (16:05 +0000)
committerdonchambers <donchambers>
Tue, 18 Sep 2007 16:05:31 +0000 (16:05 +0000)
include/admin/comments.inc.php
templates/bulletproof/admin/style.css
templates/bulletproof/admin/style_fluid.css

index 1665e0f39c4f116a173f828407320ceb71af19db..5f294d71274582dc88d47adb49e5ca4e2a9aaea6 100644 (file)
@@ -398,11 +398,11 @@ foreach ($sql as $rs) {
     if ($comment['status'] == 'pending') {
         $class .= ' serendipity_admin_comment_pending'; 
     }
-    $header_class = ($comment['status'] == 'pending' ? 'serendipityAdminMsgNote' : '');
+    $header_class = ($comment['status'] == 'pending' ? 'serendipityAdminMsgNote serendipity_admin_comment_pending_header' : '');
 ?>
 <tr>
     <td class="<?php echo $header_class; ?>">
-<?php   if ($header_class=='serendipityAdminMsgNote') { ?>
+<?php   if ($header_class=='serendipityAdminMsgNote serendipity_admin_comment_pending_header') { ?>
             <img style="width: 22px; height: 22px; border: 0px; padding-right: 4px; vertical-align: middle" src="<?php echo serendipity_getTemplateFile('admin/img/admin_msg_note.png'); ?>" alt="" />
 <?php   }?>
         <a name="c<?php echo $comment['id'] ?>"></a>
@@ -414,14 +414,14 @@ foreach ($sql as $rs) {
         <table width="100%" cellspacing="0" cellpadding="3" border="0">
             <tr>
                 <td rowspan="3" width="20" align="center"><input class="input_checkbox" type="checkbox" name="serendipity[delete][<?php echo $comment['id'] ?>]" value="<?php echo $comment['entry_id'] ?>" onclick="highlightComment('comment_<?php echo $comment['id'] ?>', this.checked)" tabindex="<?php echo $i ?>" /></td>
-                <td width="40%"><strong><?php echo AUTHOR ?></strong>: <?php echo htmlspecialchars($comment['author']) . $comment['action_author']; ?></td>
+                <td width="40%"><strong><?php echo AUTHOR ?></strong>: <?php echo htmlspecialchars(serendipity_truncateString($comment['author'],30)) . $comment['action_author']; ?></td>
                 <td><strong><?php echo EMAIL ?></strong>:
                     <?php
                         if ( empty($comment['email']) ) {
                             echo 'N/A';
                         } else {
                     ?>
-                            <a href="mailto:<?php echo htmlspecialchars($comment['email']) ?>"><?php echo htmlspecialchars($comment['email']) ?></a>
+                            <a href="mailto:<?php echo htmlspecialchars($comment['email']) ?>" title="<?php echo htmlspecialchars($comment['email']) ?>"><?php echo htmlspecialchars(serendipity_truncateString($comment['email'],30)) ?></a>
                     <?php } ?>
                 <?php echo $comment['action_email']; ?>
                 </td>
@@ -443,7 +443,7 @@ foreach ($sql as $rs) {
                             echo 'N/A';
                         } else {
                     ?>
-                            <a href="<?php echo htmlspecialchars($comment['url']) ?>" target="_blank"><?php echo htmlspecialchars($comment['url']) ?></a>
+                            <a href="<?php echo htmlspecialchars($comment['url']) ?>" title="<?php echo htmlspecialchars($comment['url']) ?>" target="_blank"><?php echo htmlspecialchars(serendipity_truncateString($comment['url'],30)) ?></a>
                     <?php } ?>
                     <?php echo $comment['action_url']; ?>
                     </td>
@@ -456,7 +456,7 @@ foreach ($sql as $rs) {
                             echo 'N/A';
                         } else {
                     ?>
-                          <a href="<?php echo htmlspecialchars($comment['referer']) ?>" title="<?php echo htmlspecialchars($comment['referer']) ?>"><?php echo htmlspecialchars(serendipity_truncateString($comment['referer'],30)) ?></a>
+                          <a href="<?php echo htmlspecialchars($comment['referer']) ?>" title="<?php echo htmlspecialchars($comment['referer']) ?>" target="_blank"><?php echo htmlspecialchars(serendipity_truncateString($comment['referer'],30)) ?></a>
                     <?php } ?>
                     <?php echo $comment['action_referer']; ?>
                     </td>
index 9d3623b9a4160a8d1ba0df73a626df3ff64464fd..507a763735be5fb12c52ee44181485378c78b5b0 100644 (file)
@@ -379,6 +379,12 @@ ul.serendipitySideBarMenuMain .serendipitySideBarMenuFoot {
     border: 2px solid #FF0000;
 }
 
+.serendipity_admin_comment_pending_header{
+    background: #FFFF9D;
+    border: 2px solid #FF0000;
+    border-bottom: 0;
+}
+
 /* new input classes available in s9y v1.2 */
 .input_checkbox, .input_radio, .input_file, .input_textbox, .input_button, label, select, textarea{
     font: 100% Verdana, Arial, Helvetica, sans-serif;
@@ -546,8 +552,3 @@ span.serendipityTemplateSelectName {
     line-height: 30px;
     padding: 0;
 }
-
-/* Pending comments in the admins comment list */
-.serendipity_admin_comment_pending {
-    border: 2px solid #FF0000;
-}
\ No newline at end of file
index b56e83acea829a3e7eec7618aed3330567f1aafe..d4247607dc561124f41af6131840ecb523ff1f0a 100644 (file)
@@ -382,6 +382,12 @@ ul.serendipitySideBarMenuMain .serendipitySideBarMenuFoot {
     border: 2px solid #FF0000;
 }
 
+.serendipity_admin_comment_pending_header{
+    background: #FFFF9D;
+    border: 2px solid #FF0000;
+    border-bottom: 0;
+}
+
 /* new input classes available in s9y v1.2 */
 .input_checkbox, .input_radio, .input_file, .input_textbox, .input_button, label, select, textarea{
     font: 100% Verdana, Arial, Helvetica, sans-serif;