Ok , I have installed it and everything went ok. It works fine but I can not get it to come up on my index page in my home directory when I try to include it. My index is index.php It works fine when i use SSI but not with php include. Also, I am using vBHome and just adding the html to the template. I have tried so many things but nothing is working. Here is the code from where the include is:
Code:
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="90%">
<tr>
<td width="100%" align="center"><!-- PluhNews Begin -->
<?php include("/forums/PluhNews.php"); ?><!-- PluhNews Ends -->
</td>
</tr>
</table>
</center>
That html is in my vBHome (home) template. I even tried having my home page in the same directory as PluhNews and still nothing. I don't know what is wrong. Someone help.
The link to my Pluhnews page:
http://theinfected.com/forums/PluhNews.php
The link to where I want my news to be:
http://www.theinfected.com/index.php (in the center of the page.)
I have tried all of these includes but nothing happens with either of them. The SSI include works thou but I don't want to use .shtml
PHP Code:
<? include("http://theinfected.com/forums/PluhNews.php"); ?>
PHP Code:
<? include("/forums/PluhNews.php"); ?>
PHP Code:
<?php include("http://theinfected.com/forums/PluhNews.php"); ?>
PHP Code:
<?php include("/forums/PluhNews.php"); ?>
Here is the code in my PluhNews.php file where the html starts:
Code:
//<!- PluhHeader -->
$bericht=bbcodeparse2($pagetext,"1","1","1","1");
echo "
<style fprolloverstyle>A:hover {color: #00cc00; font-family: Verdana; size=\"2\"; text-decoration: blink}
</style>
<body style=\"font-family: Verdana; size=\" link=\"#FFFFFF\" vlink=\"#FFFFFF\" alink=\"#FFFFFF\" text=\"#999999\" bgcolor=\"#000000\">
<div align=\"center\">
<center>
<table border=\"1\" cellspacing=\"1\" width=\"472\" cellpadding=\"2\" bordercolorlight=\"#000000\" bordercolordark=\"#000000\">
<tr>
<td width=\"457\" bordercolor=\"#333333\" bgcolor=\"#000000\" background=\"http://www.theinfected.com/images/header4.jpg\"><font face=\"Verdana\" size=\"2\"><b><font face=\"Terminal\" size=\"1\" color=\"#00CC00\">-></font><font size=\"2\">
<a href=\"$forumspath/showthread.php?s=&threadid=$threadid\">$title</a></font>
<font face=\"Terminal\" size=\"1\" color=\"#00CC00\"><-</font></b></font></td>
</tr>
<tr>
<td width=\"457\" bordercolor=\"#333333\" bgcolor=\"#1E1E1E\">
<font face=\"Verdana\" size=\"2\">
<p style=\"margin-top: 0; margin-bottom: 0\"><font face=\"Verdana\" size=\"1\">
Posted By </font>
<a href=\"$forumspath/member.php?s=&action=getinfo&userid=$postuserid\"><b><font size=\"1\">$postusername</font></b></a>
at <i>$dateposted</i></font></p>
<p style=\"margin-top: 0; margin-bottom: 0\"> </p>
<p style=\"margin-top: 0; margin-bottom: 0\"><font size=\"2\">$bericht</font></p>
</font>
<p align=\"center\">
<font face=\"Verdana\" size=\"2\">
<a href=\"$forumspath/showthread.php?s=&threadid=$threadid\"><b>$replycount</b>$commenttext</a> Last comment
was by <b>$lastposter</b></font></p>
</td>
</tr>
</table>
</center>
</div>
<p style=\"margin-top: 0; margin-bottom: 0\"> </p>
</body>
";
}
}
//add news search stuff (this is optional - delete if you do not wish to include this, or edit it to meet your needs
echo "<center><a href=\"$forumspath/search.php?s=\">Search the News</a> | <a href=\"$forumspath/forumdisplay.php?s=&forumid=$newsforums\">View All News Posts</a></center>";
//end HTML edit
//**********************
//include the footer
include("./PluhFooter.txt");