well i got this to work at
http://animeboards.net
to include the php file i did
Code:
<?php
include("/home/usr1/www.animeboards.net/htdocs/deadtopics.root.php3");
?>
and here's my deadtopics.root.php3 file
Code:
<?php
// Set this to the max number of dead topics you want to display
$maxthreads = 20;
require("/home/usr1/www.animeboards.net/htdocs/forums/admin/config.php");
$db=mysql_connect($servername,$dbusername,$dbpassword);
mysql_select_db($dbname);
$query = "SELECT * FROM thread WHERE replycount < 1 AND forumid != 21 AND forumid != 22 AND forumid != 23 AND forumid != 28 AND forumid != 24 AND forumid != 7 AND forumid != 13 AND forumid != 32 AND forumid != 34 AND forumid != 37 AND forumid != 5 AND forumid != 6 AND forumid != 33 AND forumid != 15 ORDER BY dateline DESC LIMIT $maxthreads";
$resultlatest = mysql_query($query,$db);
while ($latest_array = mysql_fetch_array($resultlatest)) {
echo "<FONT SIZE=\"1\" FACE=\"Verdana, Arial, Helvetica, sans-serif\">??
<A HREF=\"http://animeboards.net/forums/showthread.php?threadid=$latest_array[threadid]\">$latest_array[title]</A></FONT><BR>";
}
?>
and i believe you can't put this php code in a .shtml file unless you set your server to parse php in .shtml
you need to use .php, .php3 file for it to work... what i did was create index.php3 which includes all of the above and then include index.php3 into a index.shtml file
in the index.php3 file i had at the very top before <html> tag the following
Code:
<?
require("/home/usr1/www.animeboards.net/htdocs/forums/admin/config.php");
require("/home/usr1/www.animeboards.net/htdocs/phpads/config.inc.php3");
require("/home/usr1/www.animeboards.net/htdocs/phpads/view.inc.php3");
require("/home/usr1/www.animeboards.net/htdocs/phpads/acl.inc.php3");
chdir("/home/usr1/www.animeboards.net/htdocs/forums");
require("/home/usr1/www.animeboards.net/htdocs/forums/global.php");
?>