Hi,
This will fix the bug.
Open tag.php
Replace
Code:
$page_links = paginate($total, $config['items_per_page'], '.', '', $page);
With
Code:
require 'Pager/Pager.php';
require 'Pager/Sliding.php';
$params = array();
$params['mode'] = 'Sliding';
$params['perPage'] = $config['items_per_page'];
$params['linkClass'] = 'pagination';
$params['delta'] = 2;
$params['totalItems'] = $total;
$params['urlVar'] = 'page';
$params['append'] = false;
$params['path'] = VSHARE_URL;
$params['fileName'] = 'tag/' . $search_string . '/%d?sort=' . $sort;
$pager = new Pager_Sliding($params);
$data = $pager->getPageData();
$links = $pager->getLinks();
$page_links = $links["all"];
Open templates/tag.tpl
Replace
Code:
<a href="{$base_url}/tag/{$smarty.get.search_string}/?page={$page}&sort=adddate">Date Added</a> -
<a href="{$base_url}/tag/{$smarty.get.search_string}/?page={$page}&sort=viewnum">View Count</a> -
<a href="{$base_url}/tag/{$smarty.get.search_string}/?page={$page}&sort=rate">Rating</a>
With
Code:
<a href="{$base_url}/tag/{$smarty.get.search_string}/{$page}?sort=adddate">Date Added</a> -
<a href="{$base_url}/tag/{$smarty.get.search_string}/{$page}?sort=viewnum">View Count</a> -
<a href="{$base_url}/tag/{$smarty.get.search_string}/{$page}?sort=rate">Rating</a>
Thanks,
Buyscripts Team
Bookmarks