Hello,
I downloaded a Last 5 block from phpdownloads.com, which shows the last 5 articles, links, downloads, and forum topics as a center block. Apparently, there is an error with the block, because whenever you click one of the new links, it pulls out the link from the database, but displays it as a Download!
I've isolated the bad code here:
|
Code:
|
$content .= "</td><td align=\"left\" valign=\"top\">";
$a = 1;
$result = sql_query("select lid, title from $prefix"._links_links." order by date DESC limit 0,10", $dbi);
while(list($lid, $title) = sql_fetch_row($result, $dbi)) {
$title2 = ereg_replace(" ", "_", $title);
$content .= "<img src=\"images/visitors/forums.gif\" border=\"0\" alt=\"\" title=\"\" width=\"9\" height=\"9\">&<a href=\"modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$lid&ttitle=$title2\">$title</a>
";
$a++; |
I know I need to change the modules.php statement to send it to Web_Links instead of Downloads, but how I change the rest of the line? I tried many things, but only got SQL errors.
You can see the whole thing on the bottom of
http://community.coptichymns.net/ and the errors you get when clicking on one of the new links.
Some help from the experts would be appreciated.
Thanks,
Paul