Web log to sparedirectory.com

December 12, 2006

page 2 mod

Filed under: Directory mods — links @ 10:17 pm

Today i changed the amount of links on each page and limited them to 20 per page, instead of having a question mark in the page name for page 2 and 3 etc (?p=2) i have modded it to makes it the second page like this

page2.html

Added following line to .htaccess file

## Pagination Rewrite
RewriteRule page(.*)\.html$ (.*)/?p=$1

Modify /templates/footer.tpl
FROM: {assign var=’url_pattern’ value=’?p=$’}
TO: {assign var=’url_pattern’ value=’page$.html’}

Modify /includes/functions.php
FROM: $qp = strpos($path, ‘?’);
TO: $qp = strpos($path, ‘page’);

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.

Sparedirectory blog is Powered by WordPress. RSS feed