Advertisement
Guest User

Fix for StatPressV TopPosts widget formatting

a guest
Nov 17th, 2011
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.07 KB | None | 0 0
  1. --- ../statpress-visitors.org/statpress.php 2011-11-17 09:35:40.212512100 -0500
  2. +++ ../statpress-visitors/statpress.php 2011-11-17 16:15:51.766123300 -0500
  3. @@ -225,9 +225,9 @@
  4.          $table_name = $wpdb->prefix . "statpress";
  5.          $qry = $wpdb->get_results("SELECT urlrequested,count(*) as totale FROM $table_name WHERE spider='' AND feed='' AND ip IS NOT NULL GROUP BY urlrequested ORDER BY totale DESC LIMIT $limit;");
  6.          foreach ($qry as $rk)
  7. -           {$res .= "<li><a href='" . luc_getblogurl() . ((strpos($rk->urlrequested, 'index.php') === FALSE) ? $rk->urlrequested : '') . "'>" . luc_StatPressV_Decode($rk->urlrequested) . "</a></li>\n";
  8. +           {$res .= "<li><a href='" . luc_getblogurl() . ((strpos($rk->urlrequested, 'index.php') === FALSE) ? $rk->urlrequested : '') . "'>" . luc_StatPressV_Decode($rk->urlrequested) . "</a>";
  9.              if (strtolower($showcounts) == 'checked')
  10. -              { $res .= " (" . $rk->totale . ")";
  11. +              { $res .= " (" . $rk->totale . ")</li>";
  12.                }
  13.             }
  14.          return "$res</ul>\n";
  15.  
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement