View Single Post
Old 03-13-2007, 11:56 AM  
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
The toplist syntax itself is simple (you must place a file called yourtoplistname.tpl in the sloth_toplist/ directory). For simplicity, lets call it toplist.tpl (Sloth generates the html page to include from this template)

<li>&#37;TRADELINK1%</li>
<li>%TRADELINK2%</li>
<li>%TRADELINK3%</li>
etc...

To include it:

php
<?php include("sloth_toplist/toplist.html"); ?>
ssi
<!--#include file="sloth_toplist/toplist.html" -->


edit: don't forget to login to your admin and tell it what your toplist name is (you'll see some existing ones called toplist1 and toplist2) but do NOT include the .tpl extension.
__________________

Last edited by Lycanthrope; 03-13-2007 at 11:59 AM..
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote