How to Remove WordPress Top 10 Plugin’s Dashboard Pagination

For Those Who are still not familiar with Top 10 Plugin of WordPress

WordPress doesn’t count page views by default. Top 10 Plugin will count the number of page views on your single posts on a daily as well as overall basis. You can then display the page view count on individual posts and pages as well as display a list of most popular posts based on page views.

Includes a sidebar widget to display the popular posts. And, all settings can be configured from within your WordPress Admin area itself! You can choose to disable tracking of author visits on their own posts.

The Plugin also comes with a Admin Dashboard widget which displays the daily and overall stats in WordPress Dashboard. The admin widgets shows a pagination bellow. If you have lot of posts the pagination counts display gets long and nasty.

You can modify the admin widget to remove the pagination shown below. Here is how:

1. Open the admin.inc.php in the WordPress Top Ten Plugin folder.
2. Comment out the following Code :

470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
$output .=   '<p align="center">';
	if ($page != 0) { // Don't show back link if current page is first page.
		$back_page = $page - $limit;
 
		$output .=  "<a href=\"./edit.php?page=tptn_manage&paged=$back_page&daily=$daily&limit=$limit\">&laquo; ";
		$output .=  __('Previous',TPTN_LOCAL_NAME);
		$output .=  "</a>\n";
 
	}
 
	for ($i=1; $i <= $pages; $i++) // loop through each page and give link to it.
	{
		$ppage = $limit*($i - 1);
		if ($ppage == $page){
			$output .=  "<b>$i</b>\n";
		} // If current page don't give link, just text.
		else{
			$output .=  "<a href=\"./edit.php?page=tptn_manage&paged=$ppage&daily=$daily&limit=$limit\">$i</a> \n";
		}
	}
 
	if (!((($page+$limit) / $limit) >= $pages) && $pages != 1) { // If last page don't give next link.
		$next_page = $page + $limit;
 
		$output .=  "<a href=\"./edit.php?page=tptn_manage&paged=$next_page&daily=$daily&limit=$limit\">";
		$output .=  __('Next',TPTN_LOCAL_NAME);
		$output .=  " &raquo;</a>";
 
	}
	$output .=   '</p>';
 
	$output .=   '<p style="text-align:center;border-top: #000 1px solid">Popular posts by <a href="http://ajaydsouza.com/wordpress/plugins/top-10/">Top 10 plugin</a></p>';

Latest version of WordPress Top 10 Plugin is 1.6.1 . I wish in the next version they will use a dig style pagination which will be much user friendly and accessible.