Sparedirectory




Just another WordPress weblog
Latest Links | Top Hits | Submit a Link | Contact | Web site log

Web log to sparedirectory.com

Pages
  • About
Recent Posts
  • Roulette links
  • Andersons School Spirit
  • Postcards
  • Car leasing - link 285
  • Business cards - link 284
Archives
  • November 2008
  • March 2008
  • January 2008
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
Blogroll
  • Ask jeves blog
  • godaddys blog
  • Google blog
  • Netscape
  • Yahoo blog
Directories
  • agoodirectory
  • Sparedirectory
Other sites
  • Play free games
  • www.afkf.com

page 2 mod

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’);

Filed under: Directory mods by links @ 10:17 pm December 12, 2006

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.


Copyright - © www.sparedirectory.com all rights reserved.