02-05-2008, 11:54 AM
Pages: 1 2
02-05-2008, 11:02 PM
nice mod will tr this out thanks Zing ....
02-06-2008, 03:21 AM
done,...same on the first side the other sites are a little better now,...but the same,...heres my tempelate,...i tried to change it but,...
Code:
|
02-06-2008, 01:02 PM
^ Try placing it under {$announcements}
02-09-2008, 04:47 PM
ZiNgA BuRgA Wrote:To do this, open up portal.php
Find:
PHP Code:
$query = $db->query(" SELECT p.pid, p.message, p.tid FROM ".TABLE_PREFIX."posts p LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid) WHERE t.fid IN (".$mybb->settings['portal_announcementsfid'].") AND t.visible='1' AND t.closed NOT LIKE 'moved|%' AND t.firstpost=p.pid ORDER BY t.dateline DESC LIMIT 0, ".$mybb->settings['portal_numannouncements'] );
Replace with:
PHP Code:
$page = intval($mybb->input['page']); if($page < 1) $page = 1; $numann = $db->fetch_field($db->simple_select(TABLE_PREFIX.'threads', 'COUNT(*) AS numann', "fid IN (".$mybb->settings['portal_announcementsfid'].") AND visible='1' AND closed NOT LIKE 'moved|%'"), 'numann'); $perpage = intval($mybb->settings['portal_numannouncements']); $multipage = multipage($numann, $perpage, $page, $_SERVER['PHP_SELF'].'?paged=1'); $query = $db->query(" SELECT p.pid, p.message, p.tid FROM ".TABLE_PREFIX."posts p LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid) WHERE t.fid IN (".$mybb->settings['portal_announcementsfid'].") AND t.visible='1' AND t.closed NOT LIKE 'moved|%' AND t.firstpost=p.pid ORDER BY t.dateline DESC LIMIT ".(($page-1)*$perpage).", ".$perpage );
But if we use PreParser Cache (beta) I think this must to be replaced with:
PHP Code:
|
Right !?
It's about this 2 lines:
PHP Code:
|
and
PHP Code:
|
02-09-2008, 06:34 PM
Something like that.
Does it work? I haven't tried it.
If it works, then you're fine
Does it work? I haven't tried it.
If it works, then you're fine
Pages: 1 2