faster? hes already got it working download the 1.3 development version
Is it up for download? Cuz I cant seem to find it, tnx.
You are not logged in. Please login or register.
PunBB Forums → Posts by bogaa
Pages 1
faster? hes already got it working download the 1.3 development version
Is it up for download? Cuz I cant seem to find it, tnx.
Tnx spider, that's exactly what I needed.
yeah I allready know, but Im doing it faster, the pagination links are the last part and then im done.
Im trying to make "Clean Urls" and it's all working greath exept for the paginating part, I wat to turn :
http://localhost/pun/topic/viewtopic.php?id=4&p=2
into
http://localhost/pun/topic/4/sub/2
This is the code that needs to be changed (viewtopic.php), but no matte what I tried I couldnt remove the "&p=" from the variable $id
Any help on this would be very welcome, once this is finished I will post the entire code in here so everybody who wants
this code (and I know there are a lot of you out there) will have it. Thanks in advance
$num_pages = ceil(($cur_topic['num_replies'] + 1) / $pun_user['disp_posts']);
$p = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p'];
$start_from = $pun_user['disp_posts'] * ($p - 1);
// Generate paging links
$paging_links = $lang_common['Pages'].': '.paginate($num_pages, $p, 'viewtopic.php?id='.$id);
Pages 1
PunBB Forums → Posts by bogaa
Powered by PunBB, supported by Informer Technologies, Inc.