Adult Script Pro Community Forums

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.

#1 2011-11-05 07:54:48

rickytan
Member
Registered: 2011-10-31
Posts: 13

Pagination All Pages Display

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

#2 2011-11-05 16:02:06

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Pagination All Pages Display

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

#3 2011-11-06 07:40:55

rickytan
Member
Registered: 2011-10-31
Posts: 13

Re: Pagination All Pages Display

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

#4 2011-11-06 08:14:05

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Pagination All Pages Display

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

#5 2011-11-06 08:32:22

rickytan
Member
Registered: 2011-10-31
Posts: 13

Re: Pagination All Pages Display

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

#6 2011-11-06 08:40:18

rickytan
Member
Registered: 2011-10-31
Posts: 13

Re: Pagination All Pages Display

fixed
added padding-bottom: 20

Offline

Board footer

Powered by FluxBB