Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Fix for StatPressV TopPosts widget formatting

By: a guest on Nov 17th, 2011  |  syntax: PHP  |  size: 1.07 KB  |  hits: 42  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.