thanks to both of you.
Well I have been tring to get this to work but it doesn't! I tryed to change so instaed of &page=1 i'm trting to get &pagenum=2 because with &page=1 will mess up my site and it shows al the resaults on on page this is my code:
PHP Code:
if ($_REQUEST['page'] == 'news')
{
$news1 = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "site_news ORDER BY newsid DESC");
while ($news = $db->fetch_array($news1)) {
eval('$rowbits .= "' . fetch_template('site_v3_news_single') . '";');
}
function defaultGPC($data)
{
global $vbulletin;
foreach ($data as $key => $value)
{
if (!$vbulletin->GPC[$key])
{
$vbulletin->GPC[$key] = $value;
}
}
}
$vbulletin->input->clean_array_gpc('g', array(
'pp' => TYPE_UINT,
'pagenum' => TYPE_UINT
));
defaultGPC( array(
'pp' => 1,
'pagenum' => 1
));
// Construct Page Navigation
$total = $db->num_rows($news1);
$url = "index.php?page=news{$sID}";
$offset = ($vbulletin->GPC['pagenum'] - 1) * $vbulletin->GPC['pp'];
$limit = "$offset, " . $vbulletin->GPC['pp'];
$pageNavigation = construct_page_nav($vbulletin->GPC['pagenum'],
$vbulletin->GPC['pp'], $total, $url, '&pp=' . $vbulletin->GPC['pp']
);
//templeates are here i took them out to show
}
PLEASe help!