The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
Pages: 1
I am trying to edit the pagination to show all available pages because there is an error showing pages with no videos
templates/default-pink/extend/plugins
file is pagination.plugin.php
Only been able to get it to show 1 2 3 Next
how can I make it show all without the "..."
Offline
Replace the function template_plugin_pagination in templates/your-template/extend/plugins/pagination.plugin.php with the below code:
function template_plugin_pagination($options=array(), $url, $index=2, $id=NULL)
{
$page = $options['page'];
$total_pages = $options['total_pages'];
$prev_page = $options['prev_page'];
$next_page = $options['next_page'];
$output = array();
if ($page != 1 ) {
$output[] = '<li><a href="'.pag_strip($prev_page, $url).'"'.pag_id($prev_page, $id, 'prev_page').'>'.__('PREV').'</a></li>';
}
for ($i=1; $i<=$total_pages; $i++) {
if ($page == $i ) {
$output[] = '<li><span>' .$page. '</span></li>';
} else {
$output[] = '<li><a href="'.pag_strip($i, $url).'"'.pag_id($i, $id).'>'.$i.'</a></li>';
}
}
if ($page != $total_pages) {
$output[] = '<li><a href="'.pag_strip($next_page, $url).'"'.pag_id($next_page, $id, 'next_page').'>'.__('NEXT').'</a></li>';
}
return implode('', $output);
}
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Awesome thanks!
how can I make it go into 2 or 3 more rows because it doesnt fit in page layout
nuuporn.com front page
when there is like 40 pages its fine
Offline
Hmm...try editing templates/your-template/css/style.css, find
.pagination li {
add after:
float: left;
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
no still doesnt work
edit:
left code on website for you to take a look
Last edited by rickytan (2011-11-06 08:32:51)
Offline
fixed
added padding-bottom: 20
Offline
Pages: 1