Ohh, sorry.. This was for 3.x series..
Open file:
sources/components_public/pages.php
Change whole
all() function to:
function all()
{
/* INIT */
$this->title = $this->ipsclass->lang['dp23_allpages'];
$start = intval($this->ipsclass->input['st']) >=0 ? intval($this->ipsclass->input['st']) : 0;
$perpage = 20;
/* Count all pages */
$this->ipsclass->DB->simple_construct( array(
'select' => 'COUNT(*) as total',
'from' => 'dp23_cuspg',
) );
$this->ipsclass->DB->simple_exec();
$count = $this->ipsclass->DB->fetch_row();
/* Build pagination */
$pagination = $this->ipsclass->build_pagelinks( array( 'TOTAL_POSS' => $count['total'],
'PER_PAGE' => $perpage,
'CUR_ST_VAL' => $start,
'L_SINGLE' => "Single Page",
'L_MULTI' => "Pages: ",
'BASE_URL' => $this->ipsclass->base_url . 'autocom=pages&st=' . $start,
) );
/* Get all pages */
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'dp23_cuspg', 'where' => 'cp_active = 1', 'order' => 'cp_dateadded DESC', 'limit' => array( $start, $perpage ) ) );
$this->ipsclass->DB->simple_exec();
//-----------------------------------------
// Show all pages...
//-----------------------------------------
$this->output = $this->ipsclass->compiled_templates['skin_dp23_custom_pages']->dp23_cuspg_header($this->title, $pagination);
$this->output .= $this->ipsclass->compiled_templates['skin_dp23_custom_pages']->dp23_cuspg_subheader();
if ($this->ipsclass->DB->get_num_rows())
{
while ( $data = $this->ipsclass->DB->fetch_row() )
{
$data['cp_views'] = $this->ipsclass->do_number_format($data['cp_views']);
$data['cp_dateadded'] = $this->ipsclass->get_date( $data['cp_dateadded'], 'SHORT' );
if( in_array( $this->ipsclass->member['mgroup'], explode(',',$data['cp_groups'] ) ) )
{
$this->output .= $this->ipsclass->compiled_templates['skin_dp23_custom_pages']->dp23_cuspg_one_page($data);
}
}
}
else
{
$this->output .= $this->ipsclass->compiled_templates['skin_dp23_custom_pages']->dp23_cuspg_no_page();
}
$this->output .= $this->ipsclass->compiled_templates['skin_dp23_custom_pages']->dp23_cuspg_footer(3);
//-----------------------------------------
// Output all HTML code...
//-----------------------------------------
$this->nav[] = "<a href='{$this->ipsclass->base_url}autocom=pages'>{$this->ipsclass->lang['dp23_allpages']}</a>";
$this->out();
}
Then open template bit called
dp23_cuspg_header in
skin_dp23_custom_pages templates group.. Find:
<div class='borderwrap'>
Add above:
{$pagination}
Then open variables and add in the end:
, $pagination
Save and check.
( not tested )