Using the Compact List

Quick Overview

The compact list feature of the software will generate a file with a list of the top few sites in your database. You can then include the list in any .shtml or .php page by using an SSI or PHP include, respectively.

Including the List on a Page

To include the list on one of your pages it first must be either a .shtml or .php page. Instructions for each type of page are listed below. The compact list is updated each time the list reranks.
  • .php Page

    To include the list on a .php page, use the following code:
    <?PHP include('/home/username/public_html/compact/compact.ssi'); ?> In this case compact.ssi is the Compact List Filename you entered in setup.php, and /home/username/public_html/compact is the Compact List Directory you entered in setup.php. With the default compact list HTML included with the software you will also need to include the proper opening and closing table tags to make it work: <table> <?PHP include('/home/username/public_html/compact/compact.ssi'); ?> </table>
  • .shtml Page

    To include the list on a .shtml page, use the following code:
    <!--#include virtual="/compact/compact.ssi"--> In this case compact.ssi is the Compact List Filename you entered in setup.php, and /compact is the virtual path* to the file on your server. With the default compact list HTML included with the software you will also need to include the proper opening and closing table tags to make it work: <table> <!--#include virtual="/compact/compact.ssi"--> </table> *Determining the virtual path is fairly straightforward. All you need to do is figure out the full URL to access the compact.ssi file on your server. For example, say you can access the compact.ssi file from http://www.yoursite.com/top100/compact.ssi Your virtual path would then be /top100